/* ==========================================================================
   十五屏假界面 · 每一屏自己的样式（2026-12-16 第五版）

   与 `assets/app.css` 的分工：

     app.css      窗口外壳（侧栏 / 标题栏 / 右栏）+ 今日那三张卡
                  + 02 计划 / 03 灵动岛两屏（它们先做，留在原地）
     screens.css  04 信息中心 → 16 设置，十三屏的假界面与滚动动画帧
                  （含 05 订阅 / 09 查资料 / 15 外观三屏）

   正文从六屏扩到十五屏后，再塞回一个文件会让它同时承担两件事：
   改某一屏时得在一万行里找边界。所以按「屏」切开，文件名即内容。

   三条自我约束（与 app.css 那边一致）：

   1. **没有真实功能**：这里所有元素都是死的。输入框是 `<p>`，复选框是
      `<span>`，按钮是 `<span>`——没有表单、没有请求、不读本机文件。
   2. 初始隐藏态只在 `html.js` 下生效。脚本整个不跑时，每一屏直接显示
      最终画面，不会留一片空白格。
   3. `prefers-reduced-motion` 下不播动画，直接给最终帧（见文件末尾）。

   动画怎么被触发：`assets/plays.js` 滚动到这一屏时依次给 section 加
   `s1 / s2 / s3 …`；下面每条 `.screen[data-play='x'].sN …` 就是那一帧。
   调节奏改 plays.js，调画面改这里。
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. `.fake` 里的排版复位与小零件
   -------------------------------------------------------------------------- */

/* 假界面里大量用 `<s>` / `<em>` 当「标签、时间、计数」的容器：它们在语义上
   是「过时」与「强调」，这里都不需要，只是借一个短标签省一层 class。
   不重置的话 `<s>` 会带删除线、`<em>` 会变斜体，假界面立刻显得像排版事故。 */
.fake s,
.fake em {
  text-decoration: none;
  font-style: normal;
}

.fake p,
.fake ul,
.fake ol {
  margin: 0;
}

.fake ul,
.fake ol {
  padding: 0;
  list-style: none;
}

.fake b {
  font-weight: 600;
}

/* 数字一律等宽：这些假界面里数字会变（未读 18 → 15），
   比例字体一变就把后面那行挤动一格。 */
.inf-num,
.inf-badge,
.pl-mono,
.lt-keys,
.se-line b,
.flx-steps s {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* 小药丸：两个屏幕里共用的「标签 / 选项 / 计数」。 */
.inf-badge,
.pj-tabs s,
.dc-acts s,
.dc-ai-btn,
.as-tabs s,
.as-sites span {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--a-line);
  font-size: 10.5px;
  line-height: 1.6;
  color: var(--a-soft);
  background: #fff;
  white-space: nowrap;
}

/* 小标题：侧栏分区名、卡片抬头这类「一行灰字」。 */
.inf-side-h,
.fs-sh,
.dc-sh,
.ln-side-h,
.ln-tree-h,
.as-sites-h,
.flx-h,
.pj-title,
.as-top,
.lt-hint {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--a-mute);
}

/* 侧栏（邮箱 / 文件夹 / 位置）：四屏共用一套形状，
   只在各自的块里换宽度与选中色。 */
.inf-side,
.dc-side,
.fs-side {
  border-right: 1px solid var(--a-line);
  padding-right: 12px;
  min-width: 0;
}

/* 高亮（选中行）：浅青柠底 + 深一号的字色，全站统一。 */
.inf-box.is-on,
.dc-folder.is-on,
.dc-item.is-on,
.fs-loc.is-on,
.pj-card.is-on,
.dc-ai-btn.is-on,
.as-tabs s.is-on,
.pj-tabs s.is-on {
  background: var(--a-lime-wash);
  border-color: #dcefc9;
  color: #35502a;
}

/* 两处 toast（素材存库 / 文件进废纸篓 / 设置已更新）共用一张皮：
   绝对定位在 `.fake` 右下角，像系统的浮层提示。 */
.as-toast,
.fs-toast,
.se-toast {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  max-width: min(320px, calc(100% - 28px));
  padding: 8px 12px 8px 9px;
  border-radius: 11px;
  background: #fff;
  border: 1px solid #dcefc9;
  box-shadow: 0 14px 30px -18px rgba(11, 60, 24, 0.55);
  font-size: 11.5px;
  color: #35502a;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.as-toast-ic,
.fs-toast-ic,
.se-toast-ic {
  position: relative;
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  background: var(--a-lime-deep);
}

.as-toast-ic::after,
.fs-toast-ic::after,
.se-toast-ic::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border-right: 1.7px solid #fff;
  border-bottom: 1.7px solid #fff;
  transform: rotate(42deg);
}

/* 虚线框：几处「这里是空的 / 这里先问你」的小块。 */
.inf-tip,
.fs-note,
.as-toast + p,
.ln-asr {
  font-size: 10px;
  line-height: 1.6;
  color: var(--a-mute);
}

/* --------------------------------------------------------------------------
   04 · 信息中心（`.inf` + `.fd`）

   真机这一页是三栏：左账号、中列表、右正文；顶上一条「邮件 / 订阅」选项卡
   切两块面板（`InboxPanel.tsx` 的 `MailPanel` / `FeedPanel`）。官网第六十四版
   起照它做成横向轮播：`.inf-car` 里一条 200% 宽的轨道，两页各占一半，
   演示第二拍把轨道往左推一格。打开一封才取一封正文——所以右侧那块一开始是空的，
   `s1` 才落内容。
   -------------------------------------------------------------------------- */

/* 版面照真机 `MailPanel`（2026-12-27 第七十九版）：左边 192px 的账号栏、
   右边一列「工具栏 + [列表 | 读信区 420px]」。这里按窗口宽度收到 158px /
   336px 的读信区，比例与真机一致。 */
.inf {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  gap: 16px;
  height: 100%;
  min-height: 0;
}

/* 左：邮箱账号栏（真机的 `aside w-48`） */
.inf-rail {
  display: grid;
  align-content: start;
  gap: 3px;
  min-width: 0;
}

.inf-rail-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 0 0 3px;
}

.inf-rail-h b {
  font-size: 12px;
  font-weight: 600;
  color: var(--a-ink);
}

.inf-rail-h s {
  padding: 1px 7px;
  border: 1px solid var(--a-line);
  border-radius: 6px;
  font-size: 10px;
  text-decoration: none;
  color: var(--a-soft);
}

/* 账号行：28px 首字母块 + 名字 + 地址（真机 `data-mail-account-row`） */
.inf-acc {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 7px;
  border-radius: 8px;
  border: 1px solid transparent;
  min-width: 0;
}

.inf-acc.is-on {
  background: #fff;
  border-color: var(--a-line);
  box-shadow: 0 1px 2px -1px rgba(20, 30, 12, 0.28);
}

.inf-acc i {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #eef2e6;
  font-size: 10.5px;
  font-weight: 600;
  font-style: normal;
  color: var(--a-soft);
}

.inf-acc span {
  display: grid;
  min-width: 0;
  line-height: 1.35;
}

.inf-acc b {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--a-ink);
}

.inf-acc em {
  font-size: 10.5px;
  color: var(--a-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inf-acc em i {
  font-style: normal;
}

.inf-tip {
  margin: 8px 3px 0;
}

/* 右：工具栏一行 + 列表 / 读信区 */
.inf-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
  min-height: 0;
}

.inf-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

/* 「同步完整」那枚带边的状态胶囊（真机 TONE_BORDER.ok） */
.inf-chip {
  padding: 1px 7px;
  border: 1px solid #dcefc9;
  border-radius: 6px;
  background: var(--a-lime-wash);
  font-size: 10.5px;
  color: #35502a;
  white-space: nowrap;
}

.inf-tools-r {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.inf-tools-r s {
  padding: 2px 8px;
  border: 1px solid var(--a-line);
  border-radius: 7px;
  background: #fff;
  font-size: 11px;
  text-decoration: none;
  color: var(--a-soft);
  white-space: nowrap;
}

/* 列表 + 读信区并排；读信区定宽，选中一封时列表不会跟着抖 */
.inf-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 8px;
  min-height: 0;
}

/* 窄屏（手机）：演示窗口只剩 300 出头，定宽的那几列会把列表压成一条缝。
   账号栏在 900 那一档已经收成横排，这里只把「列表 + 详情」改回按比例分。 */
@media (max-width: 720px) {
  .inf-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
    gap: 6px;
  }

  .fd-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
    gap: 6px;
  }

  .inf-chip,
  .inf-tools-r {
    display: none;
  }
}

.inf-sync {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: var(--a-soft);
}

/* 两个状态字叠在同一格：不叠的话 18→15 那一下中栏会横向抖一次。 */
.inf-sync-a,
.inf-sync-b {
  grid-area: 1 / 2;
  transition: opacity 0.25s ease;
}

.inf-sync-b {
  opacity: 0;
}

.inf-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--a-warn);
  transition: background-color 0.3s ease;
}

/* 同步中：橙点呼吸。转绿之后这份动画要停（见 s2）。 */
html.js .screen[data-play='info'] .inf-dot {
  animation: inf-pulse 1.1s ease-in-out infinite;
}

@keyframes inf-pulse {
  50% {
    opacity: 0.35;
  }
}

.inf-count {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  color: var(--a-mute);
}

.inf-num {
  display: inline-grid;
  font-size: 12px;
  font-weight: 700;
  color: var(--a-ink);
}

.inf-num i {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.inf-num i:first-child {
  opacity: 1;
}

/*
  列表行照真机 `MailPanel` 的列表项排：左边一枚未读点，右边三行——
  标题 + 时间 / 发件人（有附件再挂一枚「附件」）/ 一行摘要。

  上一版是「发件人 46px + 主题 + 时间」的三栏单行条目，在 400px 宽的栏里
  读起来像一段文字，不像收件箱，用户看完问「没有邮件列表吗」。
*/
/* 列表是一个带边的框，行与行之间一条细线（真机 `rounded-xl border` + `border-b`） */
.inf-list {
  display: grid;
  align-content: start;
  min-height: 0;
  border: 1px solid var(--a-line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.inf-row + .inf-row {
  border-top: 1px solid #f2f4ec;
}

.inf-row {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  gap: 0 7px;
  align-items: start;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background-color 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

.inf-row.is-new {
  background: var(--a-lime-wash);
}

/* 未读点：只有 `.is-new` 那一行亮着，和真机 `row.isRead` 的写法一致。 */
.inf-u {
  width: 5px;
  height: 5px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--a-lime-deep);
  opacity: 0;
}

.inf-row.is-new .inf-u {
  opacity: 1;
}

.inf-txt {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.inf-t1,
.fd-t1 {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.inf-t1 b,
.fd-t1 b {
  flex: 1;
  min-width: 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--a-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inf-t1 em,
.fd-t1 em {
  flex: none;
  font-family: var(--mono);
  font-style: normal;
  font-size: 10px;
  color: var(--a-mute);
}

.inf-t2 {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--a-soft);
}

.inf-t2 u {
  padding: 0 4px;
  border: 1px solid var(--a-line);
  border-radius: 4px;
  font-size: 9.5px;
  line-height: 1.5;
  text-decoration: none;
  color: var(--a-mute);
}

.inf-t3 {
  font-size: 10.5px;
  color: var(--a-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 读信区：一个带边的定宽框，里面再分「信头 / 视图行 / 正文」
   （真机 `data-mail-detail-pane`：rounded-xl border + width 420） */
.inf-read {
  min-width: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  border: 1px solid var(--a-line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.inf-read-head {
  display: grid;
  gap: 3px;
  padding: 9px 10px;
  border-bottom: 1px solid #f2f4ec;
}

.inf-read-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--a-ink);
}

.inf-read-meta {
  font-size: 10.5px;
  color: var(--a-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inf-read-to {
  font-size: 10.5px;
  color: var(--a-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 信头那排按钮：标为未读 / 忽略 / 翻译 / 总结（真机四颗，同一行） */
.inf-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 4px;
}

.inf-acts s {
  padding: 1px 7px;
  border: 1px solid var(--a-line);
  border-radius: 6px;
  font-size: 10.5px;
  text-decoration: none;
  color: var(--a-soft);
  white-space: nowrap;
}

/* 视图那一行：HTML / 纯文本 + 挡了几张图 + 显示图片 */
.inf-viewbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  padding: 5px 10px;
  border-bottom: 1px solid #f2f4ec;
  font-size: 10px;
  color: var(--a-mute);
}

.inf-viewbar em {
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 9.5px;
  color: var(--a-mute);
}

.inf-viewbar s {
  padding: 1px 6px;
  border: 1px solid var(--a-line);
  border-radius: 5px;
  font-size: 10px;
  text-decoration: none;
  color: var(--a-soft);
}

.inf-viewbar s.is-on {
  border-color: #cfe3b6;
  background: var(--a-lime-wash);
  color: #35502a;
}

.inf-viewbar span {
  margin-left: auto;
}

.inf-read-body {
  padding: 9px 10px;
  min-height: 0;
  overflow: hidden;
}

.inf-body-txt {
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--a-soft);
}

/* AI 结果块：真机点完「翻译 / 总结」后，正文区换成这一块（标题 + 重算 + 内容） */
.inf-ai-out {
  display: grid;
  gap: 5px;
  padding: 8px 9px;
  border-radius: 8px;
  background: #f7faf1;
  border: 1px solid #e6efd9;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.inf-ai-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5a7a48;
}

.inf-ai-h s {
  margin-left: auto;
  padding: 0 6px;
  border: 1px solid #dbe7c8;
  border-radius: 4px;
  font-size: 9.5px;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  color: #35502a;
}

.inf-ai-c {
  font-size: 11px;
  line-height: 1.75;
  color: #35502a;
}

/* 「翻译」那颗按钮：结果出现时亮起来（真机是边框 + 底色变化） */
.screen[data-play='info'].s2 .inf-act-tr {
  border-color: #cfe3b6;
  background: var(--a-lime-wash);
  color: #35502a;
}

/* 两页横向轮播（2026-12-24 第六十四版）

   真机 `InboxPanel.tsx` 是「邮件 / 订阅」两枚选项卡切两块面板（`MailPanel` /
   `FeedPanel`），这一屏照它做：一条选项卡 + 一条 200% 宽的轨道，两页各占一半，
   演示第二拍把轨道往左推一格。原来这里是「邮件一块 + 订阅一块」上下堆着，
   两块各写一套标题与边线。 */
.inf-car {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 9px;
  height: 100%;
  min-height: 0;
}

.inf-tabs {
  display: flex;
  gap: 3px;
  padding: 3px;
  width: max-content;
  max-width: 100%;
  border-radius: 9px;
  border: 1px solid var(--a-line);
  background: rgba(255, 255, 255, 0.55);
}

.inf-tabs s {
  padding: 2px 12px;
  border-radius: 7px;
  font-size: 11px;
  text-decoration: none;
  color: var(--a-soft);
  white-space: nowrap;
}

/* 当前那页：白底 + 细边 + 加粗，和真机那枚液态玻璃片同一个说法。 */
.inf-tabs s.is-on,
.inf-tabs s.is-on:hover {
  background: #fff;
  font-weight: 700;
  color: var(--a-ink);
  box-shadow:
    0 1px 2px -1px rgba(20, 30, 12, 0.32),
    inset 0 0 0 1px var(--a-line);
}

.inf-view {
  position: relative;
  min-height: 0;
  overflow: hidden;
}

.inf-track {
  display: flex;
  width: 200%;
  height: 100%;
  transform: translateX(0);
  transition: transform 0.55s cubic-bezier(0.32, 0.72, 0.28, 1);
}

.inf-slide {
  flex: none;
  width: 50%;
  height: 100%;
  min-width: 0;
}

html.js .screen[data-play='info'] .inf-track {
  transition: transform 0.55s cubic-bezier(0.32, 0.72, 0.28, 1);
}

/* 第二拍（`.s3`）：轨道往左推一格，选项卡跟着换到「订阅」。 */
html.js .screen[data-play='info'].s3 .inf-track {
  transform: translateX(-50%);
}

html.js .screen[data-play='info'].s3 .inf-tabs s:first-child {
  background: transparent;
  font-weight: 400;
  color: var(--a-soft);
  box-shadow: none;
}

html.js .screen[data-play='info'].s3 .inf-tabs s:last-child {
  background: #fff;
  font-weight: 700;
  color: var(--a-ink);
  box-shadow:
    0 1px 2px -1px rgba(20, 30, 12, 0.32),
    inset 0 0 0 1px var(--a-line);
}

/* 初始帧（只在有 JS 时隐藏） */
html.js .screen[data-play='info'] .inf-row.is-new {
  opacity: 0;
  transform: translateX(-10px);
}

html.js .screen[data-play='info'] .inf-ai-out {
  display: none;
}

/* s1 · 新邮件滑进来，橙点还在转 */
.screen[data-play='info'].s1 .inf-row.is-new {
  opacity: 1;
  transform: none;
}

/* s2 · 同步转绿、未读 18 → 15、正文区换成译文块 */
html.js .screen[data-play='info'].s2 .inf-ai-out {
  display: grid;
}

html.js .screen[data-play='info'].s2 .inf-body-txt {
  display: none;
}

.screen[data-play='info'].s2 .inf-dot {
  background: var(--a-lime-deep);
  animation: none;
}

.screen[data-play='info'].s2 .inf-sync-a {
  opacity: 0;
}

.screen[data-play='info'].s2 .inf-sync-b {
  opacity: 1;
}

.screen[data-play='info'].s2 .inf-num i:first-child {
  opacity: 0;
}

.screen[data-play='info'].s2 .inf-num i:last-child {
  opacity: 1;
}

.screen[data-play='info'].s2 .inf-row.is-new {
  background: transparent;
}

.screen[data-play='info'].s2 .inf-ai-out {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   06 · 项目（`.pj`）

   卡片墙 → 选中的那一个展开成「五个选项卡 + 六个分区目录」。
   真机新建项目时就建这六个目录，所以树是先有目录、后有文件。
   -------------------------------------------------------------------------- */

.pj {
  display: grid;
  gap: 12px;
}

.pj-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pj-title {
  font-size: 12.5px;
}

.pj-new {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--a-lime-wash);
  border: 1px solid #dcefc9;
  font-size: 11px;
  font-weight: 600;
  color: #35502a;
}

.pj-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pj-card {
  display: grid;
  align-content: start;
  gap: 3px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--a-line);
  background: #fff;
  transition: opacity 0.4s ease, background-color 0.4s ease,
    border-color 0.4s ease;
}

.pj-card b {
  font-size: 12px;
  line-height: 1.4;
  color: var(--a-ink);
}

.pj-card em {
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--a-mute);
}

/* 三个计数：计划 / 文档 / 文件。用「 ›」分开，读起来像面包屑。 */
.pj-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.pj-meta s {
  position: relative;
  padding-left: 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--a-soft);
}

.pj-meta s::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 3px;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 50%;
  background: #c3cbb8;
}

.pj-meta s:first-child {
  padding-left: 0;
}

.pj-meta s:first-child::before {
  display: none;
}

.pj-card.is-dim {
  opacity: 0.5;
}

/* 展开区 */
.pj-work {
  padding-top: 10px;
  border-top: 1px solid var(--a-line);
}

.pj-work-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.pj-work-top b {
  font-size: 12.5px;
}

.pj-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.pj-tree {
  display: grid;
  gap: 1px;
}

.pj-tree li {
  position: relative;
  padding: 4px 8px 4px 18px;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--a-soft);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.pj-tree li::before {
  content: "▸";
  position: absolute;
  left: 6px;
  color: #c3cbb8;
  font-size: 8px;
}

.pj-tree li.pj-file {
  color: var(--a-ink);
  background: #f7f8f4;
  font-weight: 600;
}

.pj-tree li.pj-file::before {
  content: "▤";
  color: var(--a-lime-deep);
}

/* 初始帧 */
html.js .screen[data-play='projects'] .pj-tree li {
  opacity: 0;
  transform: translateX(-6px);
}

/* s1 · 新建的项目亮起来（被压暗那张恢复） */
.screen[data-play='projects'].s1 .pj-card.is-dim {
  opacity: 1;
  background: #fbfdf7;
  border-color: #e2efd4;
}

/* s2 · 选中 2026 年度复盘，目录逐条落下来 */
.screen[data-play='projects'].s2 .pj-card.is-dim {
  opacity: 1;
}

.screen[data-play='projects'].s2 .pj-tree li {
  opacity: 1;
  transform: none;
}

.screen[data-play='projects'].s2 .pj-tree li:nth-child(1) {
  transition-delay: 0.02s;
}

.screen[data-play='projects'].s2 .pj-tree li:nth-child(2) {
  transition-delay: 0.08s;
}

.screen[data-play='projects'].s2 .pj-tree li:nth-child(3) {
  transition-delay: 0.14s;
}

.screen[data-play='projects'].s2 .pj-tree li:nth-child(4) {
  transition-delay: 0.2s;
}

.screen[data-play='projects'].s2 .pj-tree li:nth-child(5) {
  transition-delay: 0.26s;
}

.screen[data-play='projects'].s2 .pj-tree li:nth-child(6) {
  transition-delay: 0.32s;
}

.screen[data-play='projects'].s2 .pj-tree li:nth-child(7) {
  transition-delay: 0.4s;
}

/* s3 · 落在那篇项目说明上 */
.screen[data-play='projects'].s3 .pj-tree li.pj-file {
  background: var(--a-lime-wash);
}

/* --------------------------------------------------------------------------
   07 · 文档（`.dc`）

   库是权威、磁盘是同名镜像。这一屏演的就是「保存一下，镜像跟着更新」，
   路径那行是重点——它让「磁盘上也有一份」变成看得见的东西。
   -------------------------------------------------------------------------- */

.dc {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 14px;
}

.dc-side {
  display: grid;
  align-content: start;
  gap: 2px;
}

.dc-sh {
  margin: 0 0 4px 3px;
}

.dc-folder {
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-size: 11.5px;
  color: var(--a-soft);
}

.dc-list {
  display: grid;
  gap: 1px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--a-line);
}

.dc-item {
  padding: 5px 8px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-size: 11px;
  line-height: 1.4;
  color: var(--a-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dc-item.is-on {
  font-weight: 600;
}

.dc-main {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 7px;
}

.dc-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--a-line);
  flex-wrap: wrap;
}

.dc-title {
  font-size: 12.5px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dc-acts {
  display: inline-flex;
  gap: 5px;
}

.dc-body,
.dc-body2 {
  font-size: 12px;
  line-height: 1.8;
  color: var(--a-soft);
}

.dc-body2 {
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.dc-ai {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  padding-top: 6px;
  border-top: 1px dashed var(--a-line);
}

.dc-ai-h {
  font-size: 10px;
  color: var(--a-mute);
  margin-right: 2px;
}

/* AI 正在跑：润色那颗按钮转一圈省略号，别让它看起来只是被选中。 */
.screen[data-play='docs'].s2 .dc-ai-btn.is-on::after {
  content: "…";
  animation: dc-dots 1s steps(1) infinite;
}

@keyframes dc-dots {
  50% {
    opacity: 0.2;
  }
}

.dc-save {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: #35502a;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.dc-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--a-lime-deep);
  flex: none;
}

.dc-path {
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.5;
  color: var(--a-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity 0.35s ease;
}

/* 初始帧 */
html.js .screen[data-play='docs'] .dc-body2 {
  opacity: 0;
  transform: translateY(6px);
}

html.js .screen[data-play='docs'] .dc-save,
html.js .screen[data-play='docs'] .dc-path {
  opacity: 0;
  transform: translateY(4px);
}

/* s1 · 第二段落笔（打字那一下） */
.screen[data-play='docs'].s1 .dc-body2 {
  opacity: 1;
  transform: none;
}

/* s2 · 点「润色」，按钮转省略号 */
.screen[data-play='docs'].s2 .dc-ai {
  border-top-color: #dcefc9;
}

/* s3 · 保存 + 镜像已更新 + 磁盘路径 */
.screen[data-play='docs'].s3 .dc-save,
.screen[data-play='docs'].s3 .dc-path {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   08 · 学习中心（`.ln`）—— 2026-12-24 第三版：三栏，照真机 `LearnPanel.tsx`

   用户原话：「学习成长，下面所有内容页面，都按真实页面做，示例参考真实页面，
   不要不用真实信息就行」。

   真机的学习中心只有三件事：切分类（左）、找笔记（中，按标题 + 正文一起检索）、
   写笔记（右，停手 800ms 自动保存、离开时补写一次）。

   上一版是「正文 + 右侧口播稿」两栏——那是**学习资料**那一页的版式。口播稿、
   知识树、AI 批阅这三样在这里本来就不存在，已经搬回 09 学习资料（它们长在
   材料下面）。
   -------------------------------------------------------------------------- */

.ln {
  display: grid;
  grid-template-columns: 148px minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: 0;
  height: 100%;
}

/* 左：分类文件夹（八个种子分类里挑四个，可改名可删） */
.ln-side {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 2px;
  padding-right: 12px;
  border-right: 1px solid var(--a-line);
}

.ln-folder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 11.5px;
  color: var(--a-soft);
}

.ln-folder em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--a-mute);
}

.ln-folder.is-on {
  background: var(--a-lime-wash);
  box-shadow: inset 0 0 0 1px rgba(159, 232, 112, 0.55);
  color: var(--a-ink);
  font-weight: 700;
}

/* 分类抬头：真机是「分类」+ 右侧一颗 ＋（新建分类），不是底下一行文字。 */
.ln-side-h {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px 3px;
}

.ln-side-add {
  margin-left: auto;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid var(--a-line);
  background: #fff;
  font-size: 11px;
  line-height: 1;
  color: var(--a-soft);
}

/* 中：笔记列表（搜索框管标题 + 正文） */
.ln-list {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 8px;
  padding: 0 12px;
  border-right: 1px solid var(--a-line);
}

/* 列表抬头：「笔记 12 · 命中 4」在左，＋ 新建 在右。 */
.ln-list-h {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
}

.ln-list-h > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  color: var(--a-mute);
}

.ln-list-new {
  flex: none;
  margin-left: auto;
  padding: 2px 9px;
  border-radius: 7px;
  border: 1px solid var(--a-line);
  background: #fff;
  font-size: 10.5px;
  color: var(--a-soft);
}

.ln-search {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 6px 9px;
  border-radius: 9px;
  border: 1px solid var(--a-line);
  background: #fff;
  font-size: 11px;
  color: var(--a-mute);
}

.ln-search > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 放大镜：一个圈 + 一根斜柄，与真机那枚图标同一个形状。 */
.ln-search-ic {
  position: relative;
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.3px solid currentColor;
}

.ln-search-ic::after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -3px;
  width: 5px;
  height: 1.3px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}

/* 清除键：真机只在框里有字时才出现，这里同样不占位。 */
.ln-search-x {
  flex: none;
  margin-left: auto;
  font-size: 11px;
  line-height: 1;
  color: var(--a-mute);
}

.ln-notes {
  display: grid;
  gap: 3px;
}

.ln-notes li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1px 8px;
  padding: 7px 9px;
  border-radius: 9px;
  transition: background-color 0.25s ease;
}

.ln-notes li b {
  grid-column: 1;
  font-size: 12px;
  font-weight: 700;
  color: var(--a-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ln-notes li em {
  grid-column: 1;
  grid-row: 2;
  font-style: normal;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--a-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ln-notes li s {
  grid-column: 2;
  grid-row: 1;
  font-size: 9.5px;
  color: var(--a-mute);
  text-decoration: none;
}

.ln-notes li.is-on {
  background: #f4faea;
  box-shadow: inset 0 0 0 1px #dcefc9;
}

/* 右：编辑器 */
.ln-edit {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 9px;
  padding-left: 12px;
}

.ln-edit-h {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
}

.ln-edit-h b {
  font-size: 13px;
  font-weight: 700;
  color: var(--a-ink);
}

.ln-edit-h em {
  font-style: normal;
  font-size: 10px;
  color: var(--a-mute);
}

/* 保存状态 + 保存 / 删除：真机这三样就挤在标题那一行。 */
.ln-edit-state {
  flex: none;
  margin-left: auto;
  font-family: var(--mono);
}

.ln-edit-acts {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: none;
}

.ln-edit-acts s {
  padding: 2px 9px;
  border-radius: 7px;
  border: 1px solid var(--a-line);
  background: #fff;
  font-size: 10px;
  color: var(--a-soft);
}

.ln-edit-acts .ln-edit-del {
  color: #a8555a;
}

/* 元信息：多久以前改过 · 多少字 ……………… 从学习资料导入 */
.ln-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 10px;
  color: var(--a-mute);
}

.ln-import {
  margin-left: auto;
  flex: none;
  font-size: 10px;
  color: var(--a-mute);
}

/* MarkdownEditor 工具栏：一排等宽的小方块，右端是 写 / 分栏 / 看。 */
.ln-md {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: wrap;
  margin: 0;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--a-line);
}

.ln-md s {
  min-width: 20px;
  padding: 2px 4px;
  border-radius: 5px;
  text-align: center;
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.4;
  color: var(--a-mute);
}

.ln-md-mode {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.ln-md-mode s {
  padding: 2px 7px;
  font-family: inherit;
  font-size: 10px;
  color: var(--a-mute);
}

.ln-md-mode s.is-on {
  background: var(--a-lime-wash);
  color: #35502a;
  font-weight: 700;
}

.ln-edit-body {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.9;
  color: var(--a-soft);
}

.ln-edit-foot {
  margin: 2px 0 0;
  padding-top: 9px;
  border-top: 1px dashed var(--a-line);
}

/* 摘进来的那一句：左边一道青柠竖线，时间戳是等宽的。
   学习中心（编辑器末尾）与学习资料（笔记框）共用这一条。 */
.ln-added {
  position: relative;
  display: inline-block;
  padding-left: 9px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--a-ink);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.ln-added::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 2px;
  border-radius: 2px;
  background: var(--a-lime-deep);
}

/* 初始帧 */
html.js .screen[data-play='learn'] .ln-added {
  opacity: 0;
  transform: translateY(5px);
}

/* s2 · 那条带时间戳的句子落进笔记 */
.screen[data-play='learn'].s2 .ln-added,
.screen[data-play='learn'].s3 .ln-added {
  opacity: 1;
  transform: none;
}

/* s1 · 点中列表里刚写完的那条笔记 */
.screen[data-play='learn'].s1 .ln-notes li.is-new b,
.screen[data-play='learn'].s2 .ln-notes li.is-new b,
.screen[data-play='learn'].s3 .ln-notes li.is-new b {
  color: var(--a-lime-deep);
}

/* --------------------------------------------------------------------------
   10 · 素材（`.as`）

   六个固定分类 + 网格 + 多选条 + 素材站。演的动作是「在面板里点下载，
   文件直接落进库」——所以新格子出现在网格第一格，toast 说进了哪个分类。
   -------------------------------------------------------------------------- */

.as {
  display: grid;
  gap: 11px;
}

.as-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.as-tabs {
  display: inline-flex;
  gap: 5px;
}

.as-acts {
  font-size: 10px;
  color: var(--a-mute);
}

.as-cats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
}

.as-cat {
  display: grid;
  justify-items: center;
  gap: 2px;
}

.as-cat b {
  font-size: 10.5px;
  color: var(--a-ink);
}

.as-cat em {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--a-mute);
}

/* 缩略图：没有素材文件，所以用渐变块代表「图片 / 视频 / 音频 / 设计 /
   文档 / 其他」六个分类。不用 emoji、不引外部图，断网也不掉图。 */
.as-thumb {
  display: block;
  width: 100%;
  border-radius: 8px;
  background: #eef1e8;
}

.as-cat .as-thumb {
  aspect-ratio: 16 / 10;
}

.as-thumb.t1 {
  background: linear-gradient(140deg, #b7e59a, #7cc4a4 60%, #6aa9c9);
}

.as-thumb.t2 {
  background: linear-gradient(140deg, #4b5560, #6f5f92 70%, #9370b8);
}

.as-thumb.t3 {
  background: linear-gradient(140deg, #f0b472, #d9825a 70%, #c05a4a);
}

.as-thumb.t4 {
  background: linear-gradient(140deg, #f2a9c4, #b58ad6 70%, #8f7bd8);
}

.as-thumb.t5 {
  background: linear-gradient(140deg, #dfe3d8, #c3cbb8 70%, #a9b39e);
}

.as-thumb.t6 {
  background: linear-gradient(140deg, #c9d2dd, #a4b0bf 70%, #8b98a8);
}

.as-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
}

.as-item {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--a-line);
  transition: opacity 0.4s ease, transform 0.4s ease, box-shadow 0.4s ease;
}

.as-item .as-thumb {
  height: 100%;
  border-radius: 0;
}

.as-check {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 13px;
  height: 13px;
  border-radius: 4px;
  border: 1.4px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.35);
}

.as-check.is-on {
  border-color: var(--a-lime-deep);
  background: var(--a-lime-deep);
}

.as-check.is-on::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1px;
  width: 3px;
  height: 6px;
  border-right: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(42deg);
}

.as-item.is-new {
  box-shadow: 0 0 0 2px var(--a-lime), 0 10px 22px -14px rgba(11, 60, 24, 0.6);
}

.as-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 10.5px;
  color: var(--a-soft);
}

.as-bar span:last-child {
  color: var(--a-mute);
}

.as-sites {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  padding-top: 9px;
  border-top: 1px solid var(--a-line);
}

.as-sites-h {
  margin-right: 3px;
}

/* 初始帧 */
html.js .screen[data-play='assets'] .as-item.is-new {
  opacity: 0;
  transform: scale(0.82);
}

html.js .screen[data-play='assets'] .as-toast {
  opacity: 0;
  transform: translateY(8px);
}

/* s1 · 下载的那张落进第一格 */
.screen[data-play='assets'].s1 .as-item.is-new {
  opacity: 1;
  transform: none;
}

/* s2 · toast 确认它进了哪个分类 */
.screen[data-play='assets'].s2 .as-toast {
  opacity: 1;
  transform: none;
}

.screen[data-play='assets'].s2 .as-item.is-new {
  box-shadow: none;
}

/* --------------------------------------------------------------------------
   11 · 文件（`.fs`）

   资源管理器那一套：位置栏 + 网格 + 右键菜单。演的是「重名不覆盖」
   与「删除进废纸篓」——两个最容易让人不放心的点。
   -------------------------------------------------------------------------- */

.fs {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
}

.fs-side {
  display: grid;
  align-content: start;
  gap: 2px;
}

.fs-sh {
  margin: 6px 0 3px 3px;
}

.fs-sh:first-child {
  margin-top: 0;
}

.fs-loc {
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-size: 11.5px;
  color: var(--a-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fs-main {
  position: relative;
  min-width: 0;
}

.fs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--a-line);
  font-size: 10.5px;
}

.fs-bar span:first-child {
  font-weight: 600;
  color: var(--a-ink);
}

.fs-bar span:last-child {
  color: var(--a-mute);
}

.fs-grid {
  display: grid;
  /* 2026-12-23 第四十九版：13 项（3 个目录 + 10 个文件）要在一行里排完，
     所以格宽收到 70px 起——低于这个数，文件名就只剩两个字的宽度。 */
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
  grid-auto-rows: 1fr;
  gap: 8px;
  margin-top: 9px;
}

.fs-file {
  /* 右键菜单挂在这一格上（第六十八版）：它要能从这一格的右下角长出来。 */
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  padding: 6px 3px;
  border-radius: 8px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fs-file b {
  max-width: 100%;
  font-size: 10px;
  font-weight: 500;
  color: var(--a-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 文件类型图标：一块圆角色块 + 三个字母。够区分，且不依赖图标字体。 */
/* 文件图标（2026-12-23 第四十九版）：换成真机自绘的那套 SVG。
   上一版是「一块渐变色块 + 三个字母（IMG / DOC / XLS…）」——那种图标靠字母区分，
   而真机 `src/components/Icon.tsx` 里九个 `file-*` 的形状各不相同：Word 三行字、
   表格带行列、幻灯片是幕布 + 支脚、PDF 有装订折线、音频有音符、视频是实心三角、
   压缩包是拉链、纯文本两行、图片是一座小山。文件一多，形状比字母快得多。

   颜色也是真机 `ICON_TONE` 那几档（各取 -400 浅一档，让形状先说话）。 */
.fs-ic {
  width: 32px;
  height: 36px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #a3a3a3; /* text · neutral-400 */
}

.fs-ic.is-image {
  color: #737373; /* neutral-500 */
}

.fs-ic.is-word {
  color: #38bdf8; /* sky-400 */
}

.fs-ic.is-sheet {
  color: #34d399; /* emerald-400 */
}

.fs-ic.is-slides {
  color: #fb923c; /* orange-400 */
}

.fs-ic.is-pdf {
  color: #fb7185; /* rose-400 */
}

.fs-ic.is-audio {
  color: #f472b6; /* pink-400 */
}

.fs-ic.is-video {
  color: #818cf8; /* indigo-400 */
}

.fs-ic.is-archive {
  color: #fbbf24; /* amber-400 */
}

/* 文件夹：与「资源」页同一套四层 PNG（`FolderCard`），只是小一档。
   选择器要写成 `.fs-fold .fs-folder`：`.asv-f` 自己也定 `--art: 72px`，
   同特指下它在文件后面，会把这里的值盖掉（实测量出来是 72px）。 */
.fs-fold .fs-folder {
  --art: 38px;
}

.fs-fold b {
  font-weight: 600;
  color: var(--a-ink);
}

/* 改名中的那个文件：名字变成输入框的样子。 */
.fs-file.is-rename .fs-input {
  font-weight: 600;
  color: var(--a-ink);
}

.fs-input {
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--a-line);
  background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.fs-file.is-gone {
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.fs-file.is-gone b {
  transition: color 0.3s ease;
}

.fs-note {
  margin-top: 9px;
}

/* 右键菜单（第六十八版：贴在选中那一格的右下角 = 鼠标右键落下的位置）

   原来它是 `.fs-main` 里 `right: 8px; top: 40%` 的一层浮层，永远贴在窗口右缘，
   与「右键了哪个文件」毫无关系。现在它住在 `.fs-file` 里，用这一格的
   100% / 100% 定位——左上角正好落在这一格的右下角，再向左上各收 14 / 6px，
   像真机那样「从鼠标那儿弹出来」，不浮在半空。 */
.fs-menu {
  position: absolute;
  left: calc(100% - 14px);
  top: calc(100% - 6px);
  z-index: 12;
  display: grid;
  padding: 5px;
  min-width: 148px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--a-line);
  box-shadow: 0 18px 38px -22px rgba(11, 60, 24, 0.55);
  font-size: 11.5px;
  color: var(--a-ink);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fs-menu span {
  padding: 5px 9px;
  border-radius: 6px;
}

.fs-menu span.is-hl {
  background: var(--a-lime-wash);
  color: #35502a;
}

/* 初始帧 */
html.js .screen[data-play='files'] .fs-menu {
  opacity: 0;
  transform: translateY(4px) scale(0.97);
}

html.js .screen[data-play='files'] .fs-toast {
  opacity: 0;
  transform: translateY(8px);
}

/* s1 · 右键菜单弹出。
   选择器要带 `html.js`：上面那条初态是 `html.js .screen[…] .fs-menu`（3 类 + 属性），
   少一层就压不过它——菜单会永远不出现（`s3` 的 toast 同理，2026-12-23 一起修）。 */
html.js .screen[data-play='files'].s1 .fs-menu {
  opacity: 1;
  transform: none;
}

/* s2 · 点「重命名」，名字变成输入框（重名自动变成「名字 (2)」） */
.screen[data-play='files'].s2 .fs-input {
  border-color: var(--a-lime-deep);
  box-shadow: 0 0 0 2px #e6f6d8;
}

/* s3 · 删掉的那个进废纸篓，菜单收起，toast 说明可恢复 */
.screen[data-play='files'].s3 .fs-file.is-gone {
  opacity: 0.25;
  transform: scale(0.94);
}

.screen[data-play='files'].s3 .fs-file.is-gone b {
  color: #b6bcae;
  text-decoration: line-through;
}

html.js .screen[data-play='files'].s3 .fs-menu {
  opacity: 0;
  transform: translateY(4px);
}

html.js .screen[data-play='files'].s3 .fs-toast {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   13 · 工作流（`.flx`）

   画布那部分（`.fl-*`）在 app.css 里，先做；这里补下面两块：
   运行预览（每步成功 + 出网那一步等允许）。2026-12-24 删掉右侧「代码视图」
   那一栏：真机上它是工具栏上的一个切换，不是并排的第二栏。
   -------------------------------------------------------------------------- */

/*
  运行预览是**横条**，不是第二块画布（2026-12-24 二次收口）。

  上一版把每步写成一行三列的网格，可一步里有四样东西（序号 / 名字 / 成功 /
  看内容），第四样只能折到第二行——画布被这条竖着长的预览挤到 130px，
  比它上面的工具栏还矮。真机的运行预览贴在底栏，一行抬头、一行胶囊。

  现在：抬头（把状态、进度、用时、运行 / 运行记录并成一行）+ 一条横向的
  步骤胶囊 + 出网那一步的允许 + 产物，全部按内容高，画布吃掉剩下的高度。
*/
.flx {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding-top: 9px;
  border-top: 1px solid var(--a-line);
}

/* 抬头：运行预览 · 成功 · 3/3 步 · 用时 4.1 秒 ……………… 运行 / 运行记录 */
.flx-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.flx-h {
  margin: 0;
  flex: none;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--a-ink);
}

.flx-badge {
  flex: none;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--a-lime-wash);
  font-size: 9.5px;
  font-style: normal;
  font-weight: 600;
  color: #35502a;
}

.flx-meta {
  flex: none;
  font-size: 9.5px;
  text-decoration: none;
  color: var(--a-mute);
}

.flx-acts {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex: none;
}

.flx-acts b {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--a-lime-deep);
  font-size: 10px;
  font-weight: 600;
  color: #fff;
}

.flx-acts s {
  font-size: 10px;
  text-decoration: none;
  color: var(--a-mute);
}

/* 一步一颗胶囊，横着排；宽度不够时整颗换行，不会把字挤断。 */
.flx-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.flx-steps li {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--a-line);
  background: #fff;
  font-size: 10.5px;
  color: var(--a-soft);
}

.flx-steps li > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.flx-steps s {
  flex: none;
  font-size: 9.5px;
  text-decoration: none;
  color: var(--a-mute);
}

.flx-steps em {
  flex: none;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--a-lime-wash);
  font-size: 9px;
  font-style: normal;
  color: #35502a;
}

.flx-steps u {
  flex: none;
  font-size: 9.5px;
  text-decoration: none;
  color: var(--a-mute);
}

/* 出网那一步：暖色，等你点。 */
.flx-approve {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 7px 10px;
  border-radius: 9px;
  background: #fdf6ea;
  border: 1px solid #f2e2c6;
  font-size: 10.5px;
  line-height: 1.6;
  color: #8a5b1c;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.flx-allow {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--a-lime-deep);
  color: #fff;
  font-weight: 600;
}

.flx-out {
  font-size: 10.5px;
  color: var(--a-mute);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 初始帧 */
html.js .screen[data-play='flow'] .flx-approve,
html.js .screen[data-play='flow'] .flx-out {
  opacity: 0;
  transform: translateY(5px);
}

/* s4 · 到出网那一步，停下来等允许 */
.screen[data-play='flow'].s4 .flx-approve {
  opacity: 1;
  transform: none;
}

/* s5 · 产物落盘，点一下就能看 */
.screen[data-play='flow'].s5 .flx-approve {
  opacity: 1;
  transform: none;
}

.screen[data-play='flow'].s5 .flx-allow {
  background: #eaf8dc;
  color: #3f6b28;
}

.screen[data-play='flow'].s5 .flx-out {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   14 · 启动台（`.lt`）

   ⌘K 一张列表：应用是扫出来的，命令是内置的，混在一张表里。
   演的动作是「打三个字母 → 结果出来 → 选中第一个」。
   -------------------------------------------------------------------------- */

.lt {
  display: grid;
  gap: 8px;
  max-width: 520px;
}

.lt-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 11px;
  border: 1px solid var(--a-line);
  background: #fcfdf9;
}

.lt-keys {
  padding: 1px 6px;
  border-radius: 5px;
  border: 1px solid var(--a-line);
  background: #fff;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--a-soft);
}

.lt-q {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 12px;
  color: var(--a-ink);
}

.lt-text {
  font-style: normal;
}

/* 光标用一条会闪的竖线，不用动画进文字：这样它永远在字尾。 */
.lt-caret {
  width: 1.5px;
  height: 13px;
  background: var(--a-ink);
  animation: lt-blink 1.05s steps(1) infinite;
}

@keyframes lt-blink {
  50% {
    opacity: 0;
  }
}

.lt-hint {
  margin-left: auto;
  font-weight: 400;
}

.lt-list {
  display: grid;
  gap: 1px;
}

.lt-list li {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border-radius: 8px;
  font-size: 11.5px;
  color: var(--a-ink);
  transition: opacity 0.3s ease, transform 0.3s ease,
    background-color 0.2s ease;
}

.lt-list li b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lt-list li s {
  font-size: 9.5px;
  color: var(--a-mute);
}

.lt-ic {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: #cfd9c6;
}

/* 应用用实心色块，命令用空心圈：一眼分得出「打开一个程序」和
   「执行一个动作」。 */
.lt-list li .lt-ic {
  background: radial-gradient(circle at 32% 28%, #9fe870, #5f8f4d);
}

.lt-list li.is-out .lt-ic {
  background: none;
  border: 1.4px solid #c3cbb8;
}

.lt-list li.is-on {
  background: var(--a-lime-wash);
}

.lt-foot {
  font-size: 10px;
  color: var(--a-mute);
}

/* 初始帧 */
html.js .screen[data-play='launcher'] .lt-list li.is-out {
  opacity: 0;
  transform: translateY(4px);
}

/* s1 · 打字母，应用结果出来 */
.screen[data-play='launcher'].s1 .lt-q {
  color: var(--a-ink);
}

/* s2 · 命令那三行跟上来（同一个列表里） */
.screen[data-play='launcher'].s2 .lt-list li.is-out {
  opacity: 1;
  transform: none;
}

.screen[data-play='launcher'].s2 .lt-list li.is-out:nth-of-type(3) {
  transition-delay: 0.02s;
}

.screen[data-play='launcher'].s2 .lt-list li.is-out:nth-of-type(4) {
  transition-delay: 0.12s;
}

.screen[data-play='launcher'].s2 .lt-list li.is-out:nth-of-type(5) {
  transition-delay: 0.22s;
}

/* s3 · 选中第一个，回车就打开 */
.screen[data-play='launcher'].s3 .lt-list li.is-on {
  background: var(--a-lime-wash);
  box-shadow: inset 0 0 0 1px #dcefc9;
}

/* --------------------------------------------------------------------------
   16 · 设置（`.se`）

   2026-12-23 第四十版：照真机 `SettingsPanel.tsx` 重画。原来这里自造了四个
   选项卡（AI 服务 / 同步 / 通用 / 关于），真机**没有选项卡**——它是一列卡片：
   「AI 服务（全软件共用）」→「自动同步」→「一次对话最多跑几轮」→「其余设置」
   （宠物那块是玩具，这一页只放主要模块）。网站上把这一列折成两列：左边那张
   大卡（AI 服务），右边三张小卡。

   演示：s1 点「连通性测试」→ s2 出「✓ 连通 · 420ms」并弹「已更新这一套配置」。
   -------------------------------------------------------------------------- */

.se {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

/* 左栏那张大卡跨三行；右栏三张小卡各占一行。 */
.se-card {
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid var(--a-line);
  background: #fff;
}

.se-card--ai {
  grid-row: span 3;
}

.se-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
}

.se-head b {
  font-size: 12px;
  font-weight: 700;
  color: var(--a-ink);
}

.se-head em {
  font-style: normal;
  font-size: 9.5px;
  color: var(--a-mute);
}

.se-note {
  margin: 5px 0 0;
  font-size: 9.5px;
  line-height: 1.55;
  color: var(--a-mute);
}

.se-sub {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin: 9px 0 4px;
  font-size: 9px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--a-mute);
}

.se-sub s {
  text-decoration: none;
  text-transform: none;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid var(--a-line);
  font-size: 9.5px;
  color: var(--a-soft);
}

/* 已保存的服务：一行一套，当前那套带「使用中」。 */
.se-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.se-list li {
  display: flex;
  align-items: baseline;
  gap: 7px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid var(--a-line);
  background: #fcfff9;
}

.se-list li.is-on {
  border-color: #dcefc9;
  background: var(--a-lime-wash);
}

.se-list li b {
  font-size: 11px;
  color: var(--a-ink);
}

.se-list li em {
  font-family: var(--mono);
  font-size: 9px;
  font-style: normal;
  color: var(--a-mute);
}

.se-badge {
  margin-left: auto;
  text-decoration: none;
  padding: 1px 7px;
  border-radius: 999px;
  border: 1px solid #dcefc9;
  background: #fff;
  font-size: 9px;
  color: #35502a;
  font-weight: 600;
}

.se-badge.is-off {
  border-color: var(--a-line);
  color: var(--a-mute);
  font-weight: 400;
}

/* 常用服务预设：点一下把地址与模型填进下面四栏（这里只是摆着）。 */
.se-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
}

.se-chips s {
  text-decoration: none;
  padding: 2px 9px;
  border-radius: 7px;
  border: 1px solid var(--a-line);
  font-size: 10px;
  color: var(--a-soft);
}

.se-chips s.is-on {
  border-color: var(--a-line);
  background: #f4f7ef;
  color: var(--a-ink);
}

/* 四栏：名字 / API 地址 / 模型 / API 密钥。左边是标签，右边是值（像真机的输入框）。 */
.se-fields {
  display: grid;
  gap: 4px;
  margin-top: 9px;
}

.se-fields p {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid var(--a-line);
  background: #fcfdf9;
}

.se-fields span {
  font-size: 9.5px;
  color: var(--a-mute);
}

.se-fields b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 400;
  color: var(--a-ink);
}

.se-fields b.se-muted {
  font-family: inherit;
  color: var(--a-mute);
}

/* 按钮行：保存 / 连通性测试 / 删除密钥。「✓ 连通」与按钮同一格叠着换。 */
.se-acts {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 9px 0 0;
}

.se-acts s {
  text-decoration: none;
  padding: 2px 9px;
  border-radius: 7px;
  border: 1px solid var(--a-line);
  font-size: 10px;
  color: var(--a-soft);
}

.se-pass {
  margin-left: auto;
  border: 0;
  font-weight: 600;
  color: #3f6b28;
  transition: opacity 0.3s ease;
}

/* 右栏的小行：左边名字、中间值、右边备注。 */
.se-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 6px 0 0;
  padding: 4px 0;
  border-bottom: 1px dashed #eef1e8;
  font-size: 10.5px;
  color: var(--a-soft);
}

.se-line:last-of-type {
  border-bottom: 0;
}

.se-line span:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.se-line b {
  font-size: 10.5px;
  color: var(--a-ink);
}

.se-line em {
  font-size: 9px;
  font-style: normal;
  color: var(--a-mute);
}

.se-input {
  flex: none !important;
  width: 34px;
  padding: 2px 0;
  border-radius: 6px;
  border: 1px solid var(--a-line);
  background: #fcfdf9;
  text-align: center;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--a-ink);
}

.se-save {
  flex: none;
  text-decoration: none;
  padding: 2px 9px;
  border-radius: 7px;
  border: 1px solid var(--a-line);
  font-size: 10px;
  color: var(--a-soft);
}

/* toast 用的是全站那张皮（`.se-toast` / `.se-toast-ic` 已挂在文件开头的共用
   选择器里）：绝对定位在 `.fake` 右下角，带一枚打勾。这里只补它的初态。 */
.se-toast {
  opacity: 0;
  transform: translateY(8px);
}

/* 初始帧：结果先不出现。 */
html.js .screen[data-play='settings'] .se-pass {
  opacity: 0;
}

html.js .screen[data-play='settings'] .se-toast {
  opacity: 0;
  transform: translateY(8px);
}

/* s1 · 点了「连通性测试」：按钮淡下去，等结果 */
.screen[data-play='settings'].s1 .se-test {
  opacity: 0.55;
}

/* s2 · 通得上 + 420ms，然后 toast 说这套配置已更新。
   选择器必须带上 `html.js` 与 `.s2`：上面那两条初态是 `html.js .screen[...] .se-*`，
   少写 `html.js` 的话（2 个类 + 1 个属性）压不过它（3 个类 + 1 个属性），
   结果就是「按钮淡下去了、结果永远不出来」。 */
html.js .screen[data-play='settings'].s2 .se-test {
  opacity: 0;
}

html.js .screen[data-play='settings'].s2 .se-pass {
  opacity: 1;
}

.screen[data-play='settings'].s2 .se-list li.is-test {
  border-color: #dcefc9;
  background: var(--a-lime-wash);
}

html.js .screen[data-play='settings'].s2 .se-toast {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   05 · 订阅（`.fd`）

   RSS / Atom 怎么进来、怎么读完。与 04 的区别是主语：那边是「两个信箱」，
   这边是「一堆源」——所以要演的是条件请求（没新条目就不重下）、打开一条
   才取全文、翻译与总结排在正文之前、读完标已读并且未读数掉一格。
   -------------------------------------------------------------------------- */

/* 信息中心下半（订阅，2026-12-19 合到同一页）：第六十四版起它变成轮播的第二页，
   这一层留白与虚线都不需要了——两页之间由轨道位移表达。 */

/* 订阅页照真机 `FeedPanel`（2026-12-27 第七十九版）：整页自上而下三行
   ——工具栏 / 源胶囊 / [条目列表 + 44% 详情]。原来这里是「左栏订阅源 +
   三栏」，真机没有那条左栏。 */
.fd {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 9px;
  height: 100%;
  min-height: 0;
}

.fd-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  min-width: 0;
}

.fd-tools > b {
  font-size: 12px;
  font-weight: 600;
  color: var(--a-ink);
  margin-right: 2px;
}

.fd-tools > s {
  padding: 2px 8px;
  border: 1px solid var(--a-line);
  border-radius: 7px;
  background: #fff;
  font-size: 11px;
  text-decoration: none;
  color: var(--a-soft);
  white-space: nowrap;
}

.fd-total {
  margin-left: auto;
  font-size: 10.5px;
  color: var(--a-mute);
  white-space: nowrap;
}

/* 源胶囊：名字 + 未读数 + 健康点（真机 `max-w-[14rem]` 那枚） */
.fd-srcs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.fd-srcs s {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 168px;
  padding: 2px 8px;
  border: 1px solid var(--a-line);
  border-radius: 8px;
  background: #fff;
  font-size: 11px;
  text-decoration: none;
  color: var(--a-soft);
  white-space: nowrap;
}

.fd-srcs s.is-on {
  border-color: #cfe3b6;
  background: var(--a-lime-wash);
  color: #35502a;
}

.fd-srcs b {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fd-srcs i {
  padding: 0 5px;
  border-radius: 999px;
  background: rgba(20, 30, 12, 0.06);
  font-style: normal;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--a-soft);
}

.fd-srcs u {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--a-lime-deep);
}

/* 列表 + 44% 详情（真机 `w-[44%]` 那个 aside） */
.fd-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44%;
  gap: 10px;
  min-height: 0;
}

.fd-sync {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--a-soft);
}

.fd-sync-a,
.fd-sync-b {
  grid-area: 1 / 2;
  transition: opacity 0.25s ease;
}

.fd-sync-b {
  opacity: 0;
}

.fd-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--a-warn);
  transition: background-color 0.3s ease;
}

html.js [data-play='feeds'] .fd-dot {
  animation: inf-pulse 1.1s ease-in-out infinite;
}

.fd-num {
  display: inline-grid;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 700;
  color: var(--a-ink);
}

.fd-num i {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.fd-num i:first-child {
  opacity: 1;
}

/*
  条目行照真机 `FeedPanel` 排：一张张带边框的卡（不是分隔线），
  卡里是「未读点 + 标题 / 来源 · 时间 / 两行摘要」。
*/
.fd-list {
  display: grid;
  align-content: start;
  gap: 6px;
  min-height: 0;
}

.fd-u {
  width: 5px;
  height: 5px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--a-lime-deep);
  opacity: 0;
}

.fd-row.is-new .fd-u {
  opacity: 1;
}

.fd-txt {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.fd-meta {
  font-size: 10.5px;
  color: var(--a-mute);
}

.fd-t3 {
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--a-mute);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.fd-row.is-new {
  background: var(--a-lime-wash);
}

.fd-row {
  display: grid;
  grid-template-columns: 6px minmax(0, 1fr);
  gap: 0 7px;
  align-items: start;
  padding: 7px 9px;
  border: 1px solid var(--a-line);
  border-radius: 8px;
  background: #fff;
  transition: background-color 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}

/* 详情：一个带边的框（真机 `rounded-lg border bg-neutral-900/40` 那个 aside） */
.fd-read {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 10px 11px;
  border: 1px solid var(--a-line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}

.fd-read-h {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--a-ink);
}

/* 详情头那一行：来源 · 时间 + 在浏览器打开 / 翻译 / 总结 + 模型名 */
.fd-read .fd-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px 6px;
}

.fd-meta s {
  padding: 1px 7px;
  border: 1px solid var(--a-line);
  border-radius: 6px;
  font-size: 10.5px;
  text-decoration: none;
  color: var(--a-soft);
}

.fd-meta em {
  font-style: normal;
  font-size: 9.5px;
  color: var(--a-mute);
}

.fd-read-body {
  font-size: 11.5px;
  line-height: 1.75;
  color: var(--a-soft);
}

.fd-ai {
  display: grid;
  gap: 5px;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid #e6efd9;
  background: #f7faf1;
}

.fd-ai-h {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5a7a48;
}

.fd-ai-h s {
  margin-left: auto;
  padding: 0 6px;
  border: 1px solid #dbe7c8;
  border-radius: 4px;
  font-size: 9.5px;
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0;
  color: #35502a;
}

.fd-tr,
.fd-sum {
  font-size: 11px;
  line-height: 1.7;
  color: #35502a;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.fd-read-foot {
  display: flex;
  gap: 8px;
  font-size: 10px;
  color: var(--a-mute);
}

.fd-star {
  font-weight: 600;
  color: #3f6b28;
  transition: opacity 0.35s ease;
}

/* 初始帧 */
html.js [data-play='feeds'] .fd-row.is-new {
  opacity: 0;
  transform: translateX(-10px);
}

html.js [data-play='feeds'] .fd-tr,
html.js [data-play='feeds'] .fd-sum,
html.js [data-play='feeds'] .fd-star {
  opacity: 0;
  transform: translateY(4px);
}

/* s1 · 新条目落进来，橙点还在拉 */
[data-play='feeds'].s1 .fd-row.is-new {
  opacity: 1;
  transform: none;
}

/* s2 · 拉取完成 + 点「翻译」，译文出现在正文之前 */
[data-play='feeds'].s2 .fd-dot {
  background: var(--a-lime-deep);
  animation: none;
}

[data-play='feeds'].s2 .fd-sync-a {
  opacity: 0;
}

[data-play='feeds'].s2 .fd-sync-b {
  opacity: 1;
}

[data-play='feeds'].s2 .fd-tr {
  opacity: 1;
  transform: none;
}

/* s3 · 总结 + 星标，读完标已读，未读 18 → 17 */
[data-play='feeds'].s3 .fd-sum {
  opacity: 1;
  transform: none;
}

[data-play='feeds'].s3 .fd-star {
  opacity: 1;
  transform: none;
}

[data-play='feeds'].s3 .fd-num i:first-child {
  opacity: 0;
}

[data-play='feeds'].s3 .fd-num i:last-child {
  opacity: 1;
}

[data-play='feeds'].s3 .fd-row.is-new {
  background: transparent;
}

/* --------------------------------------------------------------------------
   09 · 学习资料（`.rs`）—— 2026-12-24 第三版：四块，照真机 `MaterialsPanel.tsx`

   左分类栏 · 中材料库 · 右阅读区（标题 → 链接 → 笔记 → 内容），阅读区里再留
   一条只放口播稿 / 知识树 / AI 批阅的窄栏。

   上一版是「左类型 + 右结果 + 一段打开说明」，打开之后没有地方放正文，口播稿
   那三条还被错放到了 08 学习中心。这一版把阅读区补全，那三样搬回来。
   -------------------------------------------------------------------------- */

.rs {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.42fr);
  gap: 0;
  height: 100%;
}

.rs-side {
  border-right: 1px solid var(--a-line);
  padding-right: 12px;
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
}

/* 左栏抬头：真机是「分类」+ 右侧一颗 ＋。 */
.rs-sh {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 4px 3px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--a-mute);
}

.rs-sh-add {
  margin-left: auto;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid var(--a-line);
  background: #fff;
  font-size: 11px;
  line-height: 1;
  color: var(--a-soft);
}

/* 中：材料库 */
.rs-lib {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 7px;
  padding: 0 12px;
  border-right: 1px solid var(--a-line);
}

/* 抬头一行：分类名 + 「N 份材料 · 学完 M」，右边两颗动作按钮。 */
.rs-lib-h {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  margin: 0;
}

.rs-lib-h b {
  flex: none;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--a-ink);
}

.rs-lib-h > s {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  color: var(--a-mute);
}

.rs-lib-acts {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  flex: none;
}

.rs-lib-acts s {
  padding: 2px 8px;
  border-radius: 7px;
  border: 1px solid var(--a-line);
  background: #fff;
  font-size: 10px;
  white-space: nowrap;
  color: var(--a-soft);
}

.rs-lib-acts .is-solid {
  background: var(--a-lime);
  border-color: transparent;
  font-weight: 700;
  color: #26361c;
}

/* 「这一块想学成什么样？」——真机是一行没有边框的输入提示。 */
.rs-want {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
  color: var(--a-mute);
}

/* 状态分组标题：在学 / 未开始 / 已学完，后面跟条数。 */
.rs-group {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 3px 0 0;
  padding-top: 6px;
  border-top: 1px dashed var(--a-line);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--a-mute);
}

.rs-group s {
  font-family: var(--mono);
  font-weight: 400;
  color: var(--a-mute);
}

.rs-list {
  display: grid;
  gap: 2px;
}

/*
  一份材料一行：形态徽章 → 标题 + 来源 · 口播稿字数 · 笔记数 → 进度 → 状态。
  下面挂的子笔记（`.rs-kids`）跨满整行，缩进到标题那一列。
*/
.rs-hit {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 2px 7px;
  padding: 6px 8px;
  border-radius: 8px;
  transition: opacity 0.35s ease, transform 0.35s ease, background-color 0.25s ease;
}

.rs-kind {
  flex: none;
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--a-line);
  background: #fff;
  font-size: 9.5px;
  line-height: 1.5;
  white-space: nowrap;
  color: var(--a-mute);
}

.rs-main {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.rs-hit b {
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rs-main em {
  font-style: normal;
  font-size: 9.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--a-mute);
}

.rs-pct {
  font-family: var(--mono);
  font-size: 9.5px;
  font-variant-numeric: tabular-nums;
  color: var(--a-mute);
}

/* 状态徽章：在学是青柠洗底，未开始是灰底。 */
.rs-badge {
  padding: 1px 6px;
  border-radius: 999px;
  background: #f0f1ee;
  font-size: 9.5px;
  white-space: nowrap;
  color: var(--a-soft);
}

.rs-badge.is-doing {
  background: var(--a-lime-wash);
  color: #35502a;
}

/* 挂在这份材料下的笔记：真机缩进 14（约一个徽章宽），带一个小图标。 */
.rs-kids {
  grid-column: 1 / -1;
  display: grid;
  gap: 1px;
  margin-top: 2px;
  padding-left: 44px;
}

.rs-kids li {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 10px;
  color: var(--a-mute);
}

.rs-kids li > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rs-hit.is-on {
  background: var(--a-lime-wash);
  box-shadow: inset 0 0 0 1px #dcefc9;
}

.rs-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid transparent;
  font-size: 11.5px;
  color: var(--a-soft);
}

.rs-cat b {
  font-weight: 500;
}

.rs-cat em {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--a-mute);
}

.rs-cat.is-on {
  background: var(--a-lime-wash);
  border-color: #dcefc9;
  color: #35502a;
}

.rs-note {
  margin-top: 8px;
  font-size: 10px;
  line-height: 1.6;
  color: var(--a-mute);
}

/* 右：阅读区（正文 + 一条窄栏） */
.rs-read {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 178px;
  gap: 0;
}

.rs-doc {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 7px;
  padding: 0 12px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.rs-doc-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--a-ink);
}

.rs-doc-title em {
  font-style: normal;
  font-size: 10px;
  font-weight: 400;
  color: var(--a-mute);
}

/* 抬头那行「← 读书」：真机是标题上面的一条返回链接。 */
.rs-crumb {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 10px;
  color: var(--a-mute);
}

.rs-crumb s {
  font-size: 10px;
  color: var(--a-mute);
}

/* 三档进度：未开始 / 在学 / 学完，真机是一排互斥的小片。 */
.rs-status {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 1px;
  border-radius: 7px;
  border: 1px solid var(--a-line);
  background: #fff;
}

.rs-status s {
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 9.5px;
  font-weight: 400;
  white-space: nowrap;
  color: var(--a-mute);
}

.rs-status .is-on {
  background: var(--a-lime-wash);
  font-weight: 700;
  color: #35502a;
}

.rs-open {
  font-size: 9.5px;
  font-weight: 400;
  white-space: nowrap;
  color: var(--a-mute);
}

.rs-link {
  margin: 0;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--a-mute);
}

.rs-nb {
  padding: 8px 10px;
  border-radius: 10px;
  background: #f8faf4;
  border: 1px solid #e9efe0;
}

.rs-nb-h {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 600;
  color: var(--a-mute);
}

.rs-nb-body {
  display: grid;
  gap: 4px;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--a-soft);
}

.rs-added {
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.rs-content {
  margin: 0;
  padding-top: 7px;
  border-top: 1px dashed var(--a-line);
  font-size: 11px;
  line-height: 1.9;
  color: var(--a-soft);
}

/* 阅读区右侧那条窄栏：口播稿 / 知识树 / AI 批阅 */
.rs-rail {
  min-width: 0;
  display: grid;
  /* 单列必须显式给 `minmax(0, 1fr)`：隐式列是 `auto`，会被页签的 min-content
     撑到 226px，比 178 的栏还宽，整条就压到阅读区外面去了。 */
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 6px;
  padding-left: 12px;
  border-left: 1px solid var(--a-line);
}

/* 阅读区右侧窄栏：真机是三个页签，一次只显示一个（这里演「口播稿」）。 */
.rs-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  margin: 0;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--a-line);
}

.rs-tabs s {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  white-space: nowrap;
  color: var(--a-mute);
}

.rs-tabs .is-on {
  background: var(--a-lime-wash);
  font-weight: 700;
  color: #35502a;
}

.rs-lines {
  display: grid;
  gap: 1px;
}

.rs-lines li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  padding: 3px 5px;
  border-radius: 7px;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--a-soft);
}

.rs-ts {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--a-mute);
}

.rs-pick {
  padding: 0 6px;
  border-radius: 999px;
  border: 1px solid var(--a-line);
  font-size: 9.5px;
  color: var(--a-mute);
  opacity: 0;
  transition: opacity 0.25s ease, background-color 0.25s ease;
}

.rs-lines li.is-pick {
  background: var(--a-lime-wash);
  color: #35502a;
}

.rs-lines li.is-pick .rs-pick {
  opacity: 1;
  border-color: #cfe6b8;
  background: #fff;
  color: #35502a;
}

.rs-asr {
  margin: 0;
  padding-top: 6px;
  border-top: 1px dashed var(--a-line);
  font-size: 9.5px;
  line-height: 1.6;
  color: var(--a-mute);
}

/* 摘完那句确认（真机 3 秒后自己消失）：暖色一条，压在口播稿下面。 */
.rs-toast {
  margin: 0;
  padding: 6px 8px;
  border-radius: 9px;
  background: #fdf7ec;
  border: 1px solid #f2e2c6;
  font-size: 10px;
  line-height: 1.65;
  color: #8a5b1c;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* 初始帧：打开一份材料之后正文才出现；「摘」与那条确认再晚一步。 */
html.js .screen[data-play='research'] .rs-doc {
  opacity: 0;
  transform: translateY(6px);
}

html.js .screen[data-play='research'] .rs-added,
html.js .screen[data-play='research'] .rs-toast {
  opacity: 0;
  transform: translateY(5px);
}

/* s1 · 在当前分类里过滤，命中的那条亮起来 */
.screen[data-play='research'].s1 .rs-hit.is-on,
.screen[data-play='research'].s2 .rs-hit.is-on,
.screen[data-play='research'].s3 .rs-hit.is-on {
  background: var(--a-lime-wash);
}

/* s2 · 打开那份材料 */
.screen[data-play='research'].s2 .rs-doc,
.screen[data-play='research'].s3 .rs-doc {
  opacity: 1;
  transform: none;
}

/* s2 · 点了一下「摘」，那一行亮起来 */
.screen[data-play='research'].s2 .rs-lines li.is-pick .rs-pick,
.screen[data-play='research'].s3 .rs-lines li.is-pick .rs-pick {
  background: var(--a-lime-deep);
  border-color: var(--a-lime-deep);
  color: #fff;
}

/* s3 · 带时间戳的句子进了笔记，右栏底部报一句「已摘进笔记 …」 */
.screen[data-play='research'].s3 .rs-added,
.screen[data-play='research'].s3 .rs-toast {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   15 · 外观（`.th`）

   换纸、换日历、换明暗。最后一步把整块假界面切成深色——所以这一屏的颜色
   全部走 `--th-*` 局部令牌：s3 只换那一组值，不用逐条覆盖后代颜色。
   -------------------------------------------------------------------------- */

.th {
  --th-bg: #fff;
  --th-line: #e6e9e0;
  --th-ink: #141712;
  --th-soft: #5f635c;
  --th-mute: #8c9089;
  --th-card: #f7f8f4;

  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
}

.screen[data-play='theme'] .fake,
.screen[data-play='theme'] .th-note,
.screen[data-play='theme'] .th-cal-card,
.screen[data-play='theme'] .th-skin,
.screen[data-play='theme'] .th-cal-opt,
.screen[data-play='theme'] .th-mode {
  transition: background-color 0.45s ease, border-color 0.45s ease,
    color 0.45s ease, box-shadow 0.45s ease;
}

.th-side {
  border-right: 1px solid var(--th-line);
  padding-right: 12px;
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
}

.th-sh {
  margin: 0;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--th-mute);
}

.th-skins {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

/* 七张纸：这里铺的是项目里真实的皮肤图（`src/assets/note-skins/*`，
   压到 420px 宽放在 `assets/skins/`），不是用渐变假装质感。 */
.th-skin {
  display: block;
  aspect-ratio: 1 / 1.15;
  border-radius: 6px;
  border: 1px solid var(--th-line);
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
}

.th-skin.is-on {
  border-color: var(--a-lime-deep);
  box-shadow: 0 0 0 2px #e6f6d8;
}

.th-hint {
  font-size: 9.5px;
  line-height: 1.6;
  color: var(--th-mute);
}

.th-main {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 10px;
}

/* 便签：两层真实的纸。第一层是默认那张（01-蜜黄），第二层（10-青瓷）
   在 s1 时淡进来——「换纸」换的是纸本身，不是把底色刷深一档。 */
.th-note {
  position: relative;
  isolation: isolate;
  min-height: 74px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--th-line);
  background-color: var(--th-card);
  overflow: hidden;
}

.th-note-paper {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--skin);
  background-size: cover;
  background-position: center;
  opacity: 0.62;
  box-shadow: inset 0 0 0 1px rgba(14, 15, 12, 0.1);
}

.th-note-paper--b {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.th-note-h {
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--th-mute);
}

.th-note-body {
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--th-ink);
}

/* 日历：一个 tile 演三套样式。默认这套就是「白纸黑字」。 */
.th-cal {
  display: grid;
  gap: 6px;
}

.th-cal-h {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--th-mute);
}

.th-cals {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.th-cal-opt {
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--th-line);
  background: var(--th-bg);
  font-size: 10px;
  color: var(--th-soft);
}

.th-cal-opt.is-on {
  border-color: #dcefc9;
  background: var(--a-lime-wash);
  color: #35502a;
}

/* 日历：照真机那三套「整卡样式」画（`src/lib/calendarSkins.ts` 的
   retro / sticker / pastel；令牌值取自 `src/index.css` 的 `.pws-cal-style-*`）。
   换的是纸色、星期行、数字字形与「今天」的标法，不是换一张底纹。 */
.th-cal-card {
  --cal-paper: #fff;
  --cal-rim: var(--th-line);
  --cal-ink: var(--th-ink);
  --cal-dim: var(--th-mute);
  --cal-weekend: #9e2b25;
  --cal-head-bg: transparent;
  --cal-head-ink: var(--th-mute);
  --cal-cell-bg: transparent;
  --cal-today-bg: transparent;
  --cal-today-ink: #2f6d18;
  --cal-num-font: var(--mono);
  --cal-num-weight: 500;

  width: 100%;
  max-width: 268px;
  padding: 9px 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--cal-rim);
  background: var(--cal-paper);
  color: var(--cal-ink);
  font-family: var(--cal-num-font);
  transition: background-color 0.45s ease, border-color 0.45s ease,
    color 0.45s ease;
}

.tc-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 6px;
}

.tc-m {
  font-size: 19px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tc-head em {
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--cal-dim);
}

.tc-today {
  margin-left: auto;
  font-family: var(--font, inherit);
  font-size: 9px;
  color: var(--cal-today-ink);
}

.tc-wd {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin: 0 0 3px;
  padding: 2px 0;
  border-radius: 3px;
  background: var(--cal-head-bg);
}

.tc-wd span {
  text-align: center;
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cal-head-ink);
}

.tc-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  margin: 0;
}

.tc-grid span {
  display: grid;
  place-items: center;
  height: 17px;
  border-radius: 2px;
  border: 1px solid transparent;
  background: var(--cal-cell-bg);
  font-size: 9.5px;
  font-weight: var(--cal-num-weight);
}

.tc-grid span.is-out {
  opacity: 0.55;
  color: var(--cal-dim);
}

/* 周末靠颜色区分（不是靠明度），今天最后再盖一层。 */
.tc-grid span:nth-child(7n),
.tc-grid span:nth-child(7n - 1) {
  color: var(--cal-weekend);
}

.tc-grid span.is-today {
  border-color: var(--cal-rim);
  background: var(--cal-today-bg);
  color: var(--cal-today-ink);
  font-weight: 700;
}

.th-mode-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid var(--th-line);
}

.th-mode-h {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--th-mute);
}

.th-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.th-mode {
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid var(--th-line);
  background: var(--th-bg);
  font-size: 10.5px;
  color: var(--th-soft);
}

.th-mode.is-on {
  border-color: #dcefc9;
  background: var(--a-lime-wash);
  color: #35502a;
}

/* s1 · 换纸：第二张真实的纸（10-青瓷）淡进来，左边的九宫格跟着高亮第四张 */
.screen[data-play='theme'].s1 .th-note-paper--b {
  opacity: 0.62;
}

.screen[data-play='theme'].s1 .th-skin:nth-child(1) {
  border-color: var(--th-line);
  box-shadow: none;
}

.screen[data-play='theme'].s1 .th-skin:nth-child(4) {
  border-color: var(--a-lime-deep);
  box-shadow: 0 0 0 2px #e6f6d8;
}

/* 一到换样式的步骤，先把「默认」那枚的选中态撤掉——否则它会一直亮着，
   读者看到四枚里两枚都是选中的。 */
.screen[data-play='theme'].s2 .th-cal-opt.is-on,
.screen[data-play='theme'].s3 .th-cal-opt.is-on,
.screen[data-play='theme'].s4 .th-cal-opt.is-on,
.screen[data-play='theme'].s5 .th-cal-opt.is-on {
  border-color: var(--th-line);
  background: var(--th-bg);
  color: var(--th-soft);
  font-weight: 400;
}

/* s2 · 日历换成「红黑月历」：米白纸、黑色星期条、衬线粗数字、周末朱红、
   今天是一整格红框（参考图里 4 号就是那个框）。 */
.screen[data-play='theme'].s2 .th-cal-card {
  --cal-paper: #f8f2e5;
  --cal-rim: #cbbca1;
  --cal-ink: #1f1a14;
  --cal-dim: #8b806d;
  --cal-weekend: #9e2b25;
  --cal-head-bg: #191510;
  --cal-head-ink: #f5ecdf;
  --cal-today-ink: #9e2b25;
  --cal-num-font: ui-serif, 'Songti SC', 'Times New Roman', serif;
  --cal-num-weight: 700;
}

.screen[data-play='theme'].s2 .tc-wd {
  padding: 2px 0;
  border-radius: 3px;
}

.screen[data-play='theme'].s2 .th-cal-opt:nth-child(1) {
  border-color: var(--th-line);
  background: var(--th-bg);
  color: var(--th-soft);
  font-weight: 400;
}

.screen[data-play='theme'].s2 .th-cal-opt:nth-child(2) {
  border-color: #dccdb4;
  background: #f8f2e5;
  color: #6b4a24;
  font-weight: 600;
}

/* s3 · 换成「樱花贴纸」：樱粉纸、圆角日格带浅粉底、紫色星期字母、
   今天是一枚实心粉章。 */
.screen[data-play='theme'].s3 .th-cal-card {
  --cal-paper: #fdeef5;
  --cal-rim: #f2cddd;
  --cal-ink: #43304b;
  --cal-dim: #a389ad;
  --cal-weekend: #b04b7c;
  --cal-head-bg: transparent;
  --cal-head-ink: #8d5c8a;
  --cal-cell-bg: #f9e4ee;
  --cal-today-bg: #b04b7c;
  --cal-today-ink: #fdf4f8;
  --cal-num-font: inherit;
  --cal-num-weight: 700;
}

.screen[data-play='theme'].s3 .tc-grid span {
  border-radius: 6px;
}

.screen[data-play='theme'].s3 .tc-m {
  padding: 1px 7px;
  border-radius: 999px;
  background: #b04b7c;
  color: #fdf4f8;
  font-size: 11px;
}

.screen[data-play='theme'].s3 .th-cal-opt:nth-child(2) {
  border-color: var(--th-line);
  background: var(--th-bg);
  color: var(--th-soft);
  font-weight: 400;
}

.screen[data-play='theme'].s3 .th-cal-opt:nth-child(3) {
  border-color: #ecc8d2;
  background: #fbe9ee;
  color: #8a3d55;
  font-weight: 600;
}

/* s4 · 换成「淡彩手账」：近白纸、星期字母装进粉色圆底、细体淡紫数字、
   格线几乎看不见，只靠留白分组。 */
.screen[data-play='theme'].s4 .th-cal-card {
  --cal-paper: #fbf7fd;
  --cal-rim: #e8dff1;
  --cal-ink: #6f6079;
  --cal-dim: #b4a7c0;
  --cal-weekend: #cf7ea6;
  --cal-head-bg: #f4cada;
  --cal-head-ink: #7a4362;
  --cal-today-bg: #f4cada;
  --cal-today-ink: #7a4362;
  --cal-num-font: inherit;
  --cal-num-weight: 400;
}

.screen[data-play='theme'].s4 .tc-wd span {
  width: 16px;
  height: 16px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 999px;
}

.screen[data-play='theme'].s4 .th-cal-opt:nth-child(3) {
  border-color: var(--th-line);
  background: var(--th-bg);
  color: var(--th-soft);
  font-weight: 400;
}

.screen[data-play='theme'].s4 .th-cal-opt:nth-child(4) {
  border-color: #e8dff1;
  background: #fbf7fd;
  color: #7a4362;
  font-weight: 600;
}

/* s5 · 切深色：整块假界面换令牌，不是只把字反过来。
   纸也按真机深色那一档处理：透明度降到 0.5，再压一档对比与亮度。 */
.screen[data-play='theme'].s5 .fake {
  background: #15180f;
  border-color: #2a2f26;
}

.screen[data-play='theme'].s5 .th {
  --th-bg: #232721;
  --th-line: #333a2e;
  --th-ink: #eef2e8;
  --th-soft: #b9c1b0;
  --th-mute: #8b9484;
  --th-card: #232721;
}

.screen[data-play='theme'].s5 .th-note-paper {
  opacity: 0.5;
  filter: contrast(1.1) brightness(0.72) saturate(1.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.screen[data-play='theme'].s5 .th-mode.is-on {
  border-color: var(--th-line);
  background: var(--th-bg);
  color: var(--th-soft);
}

.screen[data-play='theme'].s5 .th-mode:nth-child(2) {
  border-color: #4c5745;
  background: #2b3126;
  color: #d6e6c6;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   17 · 窄屏

   11 屏里有一半是「左栏 + 主区」或「主区 + 右栏」的两列。窄屏一律先并成
   一列，再让侧栏变成横排的小标签——直接把侧栏藏掉会丢内容（邮箱名、位置名
   本身就是信息）。
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .inf,
  .fd,
  .rs,
  .th,
  .dc,
  .fs,
  .ln,
  .agx,
  .flx {
    grid-template-columns: minmax(0, 1fr);
  }

  .inf-side,
  .fd-side,
  .rs-side,
  .th-side,
  .dc-side,
  .fs-side,
  .ln-side {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    border-right: 0;
    border-left: 0;
    padding: 0 0 9px;
    border-bottom: 1px solid var(--a-line);
  }

  .inf-side-h,
  .fd-sh,
  .rs-sh,
  .th-sh,
  .dc-sh,
  .fs-sh,
  .ln-side-h,
  .flx-h {
    width: 100%;
    margin: 0;
  }

  .inf-tip,
  .fd-tip,
  .rs-note,
  .th-hint,
  .as-acts {
    width: 100%;
  }

  /* 账号栏在窄屏收成一条横排：与原来 `.inf-side` 同一个退法，
     否则 158px 的竖栏会先吃掉三行高度，下面只剩一小条。 */
  .inf-rail {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    border-bottom: 1px solid var(--a-line);
    padding-bottom: 9px;
  }

  .inf-rail-h {
    width: 100%;
    margin: 0;
  }

  .inf-rail .inf-tip {
    display: none;
  }

  /* 订阅页在窄屏把「列表 / 详情」叠起来（详情本来是右侧 44% 的框）。 */
  .fd-body {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 8px;
  }

  /* 侧栏变横排后，这些「贴边」的边线要撤掉，否则整块会多出一圈框。 */
  .rs-side,
  .th-side {
    border-right: 0;
  }

  .th-skins {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    width: 100%;
  }

  .th-note {
    margin-top: 0;
  }

  /* 展开成横排后，`border-top` 那种「分段」就多余了。 */
  .dc-list {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
  }

  .rs-lines {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
  }

  .rs-lines li {
    grid-template-columns: auto minmax(0, 1fr);
  }

  /* 工作流：一栏之后工具栏与预览抬头都得能折行。
     `.fl-bar` 是 `overflow: hidden`——不折行时右边的「运行 / 保存」直接被裁掉，
     375px 下一量就是 12 个元素越界。 */
  .fl-top {
    grid-template-columns: minmax(0, 1fr);
  }

  .fl-bar {
    flex-wrap: wrap;
    overflow: visible;
  }

  /* 「流程设置 / 运行记录 / 出图 / 产物目录 / 运行 / 保存」这一串在窄屏要靠
     自己占一整行再折行：它是 `flex: none`，光让 `.fl-bar` 折行它还是原宽，
     375px 下量出来 353px 宽的一条直接顶出去。 */
  .fl-acts {
    flex: 1 1 100%;
    flex-wrap: wrap;
    margin-left: 0;
  }

  .flx-head {
    flex-wrap: wrap;
  }

  .flx-acts {
    margin-left: 0;
  }

  /* 右键菜单在窄屏改从这一格的右下角「往左」长：宽度 144px 比格子宽，
     右对齐才落在卡片里（第六十八版；原来这里是 `top: auto; bottom: 8px`
     的老写法——那是菜单还贴在窗口右缘时留下的）。 */
  .fs-menu {
    left: auto;
    right: 0;
    top: calc(100% - 6px);
  }
}

@media (max-width: 720px) {
  .pj-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .as-cats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .as-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .as-bar,
  .as-acts {
    font-size: 10px;
  }
}

@media (max-width: 520px) {
  .as-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .as-toast,
  .fs-toast,
  .se-toast {
    left: 12px;
    right: 12px;
    max-width: none;
  }

}

/* --------------------------------------------------------------------------
   18 · 关掉动画

   系统里开了「减少动态效果」时不播：plays.js 那边根本不加 `sN` 类，
   所以这里要把「最终帧」直接写死——否则初始隐藏态会把内容永远藏住。
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .screen .fake *,
  .screen .fake *::before,
  .screen .fake *::after {
    transition: none !important;
    animation: none !important;
  }

  /* 所有「等动画才出现」的元素，直接给最终态。 */
  .screen[data-play] .inf-row.is-new,
  .screen[data-play] .dc-body2,
  .screen[data-play] .dc-save,
  .screen[data-play] .dc-path,
  .screen[data-play] .ln-added,
  .screen[data-play] .rs-doc,
  .screen[data-play] .rs-added,
  .screen[data-play] .rs-review,
  .screen[data-play] .as-item.is-new,
  .screen[data-play] .as-toast,
  .screen[data-play] .fs-menu,
  .screen[data-play] .fs-toast,
  .screen[data-play] .flx-approve,
  .screen[data-play] .flx-out,
  .screen[data-play] .lt-list li.is-out,
  .screen[data-play] .se-pass,
  .screen[data-play] .se-toast,
  .screen[data-play] .pj-tree li,
  .screen[data-play] .fd-row.is-new,
  .screen[data-play] .fd-tr,
  .screen[data-play] .fd-sum,
  .screen[data-play] .fd-star {
    opacity: 1 !important;
    transform: none !important;
  }

  /* 订阅那一屏的同步状态与未读数：给「读完」那一帧。 */
  [data-play='feeds'] .fd-sync-a {
    opacity: 0;
  }

  [data-play='feeds'] .fd-sync-b {
    opacity: 1;
  }

  [data-play='feeds'] .fd-num i:first-child {
    opacity: 0;
  }

  [data-play='feeds'] .fd-num i:last-child {
    opacity: 1;
  }

  [data-play='feeds'] .fd-dot {
    background: var(--a-lime-deep);
  }

  /* 状态字与计数：给「演完之后」那一帧。 */
  .screen[data-play='info'] .inf-sync-a {
    opacity: 0;
  }

  .screen[data-play='info'] .inf-sync-b {
    opacity: 1;
  }

  .screen[data-play='info'] .inf-num i:first-child {
    opacity: 0;
  }

  .screen[data-play='info'] .inf-num i:last-child {
    opacity: 1;
  }

  .screen[data-play='info'] .inf-dot {
    background: var(--a-lime-deep);
  }

  /* 删除那个格子停在「已进废纸篓」：灰掉 + 划掉，不假装它还在。 */
  .screen[data-play='files'] .fs-file.is-gone {
    opacity: 0.3 !important;
  }
}

/* 这一屏的容器也收一档：18px 的内边距（`.fake` 默认）在这一页是纯粹的浪费。 */
#agent .fake {
  padding: 12px;
}

/* 英文版那两句说明在 46ch 里各折成两行，把整屏顶出 38px。这一屏的标题栏
   （含正文与 AI 那一行）放宽一档——中文一样受益，只是幅度小。 */
#agent .screen-head {
  max-width: 78ch;
}

#agent .screen-head p {
  max-width: 64ch;
}

/* --------------------------------------------------------------------------
   18 · 12 屏 · AI 助手（`.agx`）—— 2026-12-24 第三十版：加宽、放大、铺满

   用户原话：「ai助手页面，显示大一点，不要这么空」。

   上一版把这一列收在 560px（照真机 `max-w 520/680/820` 的中间那档），气泡
   11px、审批卡 9.5px——在 1084×565 的画面里，左右各空出 262px，上下还空着
   三百多像素，整屏看着像一张没排满的草稿。

   这一版按真机**最宽那档**（820px）走，字号整体抬一档：正文 11 → 13.5、
   气泡内边距、审批卡、输入框一起放大，行间的 4px 间隙放到 14px。宽度先由
   `min(820px, 100%)` 兜住，窄屏仍然是满宽单列，不会横向溢出。

   仍然是一列到底：身份区 → 对话 → 输入框，没有右侧工具栏，执行过的工具行
   一律不画（真机 `visibleMessages()` 就是这么过的），只出现「需要你点头」
   的那一张卡。
   -------------------------------------------------------------------------- */

.agx {
  height: 100%;
}

.agx-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
  /* 同 .isl（第五十五版）：宽度自己写，不靠 auto 外边距在 grid 里撑。 */
  width: 100%;
  max-width: min(820px, 100%);
  height: 100%;
  margin: 0 auto;
  /*
    竖向居中（2026-12-24）。这一屏只有「你问一句 → 一次审批 → 一句结论」，
    内容 400px、画面 565px；内容顶着上沿排、输入框压在底边时，中间那 380px
    就是用户说的「这么空」。改成整组居中，上下各留 ~80px，读起来是一块面板
    而不是一张没排满的草稿。

    `safe center`：内容比画面高时（英文长句 / 窄屏）退回顶部对齐，不会把
    身份区顶出画外。前一行是给不认识 `safe` 的内核的兜底。
  */
  justify-content: center;
  justify-content: safe center;
}

/* 身份区：徽章 + 名字 + 绿色模型名。 */
.agx-id {
  display: grid;
  justify-items: center;
  gap: 4px;
  flex: none;
  text-align: center;
}

.agx-mark {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 15px;
}

.agx-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--a-ink);
}

.agx-model {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--a-lime-deep);
}

.agx-cpu {
  position: relative;
  width: 10px;
  height: 10px;
  border: 1.4px solid currentColor;
  border-radius: 2px;
}

.agx-cpu::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 1px;
  background: currentColor;
  opacity: 0.55;
}

.agx-chev {
  width: 5px;
  height: 5px;
  border-right: 1.4px solid currentColor;
  border-top: 1.4px solid currentColor;
  transform: rotate(45deg);
}

/*
 * 一条对话：小标题 + 气泡。
 *
 * 左右（2026-12-29）：真机 `AgentPanel.tsx` 的 `Bubble` 是
 * `isUser ? 'justify-end' : 'justify-start'`，用户那段 `max-w-[85%]`、
 * 助手那段 `w-full`。上一版两块都整宽靠左，等于「两个人说的话长得一模一样」，
 * 用户看不出哪句是自己说的。
 *
 * 所以：`.agx-msg` 成一列（小标题 + 气泡，间距交回 gap），用户那一条
 * `align-items: flex-end` 让气泡缩到内容宽、贴右边，小标题也跟着右对齐；
 * 助手不加类，仍整宽靠左。
 *
 * 顺带删掉 `.agx-msg.is-agent { text-align: right }`：它作用在一个
 * `display: flex` 的小标题和一个自己写了 `text-align: left` 的气泡上，
 * 从加进去那天起就没画过任何像素。别再留着让人以为助手是靠右的。
 */
.agx-msg {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: none;
}

.agx-msg.is-user {
  align-items: flex-end;
  text-align: right;
}

.agx-msg.is-user .agx-meta {
  /* 同首页右栏：铺满整行 + 内容推到右边，不依赖父级的 align-items。 */
  width: 100%;
  justify-content: flex-end;
  text-align: right;
}

.agx-msg.is-user .agx-bubble {
  max-width: 85%;
  text-align: left;
}

.agx-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  font-size: 10.5px;
  color: var(--a-mute);
}

.agx-meta b {
  font-size: 11px;
  font-weight: 700;
  color: var(--a-soft);
}

/*
  气泡（2026-12-27 改色）：照真机 `AgentPanel` 的 `.pws-bubble-user` /
  `.pws-bubble-agent`——**用户那条青柠底墨字、助手那条白底细边**。
  圆角只在朝向说话人那一侧收小到 4px：用户收右上、助手收左上。
*/
.agx-bubble {
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  border-top-right-radius: 4px;
  border: 1px solid transparent;
  background: var(--a-lime-wash);
  font-size: 13.5px;
  line-height: 1.6;
  color: #2f4a1c;
  text-align: left;
}

.agx-msg.is-agent .agx-bubble {
  border-radius: 12px;
  border-top-right-radius: 12px;
  border-top-left-radius: 4px;
  border-color: var(--a-line);
  background: #fff;
  color: var(--a-ink);
}

/* 审批卡：真机里对话区唯一会出现的工具卡（浅绿底 + 强调描边）。 */
.agx-ap {
  flex: none;
  padding: 11px 15px 13px;
  border-radius: 14px;
  border: 1px solid #a8d67c;
  background: #f1f9e6;
}

.agx-ap-h {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 5px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--a-soft);
}

.agx-ap-arg {
  margin: 0;
  font-size: 12px;
  color: var(--a-mute);
}

.agx-ap-t {
  margin: 5px 0 0;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--a-ink);
}

.agx-ap-btns {
  display: flex;
  gap: 8px;
  margin: 10px 0 0;
}

.agx-ap-btns span {
  padding: 4px 16px;
  border-radius: 999px;
  border: 1px solid var(--a-line);
  background: #fff;
  font-size: 12px;
  color: var(--a-soft);
}

.agx-ap-btns .agx-allow {
  border-color: #8fd35f;
  color: #2c4a15;
}

/* 输入框：真机是 auto-grow 的 textarea + 右侧圆形发送键。
   左边那三个图标是真机 composer 里的四件能力（附件 / 语音 / 联网开关，
   第四个「停止」只在等回复时才出现，这里不画）——原来的死胶囊里只有一个
   灰字占位，看着像「这一页还有个输入框没做完」。 */
.agx-comp {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  margin-top: 0;
  padding: 7px 7px 7px 15px;
  border-radius: 999px;
  border: 1px solid var(--a-line);
  background: #fff;
}

.agx-cap {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
  color: var(--a-mute);
}

.agx-cap svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.agx-input {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: var(--a-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agx-send {
  display: grid;
  flex: none;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: var(--a-lime);
  font-size: 13px;
  font-weight: 700;
  color: #1e2b12;
}

/* 演：底帧就是「你问了」这一句，之后 s1 弹出审批卡 → s2 出结论 → s3 允许按下。

   底帧不能把三块全藏起来：循环之间那一拍、以及用户刚滚到这一屏时，
   否则看到的是一块只有头像和输入框的空面板。
*/
html.js .screen[data-play='agent'] .agx [data-step='2'],
html.js .screen[data-play='agent'] .agx [data-step='3'] {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.34s ease, transform 0.34s ease;
}

html.js .screen[data-play='agent'].s1 .agx [data-step='2'],
html.js .screen[data-play='agent'].s2 .agx [data-step='2'],
html.js .screen[data-play='agent'].s3 .agx [data-step='2'] {
  opacity: 1;
  transform: none;
}

html.js .screen[data-play='agent'].s2 .agx [data-step='3'],
html.js .screen[data-play='agent'].s3 .agx [data-step='3'] {
  opacity: 1;
  transform: none;
}

/* s3：把「允许」按下去的样子留下。 */
.screen[data-play='agent'].s3 .agx-allow {
  background: var(--a-lime);
  border-color: #6cbe45;
}

.screen[data-play='agent'].s3 .agx-ap {
  border-color: #7cc24a;
}

@media (prefers-reduced-motion: reduce) {
  html.js .screen[data-play='agent'] .agx [data-step='2'],
  html.js .screen[data-play='agent'] .agx [data-step='3'] {
    transition: none;
  }
}



/* ==========================================================================
   13 · 便签（`.nt`，2026-12-19）
   ==========================================================================

   照真机 `src/app/panels/NotesPanel.tsx`：左边一列便签（w-60 = 240px），
   右边编辑区。纸是项目里真实的 16 张皮肤，底部那排就是换纸的入口。
   -------------------------------------------------------------------------- */

.nt {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  /* 330 → 324：英文版标题多折一行，这一格矮 6px 就把整页拉回一屏。 */
  min-height: 324px;
  border-radius: 12px;
  border: 1px solid var(--sc-line);
  background: var(--sc-bg);
  overflow: hidden;
}

.nt-side {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--sc-line);
  background: #fbfcf7;
}

.nt-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--sc-line);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--sc-soft);
}

.nt-bar s {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  border: 1px solid var(--sc-line);
  background: #fff;
  text-decoration: none;
  font-size: 12px;
  color: var(--sc-mute);
}

.nt-list {
  margin: 0;
  padding: 6px;
  list-style: none;
  display: grid;
  gap: 2px;
}

.nt-list li {
  display: grid;
  gap: 1px;
  padding: 7px 9px;
  border-radius: 8px;
}

.nt-list li.is-on {
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--sc-line);
}

.nt-list b {
  font-size: 12px;
  font-weight: 600;
  color: var(--sc-ink);
}

.nt-list em {
  font-size: 10.5px;
  font-style: normal;
  color: var(--sc-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 便签墙：一行四张正方形卡片（真机的便签卡是 1 个方形卡槽）。
   放不下时自动收成两列；**多余的高度留白**，不把卡片拉长。 */
.nt-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 12px;
  background: #fbfcf7;
}

.nt-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  aspect-ratio: 1;
  min-width: 0;
  padding: 10px 11px;
  border-radius: 10px;
  background-image: var(--paper);
  background-size: cover;
  background-position: center;
  box-shadow:
    0 10px 20px -16px rgba(20, 28, 12, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.nt-card b {
  font-size: 11.5px;
  font-weight: 700;
  color: #3a3630;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nt-card p {
  flex: 1;
  min-height: 0;
  margin: 0;
  overflow: hidden;
  font-size: 9.5px;
  line-height: 1.55;
  color: #4a463d;
}

.nt-card .nt-when {
  margin-top: auto;
  font-size: 8.5px;
  font-style: normal;
  color: #6f6a5e;
}

/* 演：s1 第一张「正在写」（描边亮一下）→ s2 出现「已保存 · 刚刚」。 */
html.js .screen[data-play='notes'] .nt-when {
  opacity: 0;
  transition: opacity 0.3s ease;
}

html.js .screen[data-play='notes'] .nt-card {
  transition: box-shadow 0.3s ease;
}

html.js .screen[data-play='notes'].s1 .nt-card.is-on {
  box-shadow:
    0 10px 20px -16px rgba(20, 28, 12, 0.7),
    0 0 0 2px var(--sc-lime);
}

html.js .screen[data-play='notes'].s2 .nt-when {
  opacity: 1;
}

#ai .fake {
  /* 这一屏内容少，撑满一屏（519 = 26 上 + 100 头 + 14 间距 + 352 面板 + 26 下 + 1 边框）。 */
  height: 352px;
  padding: 14px;
}

/* ==========================================================================
   14 · AI 文档助手（`.adc`）—— 2026-12-22 第二十九版：照真机重排

   上一版画的是「润色 / 翻译 / 总结三个页签 + 原文与结果两栏并排」。
   真机 `AssistantPanel.tsx` 根本不是这个形状：它是**一列**——
   标题 + 用量 → 按模块分组的任务按钮 → 一个大输入框 → 「执行：X」+ 字数 →
   结果面板（带模型名）。页签、并排两栏都是编的。
   ========================================================================== */

.adc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--sc-line);
  background: var(--sc-bg);
}

.adc-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: none;
}

.adc-head b {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sc-ink);
}

.adc-head em {
  font-size: 9.5px;
  font-style: normal;
  color: var(--sc-mute);
}

/* 任务：一行一个模块，模块名在左，动作按钮在右。 */
.adc-tasks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  flex: none;
  padding: 5px 7px;
  border-radius: 9px;
  border: 1px solid var(--sc-line);
  background: #f7faf2;
}

.adc-group {
  margin-right: 2px;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sc-mute);
}

.adc-tasks s {
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--sc-line);
  background: #fff;
  font-size: 9.5px;
  text-decoration: none;
  color: var(--sc-soft);
}

.adc-tasks s.is-on {
  border-color: #8fd35f;
  background: var(--sc-lime);
  font-weight: 700;
  color: #1e2b12;
}

/* 输入框：真机是一个 flex-1 的 textarea，这里画成同一块。 */
.adc-in {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid var(--sc-line);
  background: #fff;
}

.adc-text {
  margin: 0;
  font-size: 10.5px;
  line-height: 1.65;
  color: var(--sc-ink);
}

/* 执行那一行：主按钮 + 字数 + 复制结果。 */
.adc-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.adc-run {
  padding: 3px 10px;
  border-radius: 7px;
  border: 1px solid #8fd35f;
  background: var(--sc-lime);
  font-size: 10px;
  font-weight: 700;
  color: #1e2b12;
}

.adc-busy {
  display: none;
  padding: 3px 10px;
  border-radius: 7px;
  border: 1px solid var(--sc-line);
  background: #f2f6ec;
  font-size: 10px;
  color: var(--sc-soft);
}

.adc-row em {
  font-size: 9.5px;
  font-style: normal;
  color: var(--sc-mute);
}

.adc-row s {
  margin-left: auto;
  padding: 2px 8px;
  border-radius: 6px;
  border: 1px solid var(--sc-line);
  background: #fff;
  font-size: 9px;
  text-decoration: none;
  color: var(--sc-soft);
}

/* 结果面板：标题行 + 正文（真机是 `结果 · 模型名`）。 */
.adc-out {
  display: flex;
  flex: 1.1;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  padding: 8px 10px;
  border-radius: 9px;
  border: 1px solid #cfe3b6;
  background: #f6fbef;
}

.adc-out-h {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sc-mute);
}

.adc-out-h em {
  font-style: normal;
  text-transform: none;
  letter-spacing: 0;
  color: var(--sc-soft);
}

/* 演：底帧就是「文字已经贴进来」，之后 s1 按下执行 → s2 处理中 → s3 结果出来。
   输入框里的那段话**不藏**：循环之间、刚进这一屏时都该看得见它。 */
html.js .screen[data-play='aidoc'] .adc-out {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

html.js .screen[data-play='aidoc'] .adc-run {
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

html.js .screen[data-play='aidoc'].s1 .adc-run {
  transform: scale(0.96);
  box-shadow: 0 0 0 3px rgba(159, 232, 112, 0.45);
}

html.js .screen[data-play='aidoc'].s3 .adc-out {
  opacity: 1;
  transform: none;
}

/* s2：按钮换成「处理中…」。 */
html.js .screen[data-play='aidoc'].s2 .adc-run {
  display: none;
}

html.js .screen[data-play='aidoc'].s2 .adc-busy {
  display: inline-block;
}

html.js .screen[data-play='aidoc'].s3 .adc-busy {
  display: none;
}

html.js .screen[data-play='aidoc'].s3 .adc-run {
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  html.js .screen[data-play='aidoc'] .adc-out,
  html.js .screen[data-play='aidoc'] .adc-run {
    transition: none;
  }
}


/* ==========================================================================
   0 · 一组从未定义过的令牌（2026-12-22 补上）

   `.sc-*` 这一族在本文件里被引用了 60 多次（面板的描边、底色、辅助字色、
   青柠强调色），但**全站没有任何一处定义它们**——`var()` 找不到值、又没写
   fallback 时，整条声明在计算值阶段就失效：`border: 1px solid var(--sc-line)`
   变成没有边框，`background: var(--sc-bg)` 变成透明。浏览器不报错，只是不画。

   所以这里把它们映射到 `.screen` 上已有的 `--a-*`（同一套软件界面令牌，
   一个来源），而不是再抄一遍色值。
   ========================================================================== */

.fake {
  --sc-line: var(--a-line);
  --sc-bg: #ffffff;
  --sc-ink: var(--a-ink);
  --sc-soft: var(--a-soft);
  --sc-mute: var(--a-mute);
  --sc-lime: var(--a-lime);
  --sc-lime-deep: var(--a-lime-deep);
}

/* ==========================================================================
   16 · 站点（`.si`）—— 2026-12-22 第二十四版：三个真站点 + 点开预览

   真机 `SitesPanel.tsx` 是「站点优先」：一进来就是站点卡片网格（favicon +
   名称 + 域名），点卡片在原生 WebviewWindow 里打开站点。上一版画的是
   「粘贴网址的输入条 + 一排字母块（GitHub / Notion / YouTube / 少数派）」，
   既不是这一页的重点，也不是真的站点。

   现在左边三张卡是三个真站（SafeVault / 麦壳壁纸 / HONOR WORLD），图标取自
   各站 favicon；右边是点开之后的窗口：交通灯 + 域名 + 站点首页截图。
   ========================================================================== */

.si {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--sc-line);
  background: var(--sc-bg);
}

.si-top {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.si-top b {
  flex: none;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--sc-ink);
}

.si-top em {
  flex: 1;
  min-width: 0;
  font-size: 10.5px;
  font-style: normal;
  color: var(--sc-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.si-add {
  flex: none;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--sc-lime);
  font-size: 10.5px;
  font-weight: 700;
  color: #1e2b12;
}

/* 左：站点卡片列表；右：点开之后的窗口。 */
.si-body {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.si-list {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  align-content: start;
}

/* 一张站点卡：真机 `SiteCard` 的内容——图标、名称、域名、（打开时）已打开。 */
.si-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 11px;
  border-radius: 10px;
  border: 1px solid var(--sc-line);
  background: #fff;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.18s ease;
}

.si-ic {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  object-fit: contain;
  background: #f4f6f1;
}

.si-txt {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.si-txt b {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--sc-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.si-txt em {
  font-family: var(--mono);
  font-size: 9.5px;
  font-style: normal;
  color: var(--sc-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 「已打开」：真机里它本身是个按钮（点了就关窗口），这里只画状态。 */
.si-pill {
  display: none;
  flex: none;
  margin-left: auto;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  color: #4c7a2a;
  white-space: nowrap;
}

.si-pill::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

/* 窗口：交通灯 + 域名 + 站点首页截图。

   2026-12-24 第六十一版：窗口按截图的真实比例（1280×800 = 16:10）。
   原来窗口被 `.si-stage` 的固定高度拉得又高又窄，`object-fit: cover` 就**按高**
   放图，左右各裁掉五十多像素——站点导航栏右边那颗「下载 SafeVault」被切成
   「下载 Saf」，用户的原话是「站点显示的网站被截断了」。
   画面本身是 1280×800 的整屏实截，所以窗口也该是这个比例：比例一致，
   cover 不再裁任何一边，整张首页原样可见。 */
.si-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 0;
  height: auto;
}

.si-win {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: 100%;
  overflow: hidden;
  border-radius: 10px;
  border: 1px solid var(--sc-line);
  background: #fff;
  box-shadow: 0 16px 32px -20px rgba(20, 28, 12, 0.5);
  transition: opacity 0.34s ease, transform 0.34s ease;
}

.si-win-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--sc-line);
  background: #f7f9f4;
}

.si-dots {
  display: flex;
  flex: none;
  gap: 4px;
}

.si-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d8dfd0;
}

.si-dots i:nth-child(1) {
  background: #ff6159;
}

.si-dots i:nth-child(2) {
  background: #ffbd2e;
}

.si-dots i:nth-child(3) {
  background: #28c940;
}

.si-win-url {
  min-width: 0;
  font-family: var(--mono);
  font-size: 9.5px;
  color: var(--sc-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 三张首页截图叠在同一格里，按步切换。

   用网格叠而不是 `position: absolute`：三张图同占 `grid-row 2 / column 1`，
   彼此重叠；窗口高度因此由「工具条 + 图」自己撑出来，而图的高度按
   1280 : 800 算——窗口多高都跟截图同比例，不会为了填满高度去裁两边。 */
.si-shot {
  position: relative;
  grid-row: 2;
  grid-column: 1;
  aspect-ratio: 1280 / 800;
  overflow: hidden;
  background: #fff;
}

.si-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* 加载条：窗口刚弹出时扫一道，表示「正在打开」。 */
.si-load {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(159, 217, 122, 0) 0%, #9fd97a 45%, rgba(159, 217, 122, 0) 100%);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  opacity: 1;
  animation: siSweep 1.1s ease-in-out infinite;
}

@keyframes siSweep {
  from {
    background-position: -40% 0;
  }
  to {
    background-position: 140% 0;
  }
}

.si-foot {
  margin: 10px 0 0;
  font-size: 10px;
  color: var(--sc-mute);
}

/* 静态（无 JS）：显示第一个站点的窗口与它的域名。 */
.si-shot--b,
.si-shot--c,
.si-win-url--b,
.si-win-url--c {
  display: none;
}

.si-shot--a,
.si-win-url--a {
  display: block;
}

/* 静态（无 JS）不演加载条：只在演示里出现。 */
.si-load {
  display: none;
}

/* 演（有 JS）：六步 —— 三张卡依次点开，窗口里的首页换三次。

   注意这里**没有**「窗口默认隐藏」这条：任何时刻（包括循环之间那一下、
   或者用户刚滚到这一屏）窗口都该是完整的一张首页，而不是白框。
   演示靠「窗口弹一下 + 加载条扫一道 + 首页淡入」来表达点击的过程。
*/
html.js .screen[data-play='site'] .si-shot--b,
html.js .screen[data-play='site'] .si-shot--c {
  display: block;
  opacity: 0;
}

html.js .screen[data-play='site'] .si-shot img {
  opacity: 0;
  transition: opacity 0.42s ease;
}

/* 静止时窗口里放的是第一个站点的首页，不是白框。 */
html.js .screen[data-play='site'] .si-shot--a img {
  opacity: 1;
}

html.js .screen[data-play='site'] .si-win-url--b,
html.js .screen[data-play='site'] .si-win-url--c {
  display: none;
}

html.js .screen[data-play='site'] .si-win-url--a {
  display: block;
}

html.js .screen[data-play='site'] .si-load {
  display: block;
  opacity: 0;
}

html.js .screen[data-play='site'] .si-pill {
  display: none;
}

/* 每次换站：窗口弹一下。

   三个几乎一样的 keyframes 不是重复劳动：状态类是**累加**的（`plays.js` 按
   时间往上加类，整轮结束才清），三条规则同时命中时计算值相同，浏览器就不会
   重播动画。换成三个名字，才让 s1 / s3 / s5 各弹一次。
*/
@keyframes siPop1 {
  from {
    transform: scale(0.985);
    opacity: 0.55;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes siPop2 {
  from {
    transform: scale(0.985);
    opacity: 0.55;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

@keyframes siPop3 {
  from {
    transform: scale(0.985);
    opacity: 0.55;
  }
  to {
    transform: none;
    opacity: 1;
  }
}

html.js .screen[data-play='site'].s1 .si-win {
  animation: siPop1 0.42s ease-out both;
}

html.js .screen[data-play='site'].s3 .si-win {
  animation: siPop2 0.42s ease-out both;
}

html.js .screen[data-play='site'].s5 .si-win {
  animation: siPop3 0.42s ease-out both;
}

/* 六步。状态类是累加的，所以每一步都要把上一步显式改回来：
   规则必须按 s1 → s6 的顺序写，同特异性下后写的赢。

   s1 点开 SafeVault → s2 首页出来
   s3 点开麦壳壁纸 → s4 首页出来
   s5 点开 HONOR WORLD → s6 首页出来
*/

html.js .screen[data-play='site'].s1 .si-card--a {
  border-color: #9fd97a;
  box-shadow: 0 0 0 2px rgba(159, 232, 112, 0.4);
  transform: scale(0.985);
}

html.js .screen[data-play='site'].s1 .si-shot--a {
  opacity: 1;
}

html.js .screen[data-play='site'].s1 .si-shot--a img {
  opacity: 0;
}

html.js .screen[data-play='site'].s1 .si-shot--a .si-load {
  opacity: 1;
}

html.js .screen[data-play='site'].s2 .si-card--a {
  border-color: var(--sc-line);
  box-shadow: none;
  transform: none;
}

html.js .screen[data-play='site'].s2 .si-card--a .si-pill {
  display: inline-flex;
}

html.js .screen[data-play='site'].s2 .si-shot--a img {
  opacity: 1;
}

html.js .screen[data-play='site'].s2 .si-shot--a .si-load {
  opacity: 0;
  animation: none;
}

html.js .screen[data-play='site'].s3 .si-card--b {
  border-color: #9fd97a;
  box-shadow: 0 0 0 2px rgba(159, 232, 112, 0.4);
  transform: scale(0.985);
}

html.js .screen[data-play='site'].s3 .si-shot--a {
  opacity: 0;
}

html.js .screen[data-play='site'].s3 .si-shot--b {
  opacity: 1;
}

html.js .screen[data-play='site'].s3 .si-shot--b img {
  opacity: 0;
}

html.js .screen[data-play='site'].s3 .si-shot--b .si-load {
  opacity: 1;
}

html.js .screen[data-play='site'].s3 .si-win-url--a {
  display: none;
}

html.js .screen[data-play='site'].s3 .si-win-url--b {
  display: block;
}

html.js .screen[data-play='site'].s4 .si-card--b {
  border-color: var(--sc-line);
  box-shadow: none;
  transform: none;
}

html.js .screen[data-play='site'].s4 .si-card--b .si-pill {
  display: inline-flex;
}

html.js .screen[data-play='site'].s4 .si-shot--b img {
  opacity: 1;
}

html.js .screen[data-play='site'].s4 .si-shot--b .si-load {
  opacity: 0;
  animation: none;
}

html.js .screen[data-play='site'].s5 .si-card--c {
  border-color: #9fd97a;
  box-shadow: 0 0 0 2px rgba(159, 232, 112, 0.4);
  transform: scale(0.985);
}

html.js .screen[data-play='site'].s5 .si-shot--b {
  opacity: 0;
}

html.js .screen[data-play='site'].s5 .si-shot--c {
  opacity: 1;
}

html.js .screen[data-play='site'].s5 .si-shot--c img {
  opacity: 0;
}

html.js .screen[data-play='site'].s5 .si-shot--c .si-load {
  opacity: 1;
}

html.js .screen[data-play='site'].s5 .si-win-url--b {
  display: none;
}

html.js .screen[data-play='site'].s5 .si-win-url--c {
  display: block;
}

html.js .screen[data-play='site'].s6 .si-card--c {
  border-color: var(--sc-line);
  box-shadow: none;
  transform: none;
}

html.js .screen[data-play='site'].s6 .si-card--c .si-pill {
  display: inline-flex;
}

html.js .screen[data-play='site'].s6 .si-shot--c img {
  opacity: 1;
}

html.js .screen[data-play='site'].s6 .si-shot--c .si-load {
  opacity: 0;
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  .si-load {
    animation: none;
  }
}

/* 矮窗口（≤820px 高）：窗口高度只跟宽度走（第六十一版），这里不再压高度。 */

/* ==========================================================================
   17 · 截图（`.so`）—— 2026-12-22 第二十八版：演「截出来的那一层」

   用户原话：「截图页面展示截图效果，而不是展示截图设置页面」。

   真机按 ⌘⇧4 之后浮上来的是 `ShotOverlay`：一层压暗 + 顶部工具条（框选 /
   方框 / 椭圆 / 箭头 / 画笔 / 文字 / 马赛克 + 样式 + 提取文字 / 撤销 / 复制 /
   保存 / 关闭）+ 中间那张截到的图 + 底部状态条（选区尺寸 / 快捷键）。

   上一版的 `.sh*` 画的是 `ShotsPanel` 的控制台（四张设置卡），已整块删掉。
   中间那张图不是画的：是官网自己 #/overview 那一屏的实截。
   ========================================================================== */

.so {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 8px;
  /* 高度写死一格：整页要在一屏里，中间那张图按这个高度反推宽度。 */
  height: 364px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid #2b3226;
  background: #171b14;
}

/* 工具条：真机是 surface 底、图标按钮一排，选中项整块翻成强调色。 */
.so-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 7px;
  border-radius: 9px;
  border: 1px solid var(--sc-line);
  background: #fbfdf8;
  overflow: hidden;
}

.so-title {
  flex: none;
  max-width: 76px;
  font-size: 11px;
  font-weight: 700;
  color: var(--sc-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.so-tools {
  display: flex;
  flex: none;
  align-items: center;
  gap: 3px;
  padding-left: 7px;
  border-left: 1px solid var(--sc-line);
}

/* 一枚工具 = 图标 + 名字（第六十一版）。

   原来是七个纯图标，认不出哪个是哪个；现在只留这一层真的会用的三件，
   每件都带名字——框选 / 箭头 / 打码。图标仍是 CSS 画的，20×20 那一格没变。 */
.so-tool {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px 0 1px;
  border-radius: 5px;
}

.so-tool s {
  text-decoration: none;
  font-size: 9px;
  line-height: 1;
  color: var(--sc-soft);
  white-space: nowrap;
}

.so-tool.is-on {
  background: var(--sc-lime);
}

.so-tool.is-on s {
  font-weight: 700;
  color: #1e2b12;
}

/* 图标的那一格：和原来一样是 20×20 的居中格，只是现在放在工具名左边。 */
.so-ic {
  position: relative;
  display: grid;
  flex: none;
  width: 20px;
  height: 20px;
  place-items: center;
}

.so-ic::before,
.so-ic::after {
  content: '';
  position: absolute;
}

.so-ic[data-i='crop']::before {
  width: 8px;
  height: 8px;
  border-left: 1.4px solid #46503c;
  border-top: 1.4px solid #46503c;
}

.so-ic[data-i='crop']::after {
  width: 8px;
  height: 8px;
  border-right: 1.4px solid #46503c;
  border-bottom: 1.4px solid #46503c;
}

/* 方框：一个空心矩形，和画面里那支红方框是同一把工具（第六十三版）。 */
.so-ic[data-i='rect']::before {
  width: 10px;
  height: 8px;
  border: 1.4px solid #6b7460;
  border-radius: 2px;
}

/* 样式：色块 + 粗细 + 折叠箭头（真机把颜色和粗细收进弹层）。 */
.so-style {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--sc-line);
  background: #f4f7ee;
}

.so-swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff3b30;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
}

.so-style s {
  text-decoration: none;
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--sc-soft);
}

.so-chev {
  width: 4px;
  height: 4px;
  border-right: 1.2px solid var(--sc-soft);
  border-bottom: 1.2px solid var(--sc-soft);
  transform: rotate(45deg) translateY(-1px);
}

.so-acts {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.so-acts em {
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid var(--sc-line);
  background: #f4f7ee;
  font-style: normal;
  font-size: 8.5px;
  color: var(--sc-soft);
  white-space: nowrap;
}

.so-acts em.is-primary {
  border-color: #8cc45f;
  background: var(--sc-lime);
  font-weight: 700;
  color: #1e2b12;
}

.so-copied {
  display: none;
  border-color: #8cc45f;
  background: var(--sc-lime);
  font-weight: 700;
  color: #1e2b12;
}

.so-x {
  position: relative;
  width: 14px;
  height: 14px;
  margin-left: 2px;
}

.so-x::before,
.so-x::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 1.3px;
  background: var(--sc-soft);
}

.so-x::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.so-x::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* 画布：外面是「被压暗的整屏」，中间那块亮的才是选区。
   真正的 Apple 截图界面就是这样——暗的那层是整块屏幕，选的这块清楚。 */
.so-canvas {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  /* 让下面那张图能按「容器高度」反推宽度（见 `.so-pic`）。 */
  container-type: size;
}

.so-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background-image: url('/assets/shots/capture.jpg');
  background-size: cover;
  background-position: top center;
  filter: blur(2.5px) brightness(0.34) saturate(0.7);
}

.so-pic {
  position: relative;
  width: 100%;
  height: auto;
  margin: 0;
  /* 与 `assets/shots/capture.jpg` 的实际像素一致（1170×705，2026-12-24 第六十三版切过）：
     标题 + 今日那三张卡，不含侧栏与右栏。 */
  aspect-ratio: 1170 / 705;
  max-height: 100%;
  max-width: 100%;
  overflow: hidden;
  border-radius: 4px;
  /* 画面按 contain 放：**一个像素都不裁**。原来用 cover，盒子比例一变就裁两边——
     同一张截图在 1440 上是对的，小一档的窗口里就成了「截断的网站」。 */
  background: #0b0f08;
  box-shadow: 0 20px 40px -22px #000;
}

/* 盒子本身也要跟截图同比例，否则 contain 会在上下留出两条暗边，
   选框与标注的百分比位置就跟着飘。窄/矮的窗口里按容器高度反推宽度：
   宽 = min(可用宽度, 容器高 × 1.6596)，两头都不越界。 */
@supports (width: 1cqh) {
  .so-pic {
    width: min(100%, calc(100cqh * 1.6596));
    max-height: none;
  }
}

.so-pic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* 选区：亮的这块是截下来的，四周被压暗的是「没选中」。

   第六十一版之前这里是 `inset: 0`——虚线贴着整张图，看着只是给图描了个边，
   读者认不出「这是我拖出来的框」。现在选区缩进画面里，并用一圈巨大的
   box-shadow 把选区外面的部分压暗（`.so-pic` 的 overflow 会把它裁在画面内）。 */
.so-sel {
  position: absolute;
  inset: 3% 4% 4% 3%;
  border: 1.4px dashed rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  box-shadow: 0 0 0 400px rgba(9, 13, 7, 0.62);
}

.so-h {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 1.5px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.so-h--tl {
  left: -3px;
  top: -3px;
}

.so-h--tr {
  right: -3px;
  top: -3px;
}

.so-h--bl {
  left: -3px;
  bottom: -3px;
}

.so-h--br {
  right: -3px;
  bottom: -3px;
}

.so-size {
  position: absolute;
  right: 6px;
  top: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(16, 20, 12, 0.86);
  font-family: var(--mono);
  font-size: 8.5px;
  text-decoration: none;
  color: #f2f6ea;
  white-space: nowrap;
}

/* 标注：一支 3px 的红方框（工具条里那个「3px」说的就是它的线宽）。

   第六十三版：箭头整支下掉，换成红框圈标题——用户原话「红框框选标题
   「所有工作，一个工作台搞定」，不要箭头了」。
   位置是量出来的，不是 eyeball：`capture.jpg`（1170×705）里标题那行墨迹在
   x 49–571 / y 79–122，四边各放 10px → left 3.3% / top 9.8% / 46.3% / 8.9%。
   线宽 3px 在盒子外沿再加 3px（content-box），所以量出来的边只会更宽一点点，
   不会压到字。 */
.so-mark {
  position: absolute;
  left: 3.3%;
  top: 9.8%;
  width: 46.3%;
  height: 8.9%;
  border: 3px solid #ff3b30;
  border-radius: 3px;
}

/* 底部状态条：三步走完的那一条——① 框选 → ② 标注 → ③ 复制 / 保存。

   原来只写「选区 1360 × 620 · 已复制 · 快捷键」，把这一屏当成一个静态截图界面；
   读者看不出这几件事有先后。 */
.so-foot {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 8px;
  border-radius: 8px;
  background: rgba(250, 253, 246, 0.94);
  font-size: 8.5px;
  color: var(--sc-mute);
  overflow: hidden;
}

.so-foot b {
  flex: none;
  font-family: var(--mono);
  font-weight: 600;
  color: var(--sc-soft);
  white-space: nowrap;
}

.so-step2 {
  flex: none;
  font-style: normal;
  white-space: nowrap;
}

.so-status {
  flex: none;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--sc-lime);
  font-style: normal;
  font-weight: 700;
  color: #1e2b12;
  white-space: nowrap;
}

.so-foot span:last-child {
  margin-left: auto;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   演（2026-12-22）

   没有 JS 时给的是**成品帧**：选区已经拉好、箭头和马赛克都画上了。
   有 JS 时先收回起点，再按 s1 → s3 把三件事做出来：
   ① 选区从中间张开（inset 过渡）→ ② 画箭头、打马赛克 → ③ 点复制、状态条出来。
   -------------------------------------------------------------------------- */

html.js .screen[data-play='shot'] .so-sel {
  inset: 46% 50% 48% 46%;
  transition: inset 0.45s cubic-bezier(0.3, 0.85, 0.35, 1);
}

html.js .screen[data-play='shot'] .so-h,
html.js .screen[data-play='shot'] .so-size {
  opacity: 0;
  transition: opacity 0.25s ease 0.22s;
}

/* 红方框跟第二拍一起出现（原来是画箭头那一拍）：方框是一次拖出来的，
   不需要描边动画，淡入一下即可。 */
html.js .screen[data-play='shot'] .so-mark {
  opacity: 0;
  transition: opacity 0.22s ease;
}

html.js .screen[data-play='shot'] .so-status {
  opacity: 0;
  transition: opacity 0.3s ease;
}

html.js .screen[data-play='shot'] .so-copied {
  display: none;
}

html.js .screen[data-play='shot'].s1 .so-sel {
  inset: 3% 4% 4% 3%;
}

html.js .screen[data-play='shot'].s1 .so-h,
html.js .screen[data-play='shot'].s1 .so-size {
  opacity: 1;
}

html.js .screen[data-play='shot'].s2 .so-mark {
  opacity: 1;
  transition-delay: 0.12s;
}

/* 第二拍换工具：框选那枚落下去，「方框」那枚亮起来——红框就是它画的。 */
html.js .screen[data-play='shot'].s2 .so-tool[data-t='crop'] {
  background: transparent;
}

html.js .screen[data-play='shot'].s2 .so-tool[data-t='crop'] s {
  font-weight: 400;
  color: var(--sc-soft);
}

html.js .screen[data-play='shot'].s2 .so-tool[data-t='rect'] {
  background: var(--sc-lime);
}

html.js .screen[data-play='shot'].s2 .so-tool[data-t='rect'] s {
  font-weight: 700;
  color: #1e2b12;
}

html.js .screen[data-play='shot'].s3 .so-copy {
  display: none;
}

html.js .screen[data-play='shot'].s3 .so-copied {
  display: inline;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid #8cc45f;
  background: var(--sc-lime);
  font-weight: 700;
  color: #1e2b12;
}

html.js .screen[data-play='shot'].s3 .so-status {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html.js .screen[data-play='shot'] .so-sel,
  html.js .screen[data-play='shot'] .so-h,
  html.js .screen[data-play='shot'] .so-size,
  html.js .screen[data-play='shot'] .so-mark,
  html.js .screen[data-play='shot'] .so-status {
    transition: none;
  }
}

/* 窄屏：三枚工具带名字会变宽，样式块与「提取文字」先收起来——
   工具条是 `overflow: hidden` 的，不收就会被悄悄切掉半颗按钮。 */
@media (max-width: 900px) {
  .so-style {
    display: none;
  }

  .so-acts em[data-i18n='play.shot.ocr'] {
    display: none;
  }
}

@media (max-width: 720px) {
  .so-title,
  .so-acts em[data-i18n='play.shot.undo'] {
    display: none;
  }

  /* 画面缩到 285px 宽时，3px 红框几乎贴到字上：细一档，留出那道缝。 */
  .so-mark {
    border-width: 2px;
  }

  .so-tool s {
    font-size: 8.5px;
  }

  .so-foot {
    gap: 6px;
    font-size: 8px;
  }

  .so-foot .so-step2,
  .so-foot span:last-child {
    display: none;
  }
}


/* ==========================================================================
   2026-12-20 · 资源库（`.asv`）与启动台（`.ln`）按真机重画
   ==========================================================================

   两页原来的 `.as*` / `.lt*` 是「六个彩色分类条 + 网格」与「⌘K 一张列表」，
   与真机不是一回事：

   - 真机资源库的根目录是**六个固定文件夹卡片**（`src/app/panels/AssetsPanel.tsx`
     里那张「六个柜子」，`ASSET_KINDS` = 图片 / 视频 / SVG / 音频 / 字体 / 其它），
     导入的文件按类型自己归位，不能新建文件夹；
   - 真机启动台是**一整面图标墙** + 字母索引 + 程序坞（`LauncherPanel.tsx`），
     ⌘K 那个命令面板是另一处入口。

   旧的 `.as*` / `.lt*` 规则留在本文件里（标记为待清理，见 README 的债），
   新规则一律用新前缀，避免互相盖。
   -------------------------------------------------------------------------- */

/* ---------------------------- 资源库 ---------------------------- */

/*
  2026-12-24：整块按真机 `AssetsPanel.tsx` 的**根目录**重排。

  上一版是三栏（柜子栏 / 缩略图 / 详情）——那是真机两个不同状态拼在一张图上：
  根目录只有柜子，进到文件夹里柜子栏就没了，详情栏只在选中一条素材时才展开。
  现在这一页只有根目录那一条路径：顶栏 → 类型条 → 路径导入 → 面包屑 →
  「文件夹固定成六个分类」→ 六个柜子。
*/
.asv {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 7px;
  height: 100%;
}

.asv-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.asv-tabs {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--a-line);
  background: #f4f6ef;
}

.asv-tabs s {
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11px;
  text-decoration: none;
  color: var(--a-mute);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.asv-tabs s.is-on {
  background: #fff;
  color: var(--a-ink);
  font-weight: 600;
}

/* 右上角那三样：刷新、统计、失效项（没有失效项时后者不出现）。 */
.asv-refresh {
  margin-left: auto;
  flex: none;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--a-line);
  background: #fff;
  font-size: 11px;
  line-height: 1;
  color: var(--a-soft);
}

.asv-stat {
  flex: none;
  font-family: var(--mono);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  color: var(--a-mute);
}

/* 类型快捷条：一排药丸，右端两颗导入按钮。 */
.asv-kinds {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px;
  min-width: 0;
  margin: 0;
}

.asv-kinds > s {
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 10.5px;
  white-space: nowrap;
  color: var(--a-soft);
}

.asv-kinds > s.is-on {
  background: var(--a-lime-wash);
  border-color: #dcefc9;
  font-weight: 700;
  color: #35502a;
}

.asv-imp {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  flex: none;
}

.asv-imp s {
  padding: 2px 9px;
  border-radius: 7px;
  border: 1px solid var(--a-line);
  background: #fff;
  font-size: 10px;
  white-space: nowrap;
  color: var(--a-soft);
}

/* 路径导入：一个真输入框的样子（等宽字 + 光标）+ 一颗主按钮。

   第六十六版：原来这里只是一行提示字（「粘贴路径导入 · 原件会移动进库」），
   现在是一条真的路径框——演示会把示例路径一个字一个字打进去，再按「导入」。 */
.asv-path {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin: 0;
}

.asv-field {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  gap: 1px;
  padding: 5px 8px;
  border-radius: 8px;
  border: 1px solid var(--a-line);
  background: #fff;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--a-ink);
  overflow: hidden;
}

/* 打进去的那段路径：`max-width` 从 0 长到 100%，`overflow: hidden` 把后面的字藏住，
   光标跟着元素宽度走——看起来就是「一个字一个字敲进去」。 */
.asv-val {
  display: block;
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  font-style: normal;
}

.asv-caret {
  flex: none;
  width: 1px;
  height: 11px;
  background: var(--a-ink);
  animation: asvCaret 1.05s steps(1, end) infinite;
}

@keyframes asvCaret {
  50% {
    opacity: 0;
  }
}

@keyframes asvType {
  to {
    max-width: 100%;
  }
}

/* 按钮：两个标签（导入 / 导入成功）叠在同一个位置，宽度锁死，换字时不跳。 */
.asv-run {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 3px 9px;
  border-radius: 6px;
  background: var(--a-lime);
  font-size: 10px;
  font-weight: 700;
  color: #26361c;
}

.asv-run s {
  text-decoration: none;
}

.asv-run em {
  display: none;
  font-style: normal;
}

.asv-run em::before {
  content: '✓ ';
}

.asv-crumb {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 2px 0 0;
}

.asv-crumb b {
  font-size: 12px;
  font-weight: 700;
  color: var(--a-ink);
}

.asv-crumb em {
  font-style: normal;
  font-size: 10px;
  color: var(--a-mute);
}

/* 「文件夹固定成六个分类，不能新建」——真机在抽屉网格上面就写这一句。 */
.asv-hint {
  margin: 0;
  font-size: 9.5px;
  line-height: 1.5;
  color: var(--a-mute);
}

/* 六个柜子：3 × 2 的固定格，和真机根目录一样多一个都不多。
   文件夹图标是**真机那四层 PNG**（`src/assets/folders/`，各 500×500、彼此对好位），
   尺寸/间距/投影全部按真机 `index.css` 的 `.pws-folder` 比例：
   `--art` 是图标边长，gap、负 margin、投影、前片阴影都写成它的倍数。 */
.asv-fs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px 8px;
  margin: 2px 0 0;
  padding: 2px 0 0;
  list-style: none;
  align-content: start;
}

/* 根目录这一层的图标比找素材页底部那枚落点大一号：整页只剩六个柜子，
   72px 会让两块之间空出一大片。 */
.asv-fs .asv-f {
  --art: 104px;
}

.asv-f {
  /* 76 → 72（2026-12-22）：两排柜子各矮 4px，正好把这一页从「滚 24px」拉回一屏。 */
  --art: 72px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: calc(var(--art) * 0.058);
  padding: 4px 2px 2px;
}

/* 四层：位置与尺寸完全一样，只有图和 z-index 不同。 */
.asv-art {
  position: relative;
  width: var(--art);
  max-width: 100%;
  aspect-ratio: 1;
  /* 画布上下各 5.6% 的透明留白：用负 margin 抵消，名字才不会离图标太远。 */
  margin-bottom: calc(var(--art) * -0.056);
  isolation: isolate;
  filter: drop-shadow(
    0 calc(var(--art) * 0.038) calc(var(--art) * 0.048) rgba(15, 23, 42, 0.26)
  );
}

.asv-front,
.asv-paper1,
.asv-paper2,
.asv-back {
  position: absolute;
  inset: 0;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
}

.asv-back {
  z-index: 1;
  background-image: var(--back);
}

.asv-paper2 {
  z-index: 2;
  background-image: url('/assets/folders/paper-2.png');
  transition: transform 0.26s cubic-bezier(0.34, 1.16, 0.64, 1);
}

.asv-paper1 {
  z-index: 3;
  background-image: url('/assets/folders/paper-1.png');
  transition: transform 0.26s cubic-bezier(0.34, 1.16, 0.64, 1);
}

.asv-front {
  z-index: 4;
  background-image: var(--front);
  filter: drop-shadow(
    0 calc(var(--art) * -0.019) calc(var(--art) * 0.029) rgba(15, 23, 42, 0.18)
  );
}

/* 颜色映射照真机 `index.css` 的 `[data-folder-card=...]`（只换图，不染色）。 */
.asv-f[data-folder-card='image'] {
  --back: url('/assets/folders/back-blue.png');
  --front: url('/assets/folders/front-blue.png');
}

.asv-f[data-folder-card='video'] {
  --back: url('/assets/folders/back-pink.png');
  --front: url('/assets/folders/front-pink.png');
}

.asv-f[data-folder-card='svg'] {
  --back: url('/assets/folders/back-purple.png');
  --front: url('/assets/folders/front-purple.png');
}

.asv-f[data-folder-card='audio'] {
  --back: url('/assets/folders/back-yellow.png');
  --front: url('/assets/folders/front-yellow.png');
}

.asv-f[data-folder-card='font'] {
  --back: url('/assets/folders/back-green.png');
  --front: url('/assets/folders/front-green.png');
}

.asv-f[data-folder-card='other'] {
  --back: url('/assets/folders/back-gray.png');
  --front: url('/assets/folders/front-gray.png');
}

/* 名字与计数在图标**下面**（真机就是这么写的）。 */
.asv-cap {
  display: grid;
  justify-items: center;
  gap: 1px;
}

.asv-cap b {
  font-size: 10.5px;
  font-weight: 600;
  color: #3d4338;
}

.asv-cap em {
  font-style: normal;
  font-size: 9.5px;
  color: var(--a-mute);
}

/* 计数：几层数字叠在同一格里，切状态只换透明度（不会把格子挤动）。 */
.asv-n {
  display: inline-grid;
  justify-items: center;
}

.asv-n i {
  grid-area: 1 / 1;
  font-style: normal;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.asv-n i:first-child {
  opacity: 1;
}

/* 导入：每个文件芯片从自己柜子的上方飘下来，落进口袋后消失。
   芯片挂在柜子里（绝对定位在图标上方），所以不需要算任何坐标——
   六个柜子各飞各的，天然对得上「按类型归位」。 */
.asv-in {
  position: absolute;
  left: 50%;
  top: calc(var(--art) * 0.02);
  z-index: 5;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid #d9e6c8;
  background: #fff;
  box-shadow: 0 8px 14px -10px rgba(11, 40, 18, 0.5);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.02em;
  color: #3d4338;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -52px) scale(0.92);
}

@keyframes asvDrop {
  0% {
    opacity: 0;
    transform: translate(-50%, -52px) scale(0.92) rotate(-4deg);
  }

  18% {
    opacity: 1;
    transform: translate(-50%, -40px) scale(1) rotate(0deg);
  }

  62% {
    opacity: 1;
    transform: translate(-50%, 2px) scale(1);
  }

  100% {
    opacity: 0;
    transform: translate(-50%, 12px) scale(0.7);
  }
}

/* 落地时两张纸弹一下：文件进柜子的那一帧。 */
@keyframes asvPaperPop {
  40% {
    transform: translateY(-9%);
  }
}

.asv-note {
  margin: 7px 0 0;
  font-size: 9.5px;
  line-height: 1.5;
  color: var(--a-mute);
}

/* 右栏原来的「导入界面」（拖放区 + 六个待导入文件 + 导入按钮）在 2026-12-24
   整段删掉：真机没有这一栏，导入是工具栏上的动作，右栏是选中素材的文件属性。
   改完这一页是三块——柜子 / 素材矩阵 / 详情（见上面 `.asv-grid` 与 `.asv-info`）。 */

/* 右二：找资源。照 `AssetBrowser.tsx`：关键词胶囊 + 工具条 + 一块矩形。

   没打开站点时矩形里是**站点墙**（每个来源一张卡：站名 + 它自己的许可 +
   「在 X 搜」）；打开之后矩形被站点的检索页占满，工具条才出现。 */
.asv-kw {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 7px;
  padding: 5px 8px 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--a-line);
  background: #f7f9f3;
}

.asv-kw-ic {
  flex: none;
  position: relative;
  width: 10px;
  height: 10px;
  border: 1.4px solid var(--a-soft);
  border-radius: 50%;
}

.asv-kw-ic::after {
  content: '';
  position: absolute;
  right: -3px;
  bottom: -2px;
  width: 5px;
  height: 1.4px;
  background: var(--a-soft);
  transform: rotate(45deg);
}

.asv-kwtext {
  font-size: 10.5px;
  color: var(--a-ink);
}

.asv-caret {
  width: 1.5px;
  height: 11px;
  margin-left: 1px;
  background: var(--a-ink);
  animation: ln-blink 1.05s steps(1) infinite;
}

.asv-kw em {
  margin-left: auto;
  font-style: normal;
  font-size: 9.5px;
  color: var(--a-lime-deep);
}

/* 工具条：真的打开了站点才出现（真机同一个位置：后退 / 前进 / 刷新 + 地址栏 + 返回）。 */
.asv-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 0 7px;
  font-size: 9px;
  color: var(--a-mute);
}

.asv-nav-ic {
  flex: none;
  position: relative;
  width: 11px;
  height: 11px;
  border: 1.2px solid var(--a-soft);
  border-radius: 50%;
  opacity: 0.8;
}

/* 后退 / 前进：两个小箭头；刷新：一个缺了 1/4 的环。 */
.asv-nav-ic.is-back::after,
.asv-nav-ic.is-fwd::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-left: 1.2px solid var(--a-ink);
  border-top: 1.2px solid var(--a-ink);
}

.asv-nav-ic.is-back::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.asv-nav-ic.is-fwd::after {
  transform: translate(-50%, -50%) rotate(135deg);
}

.asv-nav-ic.is-reload {
  border-color: transparent;
  border-top-color: var(--a-soft);
  border-right-color: var(--a-soft);
  border-width: 1.4px;
}

.asv-nav-ic.is-reload::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -1px;
  width: 3px;
  height: 3px;
  border-left: 1.2px solid var(--a-ink);
  border-bottom: 1.2px solid var(--a-ink);
  transform: rotate(-15deg);
}

.asv-addr {
  display: flex;
  flex: 1;
  min-width: 0;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  border: 1px solid var(--a-line);
  background: #fff;
}

.asv-globe {
  flex: none;
  width: 8px;
  height: 8px;
  border: 1px solid var(--a-soft);
  border-radius: 50%;
}

.asv-addr s {
  min-width: 0;
  text-decoration: none;
  font-family: var(--mono);
  font-size: 8.5px;
  color: var(--a-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asv-nav em {
  flex: none;
  font-style: normal;
  font-size: 8.5px;
  color: var(--a-mute);
}

/* 矩形：站点墙 / 站点检索页二选一。 */
.asv-stage {
  position: relative;
  height: 214px;
  overflow: hidden;
  border-radius: 9px;
  border: 1px solid var(--a-line);
  background: #f6f8f1;
}

.asv-wall {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  margin: 0;
  padding: 6px;
  list-style: none;
}

.asv-wall li {
  display: grid;
  gap: 1px;
  padding: 5px 6px 6px;
  border-radius: 7px;
  border: 1px solid var(--a-line);
  background: #fff;
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.asv-wall li b {
  font-size: 10px;
  font-weight: 600;
  color: var(--a-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asv-wall li s {
  text-decoration: none;
  font-size: 8px;
  line-height: 1.3;
  color: var(--a-mute);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asv-wall li em {
  margin-top: 2px;
  font-style: normal;
  font-size: 8.5px;
  color: var(--a-lime-deep);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 站点检索页：真页面截图（Commons 的 `dark` 检索结果）。 */
.asv-page {
  position: absolute;
  inset: 0;
  background: #fff;
}

.asv-page img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* 页面刚打开时扫一道，表示正在加载。 */
.asv-page-load {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(159, 217, 122, 0) 0%, #9fd97a 45%, rgba(159, 217, 122, 0) 100%);
  background-size: 40% 100%;
  background-repeat: no-repeat;
  animation: asvPageSweep 1.1s ease-in-out infinite;
}

@keyframes asvPageSweep {
  from {
    background-position: -40% 0;
  }
  to {
    background-position: 140% 0;
  }
}

/* 静止态：站点墙可见，工具条 / 站点页 / 打进去的关键词都不显示。 */
.asv-nav,
.asv-page,
.asv-kwtext {
  display: none;
}

.asv-kw-ph {
  font-size: 10.5px;
  color: var(--a-soft);
}

/* 下载的芯片：位置与位移都由 `--dl-*` 给（plays.js 量出来的）。 */
.asv-dlchip {
  position: absolute;
  left: var(--dl-x, 0);
  top: var(--dl-y, 0);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 7px;
  border: 1px solid #d9e6c8;
  background: #fff;
  box-shadow: 0 10px 18px -12px rgba(11, 40, 18, 0.5);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.asv-dlchip b {
  padding: 1px 4px;
  border-radius: 3px;
  background: #4a8fdc;
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 500;
  color: #fff;
}

.asv-dlchip s {
  text-decoration: none;
  font-family: var(--mono);
  font-size: 8.5px;
  color: #3d4338;
}

.asv-toast {
  position: absolute;
  left: 12px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 6px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d9e6c8;
  box-shadow: 0 12px 24px -18px rgba(11, 40, 18, 0.5);
  font-size: 10px;
  color: var(--a-ink);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.asv-toast-ic {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--a-lime-deep);
}

/* s2 · 按下「导入」之后才开演：六个文件芯片各自从柜子上方飘下来，落进口袋后消失；
   两张纸跟着弹一下，计数 +1。芯片的延迟按柜子顺序错开 70ms，
   看起来是「一个一个归位」，不是六张一起砸下来。

   第六十六版：这一套原来挂在 `.s1`（进屏就飞），现在挂 `.s2`——用户要的是
   「先输入路径、再点导入，然后才显示现在这套分别保存的动画」。 */
.screen[data-play='assets'].s2 .asv-in {
  animation: asvDrop 0.95s cubic-bezier(0.3, 0.7, 0.3, 1) forwards;
}

.screen[data-play='assets'].s2 .asv-f:nth-child(2) .asv-in {
  animation-delay: 0.07s;
}

.screen[data-play='assets'].s2 .asv-f:nth-child(3) .asv-in {
  animation-delay: 0.14s;
}

.screen[data-play='assets'].s2 .asv-f:nth-child(4) .asv-in {
  animation-delay: 0.21s;
}

.screen[data-play='assets'].s2 .asv-f:nth-child(5) .asv-in {
  animation-delay: 0.28s;
}

.screen[data-play='assets'].s2 .asv-f:nth-child(6) .asv-in {
  animation-delay: 0.35s;
}

.screen[data-play='assets'].s2 .asv-paper1,
.screen[data-play='assets'].s2 .asv-paper2 {
  animation: asvPaperPop 0.5s ease 0.5s;
}

/* 右栏队列：跟着六枚芯片一起归位——一行一行淡下去、亮起勾。
   芯片 0.95s 落底、彼此错开 0.07s，这里的延迟与它们对齐。 */
@keyframes asvQueueDone {
  to {
    opacity: 0.45;
  }
}

@keyframes asvQueueTick {
  to {
    opacity: 1;
  }
}

.screen[data-play='assets'].s1 .asv-queue li,
.screen[data-play='assets'].s1 .asv-queue li::after {
  animation-duration: 0.3s;
  animation-timing-function: ease;
  animation-fill-mode: forwards;
  animation-delay: 0.82s;
}

.screen[data-play='assets'].s1 .asv-queue li {
  animation-name: asvQueueDone;
}

.screen[data-play='assets'].s1 .asv-queue li::after {
  animation-name: asvQueueTick;
}

.screen[data-play='assets'].s1 .asv-queue li:nth-child(2),
.screen[data-play='assets'].s1 .asv-queue li:nth-child(2)::after {
  animation-delay: 0.89s;
}

.screen[data-play='assets'].s1 .asv-queue li:nth-child(3),
.screen[data-play='assets'].s1 .asv-queue li:nth-child(3)::after {
  animation-delay: 0.96s;
}

.screen[data-play='assets'].s1 .asv-queue li:nth-child(4),
.screen[data-play='assets'].s1 .asv-queue li:nth-child(4)::after {
  animation-delay: 1.03s;
}

.screen[data-play='assets'].s1 .asv-queue li:nth-child(5),
.screen[data-play='assets'].s1 .asv-queue li:nth-child(5)::after {
  animation-delay: 1.1s;
}

.screen[data-play='assets'].s1 .asv-queue li:nth-child(6),
.screen[data-play='assets'].s1 .asv-queue li:nth-child(6)::after {
  animation-delay: 1.17s;
}

/* 计数：六枚芯片归位后 128 → 129（跟着 s2 一起，不再是进屏就翻）。 */
.screen[data-play='assets'].s2 .asv-n i:first-child {
  opacity: 0;
}

.screen[data-play='assets'].s2 .asv-n i:nth-child(2) {
  opacity: 1;
}

/* s1 · 进屏先打路径：`max-width` 0 → 100%，光标跟着走（见 `.asv-val`）。 */
html.js .screen[data-play='assets'] .asv-val {
  max-width: 0;
}

html.js .screen[data-play='assets'].s1 .asv-val {
  animation: asvType 1.1s steps(22, end) forwards;
}

/* 按下那一下：按钮缩一档再弹回来——「点了」这件事得看得见。 */
@keyframes asvPress {
  0% {
    transform: none;
  }

  40% {
    transform: scale(0.93);
  }

  100% {
    transform: none;
  }
}

.screen[data-play='assets'].s2 .asv-run {
  animation: asvPress 0.3s ease;
}

/* s3 · 导入成功：按钮换成「导入成功」，路径框亮一下，表示这一批已经进了库。
   这一轮结束时类名被撤掉，按钮与路径都回到初始状态——下一轮从头打字。 */
.screen[data-play='assets'].s3 .asv-run {
  background: var(--a-lime-deep);
  color: #1d2a14;
}

.screen[data-play='assets'].s3 .asv-run s {
  display: none;
}

.screen[data-play='assets'].s3 .asv-run em {
  display: inline;
}

.screen[data-play='assets'].s3 .asv-field {
  border-color: #b6d894;
  background: #f7fdf0;
}

/* s2 · 找资源的那套柜子计数已随「找素材」独立成页搬走（第六十六版清掉）。 */

/* s2 · 找资源：打关键词 → 打开 Commons 检索页 → 下载的那张图飞进「图片」柜子。

   真机这块矩形打开站点后被原生子 Webview 占满，工具条（后退 / 前进 / 刷新 /
   地址栏 / 返回站点墙）这时才出现。这里用同一套顺序：墙撤掉、工具条出现、
   检索页截图铺满，然后 `download.jpg` 从页面里飞向左边的柜子。
*/
.screen[data-play='assets'].s2 .asv-kw-ph {
  display: none;
}

.screen[data-play='assets'].s2 .asv-kwtext {
  display: inline;
  font-size: 10.5px;
}

.screen[data-play='assets'].s2 .asv-nav {
  display: flex;
}

.screen[data-play='assets'].s2 .asv-wall {
  display: none;
}

.screen[data-play='assets'].s2 .asv-page {
  display: block;
}

.screen[data-play='assets'].s2 .asv-dlchip {
  animation: asvDlFly 1.15s cubic-bezier(0.4, 0.1, 0.3, 1) 0.6s forwards;
}

/* 起点 → 终点：位置由 `plays.js` 量出来写进 `--dl-x/-y`（起点）与
   `--dl-dx/-dy`（到「图片」柜子中心的位移）。
   所有关键帧都带着 `translate(-50%, -50%)`：让**芯片中心**走这条路，
   否则落点是芯片左上角，会偏出半个身位。 */
@keyframes asvDlFly {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92);
  }

  12% {
    opacity: 1;
    transform: translate(-50%, -56%) scale(1);
  }

  70% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--dl-dx, 0px)), calc(-50% + var(--dl-dy, 0px))) scale(0.68);
  }
}

/* 原来这里还挂着「找资源」那半段：`.s2 .asv-toast` 与 `.s2 .asv-f:first-child`
   的高亮，元素早就不在标记里了（找素材已成独立一页），第六十六版删掉。 */

/* ---------------------------- 工作空间 + 分栏（2026-12-23 第四十七版） ----------------------------

   照真机两件事：

   1. 工作空间切换器（`app/WorkspaceSwitcher.tsx`）：一排空间名 + 「＋」新建，
      **只隔离布局、不隔离数据**——这句是真机菜单里明写的边界，站上照抄。
   2. 分栏（`lib/split.ts`）：左主栏 + 右副栏，中间一条可拖的分隔条；
      副栏默认 50%、范围 25–75%，并且会给主栏留至少 520px。

   分栏在这里用 `grid-template-columns` 过渡：单栏时第二条是 `0`，s2 变成 `1fr`，
   于是「拉出来」是宽度动画，而不是元素突然出现。
   -------------------------------------------------------------------------- */

.wk {
  display: grid;
  gap: 10px;
  min-height: 340px;
}

/* 切换器：与真机侧栏顶部那一块同形——一排空间名，当前那个亮。 */
.wk-sw {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--a-line);
}

.wk-sw-list {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wk-sw-list s {
  text-decoration: none;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--a-line);
  background: #fff;
  font-size: 10.5px;
  color: var(--a-soft);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.wk-sw-list s.is-on {
  border-color: #dcefc9;
  background: var(--a-lime-wash);
  color: #2c3a20;
  font-weight: 600;
}

.wk-new {
  color: var(--a-mute) !important;
  padding: 3px 8px !important;
}

.wk-sw em {
  margin-left: auto;
  font-style: normal;
  font-size: 9.5px;
  color: var(--a-mute);
}

/* 面板区：主栏 | 分隔条 | 副栏。 */
.wk-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0 minmax(0, 0fr);
  gap: 0;
  min-height: 296px;
  transition: grid-template-columns 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

.wk-p {
  min-width: 0;
  overflow: hidden;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--a-line);
  background: #fff;
}

.wk-p--side {
  border-color: #dcefc9;
  /* 单栏时这条轨是 0 宽，但 padding 与描边仍会留下 26px 的一条边——
     所以整块也给一个透明度过渡，s2 才亮起来。 */
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* 分隔条：真机那条 6px 的把手，悬停变青柠。 */
.wk-div {
  position: relative;
  width: 100%;
  border-radius: 3px;
  background: var(--a-line);
  transition: background-color 0.2s ease;
}

.wk-div::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 22px;
  border-radius: 999px;
  background: #fff;
  transform: translate(-50%, -50%);
  opacity: 0.9;
}

.wk-p-h {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0 0 8px;
}

.wk-p-h b {
  font-size: 11.5px;
  color: var(--a-ink);
}

.wk-p-h s {
  text-decoration: none;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid var(--a-line);
  font-size: 8.5px;
  color: var(--a-mute);
}

.wk-p-h em {
  margin-left: auto;
  font-style: normal;
  font-size: 11px;
  color: var(--a-mute);
}

.wk-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wk-list li {
  padding: 6px 9px;
  border-radius: 8px;
  background: #f7f9f3;
  border: 1px solid #edf1e6;
  font-size: 10.5px;
  color: var(--a-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 切空间时主栏从「计划」换成「文档」：两份内容叠在同一格，换的是透明度。 */
.wk-list--doc,
.wk-p-h--doc {
  display: none;
}

/* s2 · 拉出副栏：副栏从 0 长到 1fr，中间那条分隔条同时显形。 */
.screen[data-play='wk'].s2 .wk-split {
  grid-template-columns: minmax(0, 1fr) 7px minmax(0, 1fr);
}

.screen[data-play='wk'].s2 .wk-div {
  background: #dbe6cd;
}

.screen[data-play='wk'].s2 .wk-p--side {
  opacity: 1;
}

/* s3 · 切到「写作」空间：主栏换成文档、副栏收起、切换器高亮跟着走。 */
.screen[data-play='wk'].s3 .wk-split {
  grid-template-columns: minmax(0, 1fr) 0 minmax(0, 0fr);
}

/* 副栏在 s3 收起：轨宽归 0 之后仍会剩一条 padding 的边，透明度也要一起归 0。 */
.screen[data-play='wk'].s3 .wk-p--side {
  opacity: 0;
}

.screen[data-play='wk'].s3 .wk-list--plan,
.screen[data-play='wk'].s3 .wk-p--main .wk-p-h:not(.wk-p-h--doc) {
  display: none;
}

.screen[data-play='wk'].s3 .wk-list--doc,
.screen[data-play='wk'].s3 .wk-p-h--doc {
  display: grid;
}

.screen[data-play='wk'].s3 .wk-p-h--doc {
  display: flex;
}

.screen[data-play='wk'].s3 .wk-sw-list s[data-ws='work'] {
  border-color: var(--a-line);
  background: #fff;
  color: var(--a-soft);
  font-weight: 400;
}

.screen[data-play='wk'].s3 .wk-sw-list s[data-ws='write'] {
  border-color: #dcefc9;
  background: var(--a-lime-wash);
  color: #2c3a20;
  font-weight: 600;
}

/* ---------------------------- 桌面宠物（2026-12-23 第四十六版） ----------------------------

   照真机 `src/pet/PetWindow.tsx` + `src/pet/pet.css`：

   - 宠物本体是一块**全透明**的小窗，里面只有机器人，没有底座、没有卡片；
   - 240×240、三态 × 50 帧 PNG、10 fps、5 秒一轮（站上取待机 + 思考两态，
     帧图压到 100px，进页面才取）；
   - 四套配色不是四套图，是四组 `hue-rotate` 滤镜（黄色那套多两档 saturate /
     brightness，因为纯 hue-rotate 转过去会掉明度）——照抄真机的数值；
   - 单击开旁边的迷你气泡，气泡与主窗口的 AI 助手是同一条会话（站上只演对话）。

   这一屏的「桌面」是一块带光晕的玻璃面板：透明宠物必须有东西可叠，
   白底上放一只白机器人等于看不见它。
   -------------------------------------------------------------------------- */

.pet-stage {
  position: relative;
  min-height: 330px;
  border-radius: 12px;
  border: 1px solid var(--a-line);
  /* 2026-12-23 第五十六版：这一屏的「桌面」换成**一层仿真 macOS 桌面**
     （壁纸 + 菜单栏 + 桌面图标 + 程序坞，见下面 `mac-*` 那一节）。
     壁纸走深色：白色 / 浅色的机器人帧压在浅底上等于看不见（第四十六版就是
     为这个才垫了一层浅玻璃），深底同时让菜单栏白字与半透明程序坞成立。 */
  background: #16233d;
  overflow: hidden;
}

/* ---------------------------- 仿真桌面（第五十六版） ----------------------------

   用户原话：「桌面宠物页面，背景显示macos仿真桌面」。

   宠物在真机里是一块**全透明**的 240×240 窗口，本身没有任何底色。没有桌面可叠，
   读者看到的就只是一只悬在白卡片上的机器人——看不出「它在你桌面上」。
   这一层照 macOS 的几个固定部件画：壁纸 → 菜单栏 → 桌面图标 → 程序坞。
   -------------------------------------------------------------------------- */

.mac-desk {
  position: absolute;
  inset: 0;
  /*
    macOS 那种抽象壁纸：四条彩色光斑叠一条斜向渐变。
    光斑用 `radial-gradient` 画在远处、饱和度压低，才像「壁纸」而不是「彩色圆」。
  */
  background:
    radial-gradient(46% 62% at 16% 10%, rgba(110, 214, 255, 0.55), transparent 68%),
    radial-gradient(52% 70% at 84% 20%, rgba(132, 118, 255, 0.55), transparent 70%),
    radial-gradient(58% 78% at 66% 98%, rgba(255, 140, 190, 0.42), transparent 72%),
    radial-gradient(46% 62% at 4% 92%, rgba(86, 246, 196, 0.36), transparent 70%),
    linear-gradient(158deg, #121a40 0%, #13294c 44%, #1a2a44 68%, #2b1c46 100%);
}

/* 菜单栏：一条半透明黑带，左边  + 应用名 + 六项菜单，右边状态项与时钟。 */
.mac-bar {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: center;
  gap: 13px;
  height: 22px;
  padding: 0 11px;
  background: rgba(9, 15, 28, 0.34);
  -webkit-backdrop-filter: blur(10px) saturate(150%);
  backdrop-filter: blur(10px) saturate(150%);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.94);
}

.mac-logo {
  width: 10px;
  height: 10px;
  margin-right: -6px;
  fill: currentColor;
}

.mac-bar > b {
  font-weight: 700;
}

.mac-bar > s {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.78);
}

.mac-bar-r {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-left: auto;
  font-style: normal;
}

.mac-bar-r u {
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}

/* 信号四格：底部对齐、逐格升高。 */
.mac-sig {
  width: 13px;
  height: 9px;
  background:
    linear-gradient(currentColor, currentColor) 0 5px / 2px 4px no-repeat,
    linear-gradient(currentColor, currentColor) 4px 3px / 2px 6px no-repeat,
    linear-gradient(currentColor, currentColor) 8px 1px / 2px 8px no-repeat,
    linear-gradient(currentColor, currentColor) 12px 0 / 2px 9px no-repeat;
  opacity: 0.9;
}

/* 电池：一个圆角框 + 里面的电量 + 右边的小凸点。 */
.mac-bat {
  position: relative;
  width: 16px;
  height: 8px;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: 0.9;
}

.mac-bat::before {
  content: '';
  position: absolute;
  left: 1px;
  top: 1px;
  width: 11px;
  height: 4px;
  border-radius: 1px;
  background: currentColor;
}

.mac-bat::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 2px;
  width: 2px;
  height: 2px;
  border-radius: 0 1px 1px 0;
  background: currentColor;
}

/* 桌面图标：真 macOS 是右上角竖着排，图标下面一行名字。 */
.mac-desk-ics {
  position: absolute;
  right: 16px;
  top: 36px;
  display: grid;
  gap: 12px;
  justify-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 8.5px;
  color: #fff;
}

.mac-desk-ics li {
  display: grid;
  justify-items: center;
  gap: 3px;
  width: 56px;
  text-align: center;
}

/* 名字那一层压一点深色底 + 投影，浅壁纸上也读得清。 */
.mac-desk-ics s {
  text-decoration: none;
  padding: 0 3px;
  border-radius: 3px;
  background: rgba(10, 18, 34, 0.34);
  line-height: 1.4;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}

.mac-disk {
  width: 30px;
  height: 21px;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  background: linear-gradient(#f7fafc, #c9d4de);
}

.mac-fld {
  position: relative;
  width: 30px;
  height: 21px;
  margin-top: 3px;
  border-radius: 3px;
  background: linear-gradient(#8fd2f8, #5aa9e8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* 文件夹那个小舌头 */
.mac-fld::before {
  content: '';
  position: absolute;
  left: 2px;
  top: -4px;
  width: 12px;
  height: 5px;
  border-radius: 2px 2px 0 0;
  background: #7cc5f2;
}

/* 程序坞：一块浮在底部的玻璃条，图标是真图标（`.ln-ic` 那一套渲染）。 */
.mac-dock {
  position: absolute;
  left: 50%;
  bottom: 7px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(12px) saturate(170%);
  backdrop-filter: blur(12px) saturate(170%);
  box-shadow: 0 12px 24px -16px rgba(0, 0, 0, 0.7);
  transform: translateX(-50%);
}

.mac-dock .ln-ic {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.mac-dock .ln-ic > b {
  font-size: 11px;
}

.mac-dock-sep {
  width: 1px;
  height: 20px;
  margin: 0 3px 3px;
  background: rgba(255, 255, 255, 0.34);
}

/* 窄屏（<=720）：这一屏是一块「桌面」，缩到手机宽度时按比例收一遍——
   程序坞缩成小图标、桌面图标藏起来、气泡改成贴在宠物左上方，
   不然它们会被卡片裁掉一半。 */
@media (max-width: 720px) {
  .mac-bar {
    gap: 8px;
    height: 20px;
    padding: 0 8px;
    font-size: 9px;
  }

  .mac-bar > s {
    display: none;
  }

  .mac-desk-ics {
    display: none;
  }

  .mac-dock {
    gap: 3px;
    padding: 4px 5px;
    border-radius: 9px;
  }

  .mac-dock .ln-ic {
    width: 19px;
    height: 19px;
    border-radius: 5px;
  }

  .mac-dock .ln-ic > b {
    font-size: 8px;
  }

  .mac-bin {
    width: 19px;
    height: 19px;
    border-radius: 5px;
  }

  .mac-bin::before {
    left: 5px;
    top: 7px;
    width: 9px;
    height: 9px;
  }

  .mac-bin::after {
    left: 3px;
    top: 4px;
    width: 13px;
  }

  .pet-status {
    left: 8px;
    top: 26px;
    font-size: 9px;
  }

  .pet-skins {
    left: 8px;
    bottom: 8px;
    font-size: 9px;
  }

  .pet-obj {
    right: 10px;
    bottom: 66px;
  }

  .pet-frame {
    width: 74px;
    height: 74px;
  }

  .pet-bubble {
    left: 10px;
    right: auto;
    bottom: 96px;
    width: auto;
    max-width: min(220px, 62%);
  }
}

/* 废纸篓：一个半透明方块 + 桶身 + 桶沿。 */
.mac-bin {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.2);
}

.mac-bin::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 1px 1px 4px 4px;
  background: rgba(255, 255, 255, 0.78);
}

.mac-bin::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.9);
}

/* 左上角状态行：真机窗口没有标题栏，这一行只是给读者看的说明。
   2026-12-23 第五十六版：桌面变深，这一行改白字并垫一层淡底，
   压在壁纸上（而不是压在菜单栏上，top 让开 22px 那条菜单栏）。 */
.pet-status {
  position: absolute;
  left: 14px;
  top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(10, 18, 34, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.92);
}

.pet-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--a-lime);
  box-shadow: 0 0 0 3px rgba(159, 232, 112, 0.22);
}

.pet-status em {
  font-style: normal;
  color: rgba(255, 255, 255, 0.6);
}

/* 配色：四个色点，与真机那四组滤镜同一套数值。 */
.pet-skins {
  position: absolute;
  left: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(10, 18, 34, 0.42);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.74);
}

.pet-skins em {
  font-style: normal;
}

.pet-skins i {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(14, 15, 12, 0.12);
  background: #9fe870;
}

.pet-skins i[data-skin='blue'] {
  background: #6fb8ff;
}

.pet-skins i[data-skin='pink'] {
  background: #ff9ec4;
}

.pet-skins i[data-skin='yellow'] {
  background: #ffd45e;
}

.pet-skins i.is-on {
  box-shadow: 0 0 0 2px rgba(63, 125, 13, 0.35);
}

.pet-skins s {
  text-decoration: none;
  margin-left: 2px;
}

/* 宠物本体：右下角，空白底。位置就是真机窗口在桌面上的落点。
   第五十六版：程序坞占住底部中间约 40px，宠物窗口挪到坞的上方偏右，
   免得被那排图标压住。 */
.pet-obj {
  position: absolute;
  right: 66px;
  bottom: 82px;
  display: grid;
  justify-items: center;
  gap: 2px;
}

.pet-frame {
  display: block;
  width: 100px;
  height: 100px;
  /* 真机那一条投影（`pet.css`）：只投影不描边，贴纸感正是靠它散掉的。
     深色壁纸上再加一圈很淡的亮描边，机器人的轮廓才不会糊进背景。 */
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.32)) drop-shadow(0 0 1px rgba(255, 255, 255, 0.35));
  user-select: none;
  -webkit-user-drag: none;
}

.pet-hint {
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(10, 18, 34, 0.4);
  font-size: 9px;
  color: rgba(255, 255, 255, 0.86);
  white-space: nowrap;
}

/* 迷你气泡：真机 360×440 的独立窗，这里按比例缩成 236 宽。 */
.pet-bubble {
  position: absolute;
  right: 180px;
  bottom: 104px;
  width: 236px;
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--a-line);
  background: #fff;
  box-shadow: 0 18px 36px -26px rgba(11, 40, 18, 0.45);
  font-size: 10px;
  line-height: 1.55;
}

.pet-b-me {
  margin: 0;
  padding: 5px 9px;
  border-radius: 9px;
  background: var(--a-lime-wash);
  color: #2c3a20;
}

.pet-b-typing {
  margin: 0;
  color: var(--a-mute);
}

.pet-b-ai {
  margin: 0;
  color: var(--a-ink);
}

/* 初始帧：气泡收起；待机态由 plays.js 逐帧换 src，不靠 CSS。 */
html.js .screen[data-play='pet'] .pet-bubble {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

html.js .screen[data-play='pet'] .pet-b-typing,
html.js .screen[data-play='pet'] .pet-b-ai {
  display: none;
}

/* s2 · 点一下：气泡展开，先只有你问的那句。
   选择器都带 `html.js` + 阶段类：上面两条初态是 `html.js .screen[…] .pet-*`，
   少一层（2 类 + 属性 + 1 类）压不过它（3 类 + 属性），气泡会永远不出现。 */
html.js .screen[data-play='pet'].s2 .pet-bubble {
  opacity: 1;
  transform: none;
}

/* s3 · 它在想：气泡里出「思考中…」，帧也换成 thinking（由 plays.js 切） */
html.js .screen[data-play='pet'].s3 .pet-b-typing {
  display: block;
}

/* s4 · 答完：换掉那一行 */
html.js .screen[data-play='pet'].s4 .pet-b-typing {
  display: none;
}

html.js .screen[data-play='pet'].s4 .pet-b-ai {
  display: block;
}

/* 点过之后那颗「点一下」的提示就没用了。 */
.screen[data-play='pet'].s2 .pet-hint {
  opacity: 0;
}

.pet-hint {
  transition: opacity 0.2s ease;
}

/* ---------------------------- 找素材（2026-12-23 第三十九版） ----------------------------

   从「资源」里拆出来单独一页。用户原话：「资源页面找素材单独做一个页面，显示内容是
   下载鲜花图片，点击图片上下载按钮后，图片按真实软件下载图片出现飘进下载页面底部
   出现的文件夹的动画效果」。

   三段：检索条（关键词 + 来源 + 结果数）→ 结果格（8 张真的 CC0 鲜花照片，右下角一颗
   「下载」）→ 下载落点（素材库「图片」柜子，与资源页同一套四层 PNG）。

   芯片的起终点由 `plays.js` 的 `measureStock()` 量出来写进 `--st-x/-y/-dx/-dy`：
   栅格宽度随窗口、随侧栏折叠一直变，写死像素在 1440 上对、到 1280 就飞出画面。
   -------------------------------------------------------------------------- */

.sf {
  position: relative;
  display: grid;
  gap: 9px;
}

/* 这一页的容器与 toast 用 `.sf`（find assets），不是 `.st`：`.st` / `.st-toast` /
   `.st-toast-ic` 已经被「设置」那一屏占着（`.st-tabs` / `.st-row` / `.st-prov`…）。
   两组同名会让设置页的卡片拿到这里的 grid 与绝对定位。 */

/* 这一页的副题英文比中文长（「Search, download — it lands in Images, not the Desktop.」），
   全站默认的 46ch 会让它折成两行、整页多出 6px。这里只放宽这一页的说明行。 */
#stock .screen-head p {
  max-width: 64ch;
}

.st-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 关键词胶囊：与资源页那颗同一个形状（放大镜 + 占位词 / 打进去的词 + 搜索）。 */
.st-kw {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 5px 6px 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--a-line);
  background: #fff;
  font-size: 10.5px;
  color: var(--a-soft);
}

.st-kw-ic {
  position: relative;
  flex: none;
  width: 10px;
  height: 10px;
  border: 1.4px solid #7a8474;
  border-radius: 999px;
}

.st-kw-ic::after {
  content: '';
  position: absolute;
  right: -3px;
  bottom: -2px;
  width: 4px;
  height: 1.4px;
  border-radius: 999px;
  background: #7a8474;
  transform: rotate(45deg);
}

.st-kwtext {
  display: none;
  font-size: 10.5px;
  color: var(--a-ink);
}

.st-kw em {
  font-style: normal;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--a-lime-wash);
  font-size: 9.5px;
  color: #3d5a24;
}

.st-caret {
  width: 1px;
  height: 11px;
  background: var(--a-lime-deep);
  animation: stCaret 1s steps(1) infinite;
}

@keyframes stCaret {
  50% {
    opacity: 0;
  }
}

/* 来源小标：此刻搜的是 Commons；另两家只是摆着，没打开。 */
.st-srcs {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.st-srcs s {
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid var(--a-line);
  background: #fff;
  font-size: 9.5px;
  text-decoration: none;
  color: var(--a-mute);
}

.st-srcs s.is-on {
  border-color: #cfe6b8;
  background: var(--a-lime-wash);
  color: #3d5a24;
}

.st-count {
  margin-left: auto;
  font-size: 9.5px;
  color: var(--a-mute);
}

/* 结果格：4 × 2。行高由 `--st-row` 定——这一页要一屏装下，行高是唯一可调的旋钮。
   122 → 150（2026-12-23 第四十八版）：下载那一段挪出文档流之后省下 96px，
   这些高度还给图片，卡片从 270×122 长到 270×150。 */
.st-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: var(--st-row, 150px);
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* 结果格的卡片**锁死 8 : 5 的照片比例**（第五十六版）：行高不再由「摊到的份额」
   决定——份额只决定这一块有多高，卡片自己按宽度算高。窄窗口下 4 列的卡片会自动
   变矮，而不是被拉成竖条（1024 上实测过 169 × 171 的方卡，那才是真「形变」）。 */
.st-card {
  position: relative;
  overflow: hidden;
  border-radius: 9px;
  border: 1px solid var(--a-line);
  background: #fff;
  aspect-ratio: 8 / 5;
}

/* 图片**绝对定位**铺满卡片（第五十六版）：`height: 100%` 在自动高的行里会退回到
   图片自身的固有高度（这些花图约 1000px 宽），等于给结果格塞了一个 196px 的
   最小行高——整页因此多出 95px、把页脚顶下去。绝对定位之后卡片不含内容高度，
   行高就完全由 `.sf` 分给它的份额决定。 */
.st-card img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 许可角标：图库给的，写在图上（真机里也是每家自己的叫法）。 */
.st-lic {
  position: absolute;
  left: 5px;
  top: 5px;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(12, 16, 10, 0.55);
  font-family: var(--mono);
  font-size: 7.5px;
  text-decoration: none;
  color: #fff;
}

/* 下载按钮：每张卡右下角一颗，压在图上的白药丸。 */
.st-dl {
  position: absolute;
  right: 5px;
  bottom: 5px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 4px 10px -8px rgba(11, 40, 18, 0.6);
  font-size: 9.5px;
  color: #2f3a26;
}

.st-dl i {
  font-style: normal;
}

/* 「下载中」/「已下载」这两份文案平时都藏着，按阶段换上来。
   `u` 是第五十六版加的：下载真的落地之后按钮要变成「已下载」——
   原来 s2 之后就一直是「下载中」，进度条走完、柜子都吞进去了还写着下载中，
   用户原话：「这个不严谨」。 */
.st-dl s,
.st-dl u {
  display: none;
  text-decoration: none;
}

/* 落完那一颗给个勾，比纯文字更像真实软件的「已完成」。 */
.st-dl u::before {
  content: '✓';
  margin-right: 2px;
  font-size: 8.5px;
  color: var(--a-lime-deep);
}

/* 下载落点（2026-12-23 第五十六版）：窗口**下 1/3 里的独立一块**。

   用户原话：「按真实的显示效果，将文件夹效果显示到窗口下1/3区间里」。
   第四十八版为了让照片不消失，把它做成了 `inset: 0` 的覆盖层：进度条与柜子
   压着整片图、落在正中——不像「下载落点」，像贴纸；用户在截图里那一格空着
   的地方画了红框，指的就是「应该落在这儿」。

   现在是文档流里的第三行（`.sf` 的行是 `auto / 2fr / 1fr`）：
   照片在上两行，柜子在下 1/3，两边互不遮挡——照片一张都不用消失。
   块内的两条（进度条 / 柜子）仍然叠在同一个网格格子里（`grid-area: 1 / 1`），
   所以切换时这一块的高度不变，整页高度与页脚位置都不动。 */
.st-drop {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 2px;
  padding: 8px 12px 10px;
  border-radius: 12px;
  border: 1px solid #dfe9d4;
  background: linear-gradient(180deg, #f7fbf1, #eff6e7);
  pointer-events: none;
}

/* 一行小标题：说清「下面这块是落点、落到素材库的图片柜」。 */
.st-drop-h {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 9px;
  color: var(--a-mute);
}

.st-drop-h > s {
  margin-left: auto;
  min-width: 0;
  overflow: hidden;
  font-family: var(--mono);
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
  color: #6c7a5e;
}

.st-drop-ic {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: #cfe6b8;
  box-shadow: inset 0 0 0 1px #b6d592;
}

/* 进度条与柜子叠在这一格里。 */
.st-drop-mid {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
}

/* 进度条：文件名 · 下载中 ·——— 一条 6px 的槽，里面的青柠条从 0 长到 100%。 */
.st-progress {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  gap: 8px;
  width: min(430px, 78%);
  margin: 0;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid #dbe7cf;
  background: #fff;
  box-shadow: 0 14px 30px -24px rgba(11, 40, 18, 0.5);
  font-size: 9.5px;
  color: var(--a-mute);
}

.st-pname {
  font-family: var(--mono);
  text-decoration: none;
  color: var(--a-soft);
}

.st-progress em {
  font-style: normal;
  white-space: nowrap;
}

/* 「已完成」这一份在 s3 换上来：进度走完不能还写着「下载中」，
   那是同一处不严谨的另一半。 */
.st-progress b {
  display: none;
  font-weight: 600;
  white-space: nowrap;
  color: #2f6b18;
}

.st-pbar {
  flex: 1 1 auto;
  height: 6px;
  border-radius: 999px;
  background: #eaeee4;
  overflow: hidden;
}

.st-pbar i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--a-lime), var(--a-lime-deep));
}

/* 文件夹：透明底、居中、只留真机那四层 PNG 与名字 / 计数。 */
.st-folder-wrap {
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  padding: 4px 14px;
  border-radius: 14px;
}

.st-folder {
  --art: 64px;
  padding: 0;
}

/* 飞进来的那一枚：起点 = 被点那张卡的中心，终点 = 柜子的**张口**
   （都由 `measureStock()` 量）。 */
.st-chip {
  position: absolute;
  left: var(--st-x, 0);
  top: var(--st-y, 0);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 7px;
  border-radius: 7px;
  border: 1px solid #d9e6c8;
  background: #fff;
  box-shadow: 0 10px 18px -12px rgba(11, 40, 18, 0.5);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.st-chip b {
  padding: 1px 4px;
  border-radius: 3px;
  background: #4a8fdc;
  font-family: var(--mono);
  font-size: 7.5px;
  font-weight: 500;
  color: #fff;
}

.st-chip s {
  text-decoration: none;
  font-family: var(--mono);
  font-size: 8.5px;
  color: #3d4338;
}

.sf-toast {
  position: absolute;
  right: 10px;
  bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 6px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid #d9e6c8;
  box-shadow: 0 12px 24px -18px rgba(11, 40, 18, 0.5);
  font-size: 10px;
  color: var(--a-ink);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.sf-toast-ic {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--a-lime-deep);
}

/* 演（第五十六版，四步）：s1 关键词打进去 → s2 点第一张的「下载」、进度条 0→100%
   → s3 进度变成「已完成」、进度条让位、柜子出现、那枚文件**一边缩小一边沿弧线
   飞进柜口** → s4 柜子吞下它：纸弹出来、计数 128 → 129、卡片按钮换成「已下载」、
   右下弹提示。

   **八张图从头到尾不消失**（第四十八版定的规矩）：图片一直在上两行，
   进度、飞行、柜子都在它们下面的那一块里。 */

.screen[data-play='stock'].s1 .st-kw-ph {
  display: none;
}

.screen[data-play='stock'].s1 .st-kwtext {
  display: inline;
}

/* s2 · 点第一张的「下载」：按钮换字、卡片亮一圈。 */
.screen[data-play='stock'].s2 .st-card:first-child {
  border-color: #a8d67c;
  box-shadow: 0 0 0 3px rgba(159, 232, 112, 0.22);
}

.screen[data-play='stock'].s2 .st-card:first-child .st-dl {
  background: var(--a-lime);
  color: #1e2b12;
}

.screen[data-play='stock'].s2 .st-card:first-child .st-dl i {
  display: none;
}

.screen[data-play='stock'].s2 .st-card:first-child .st-dl s {
  display: inline;
}

/* s2 · 进度条出来，槽里的青柠条 1.2s 走满。 */
html.js .screen[data-play='stock'] .st-progress {
  opacity: 0;
}

html.js .screen[data-play='stock'] .st-folder-wrap {
  opacity: 0;
}

/* 选择器都要带 `html.js`：上面那两条初态是 `html.js .screen[...] .st-*`，
   少写前缀（2 类 + 1 属性）压不过它（3 类 + 1 属性）——结果是进度条永远不出现。 */
html.js .screen[data-play='stock'].s2 .st-progress,
html.js .screen[data-play='stock'].s3 .st-progress {
  opacity: 1;
}

.screen[data-play='stock'].s2 .st-pbar i {
  animation: stFill 1.2s linear forwards;
}

@keyframes stFill {
  to {
    width: 100%;
  }
}

/* s3 · 进度走满 → 文案换成「已完成」→ 进度条让位、柜子出现 → 那枚文件起飞。 */
.screen[data-play='stock'].s3 .st-progress em {
  display: none;
}

.screen[data-play='stock'].s3 .st-progress b {
  display: inline;
}

html.js .screen[data-play='stock'].s3 .st-folder-wrap {
  opacity: 1;
}

/* 「已完成」停 0.5 秒给人看清，再让位给柜子。 */
@media (prefers-reduced-motion: no-preference) {
  html.js .screen[data-play='stock'].s3 .st-progress {
    animation: stProgOut 0.26s ease 0.5s forwards;
  }

  html.js .screen[data-play='stock'].s3 .st-folder-wrap {
    animation: stDropIn 0.3s cubic-bezier(0.34, 1.2, 0.64, 1) 0.4s both;
  }

  /* 0.65s 起飞、0.95s 飞完 —— 正好在 s4（s3 之后 1.6s）落下。 */
  .screen[data-play='stock'].s3 .st-chip {
    animation: stFly 0.95s cubic-bezier(0.5, 0.05, 0.4, 1) 0.65s both;
  }
}

@keyframes stProgOut {
  to {
    opacity: 0;
  }
}

@keyframes stDropIn {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.94);
  }
}

/*
  缩小飞入（第五十六版，照真机）。

  原来是一段「匀着平移 + 到最后才缩小」：x/y 一起线性走到终点、scale 到 0.62，
  看起来很平——像把贴纸滑过去。真机上那一下是两个动作叠着：
    · 先被「拎起来」——抬 12px、缩一点点；
    · 再加速落下——后半段才猛地缩小，落进柜口那一刻已经只有柜子张口那么大。

  所以这里按百分比把位移和缩放拆开写：38% 时只走完三成路程、缩到 0.86；
  76% 时走完八成、缩到 0.5；到 100% 才缩到 0.34 并消失。
  终点是柜子的张口（不是柜子中心），由 `measureStock()` 量。
*/
@keyframes stFly {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.05);
  }

  /* 拎起来 */
  10% {
    opacity: 1;
    transform: translate(-50%, calc(-50% - 12px)) scale(1);
  }

  38% {
    opacity: 1;
    transform: translate(calc(-50% + var(--st-dx, 0px) * 0.34), calc(-50% + var(--st-dy, 0px) * 0.16 - 12px))
      scale(0.86);
  }

  76% {
    opacity: 1;
    transform: translate(calc(-50% + var(--st-dx, 0px) * 0.82), calc(-50% + var(--st-dy, 0px) * 0.76))
      scale(0.5);
  }

  94% {
    opacity: 0.9;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--st-dx, 0px)), calc(-50% + var(--st-dy, 0px))) scale(0.34);
  }
}

/* s4 · 落地：柜子把文件吞进去——纸弹出来、柜子弹一下、计数换掉、
   卡片按钮从「下载中」变「已下载」、右下弹提示。 */
.screen[data-play='stock'].s4 .st-folder .asv-paper1,
.screen[data-play='stock'].s4 .st-folder .asv-paper2 {
  animation: asvPaperPop 0.5s ease;
}

.screen[data-play='stock'].s4 .st-folder .asv-n i:first-child {
  opacity: 0;
}

.screen[data-play='stock'].s4 .st-folder .asv-n i:nth-child(2) {
  opacity: 1;
}

.screen[data-play='stock'].s4 .st-folder {
  animation: stFoldBump 0.46s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes stFoldBump {
  35% {
    transform: translateY(-3px) scale(1.14);
  }
}

.screen[data-play='stock'].s4 .sf-toast {
  opacity: 1;
  transform: none;
}

/* 落地之后按钮换「已下载」：`.s4` 排在 `.s2` 后面，同权重靠后生效。 */
.screen[data-play='stock'].s4 .st-card:first-child .st-dl s {
  display: none;
}

.screen[data-play='stock'].s4 .st-card:first-child .st-dl u {
  display: inline;
}

.screen[data-play='stock'].s4 .st-card:first-child .st-dl {
  background: #fff;
  color: #2f3a26;
}

@media (prefers-reduced-motion: reduce) {
  /* 图片本来就在（没有入场动画），所以这里只需要关掉飞行芯片。 */
  .st-chip {
    display: none;
  }
}

/* 找素材：窄屏（<=560）四列会把卡片压成 73 × 138 的竖条——那才是真的「拉伸形变」。
   两列四行，卡片回到 3 : 2 左右的正常照片比例，行高仍由 `.sf` 的份额决定。 */
@media (max-width: 560px) {
  #stock .st-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .st-chip b {
    display: none;
  }
}

/* ---------------------------- 启动台 ---------------------------- */

/* 容器叫 `.la`，不是 `.ln`：`.ln` 已经被学习中心那一屏占了（`.ln-main` /
   `.ln-note` / `.ln-tree`）。两处同名会让那条 `display:grid; gap:10px`
   落到学习中心的阅读区上。 */
.la {
  display: grid;
  gap: 10px;
}

.ln-top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.ln-top > b {
  font-size: 13px;
  font-weight: 700;
}

.ln-top > em {
  font-style: normal;
  font-size: 10.5px;
  color: var(--a-mute);
}

.ln-views {
  margin-left: auto;
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border-radius: 8px;
  border: 1px solid var(--a-line);
  background: #f4f6ef;
}

.ln-views s {
  padding: 2px 9px;
  border-radius: 6px;
  font-size: 10px;
  text-decoration: none;
  color: var(--a-mute);
}

.ln-views s.is-on {
  background: #fff;
  color: var(--a-ink);
  font-weight: 600;
}

.ln-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 10px;
  border: 1px solid var(--a-line);
  background: #fcfdf9;
}

.ln-q {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  min-width: 16px;
  font-size: 12px;
  color: var(--a-ink);
}

.ln-caret {
  width: 1.5px;
  height: 13px;
  background: var(--a-ink);
  animation: ln-blink 1.05s steps(1) infinite;
}

@keyframes ln-blink {
  50% {
    opacity: 0;
  }
}

.ln-hint {
  margin-left: auto;
  font-size: 10px;
  color: var(--a-mute);
}

.ln-refresh {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid var(--a-line);
  background: #fff;
  font-size: 11px;
  color: var(--a-soft);
}

.ln-body {
  display: grid;
  /* 图标墙 + 右侧程序坞。真机就是这两列（`LauncherPanel` 的 ASCII 图）：
     字母索引那一列只属于「分组」视图，矩阵视图没有它。 */
  grid-template-columns: minmax(0, 1fr) 84px;
  gap: 14px;
  align-items: start;
}

/* 矩阵视图：一整面等大的图标墙，七列（18 个应用 = 7 + 7 + 4）。
   这样横向铺满、图标之间距离一致，和 macOS 启动台一样——不是按字母分段的
   长条行。 */
.ln-wall {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px 4px;
}

/* 矩阵视图里不显示字母分段；`.ln-row` 用 `display: contents` 摊平，
   让图标直接成为 `.ln-wall` 的网格项（不用改 HTML 结构）。 */
.ln-g {
  display: none;
}

.ln-row {
  display: contents;
}

.ln-app {
  display: grid;
  justify-items: center;
  gap: 3px;
  padding: 5px 2px 4px;
  border-radius: 9px;
  border: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease,
    transform 0.25s ease, opacity 0.25s ease;
}

.ln-app > b {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 600;
  color: #3d4338;
}

/* 图标位：底色 + 首字母是兜底层，真图标用 `::after` 盖上去。
   这样**缺图时看到的是字母方块，不是破图标**——`background-image` 取不到
   文件时只是不画，不会留下一个「破图」标记。 */
.ln-ic {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 11px;
  background: var(--tint, #d7dbe0);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.ln-ic > b {
  font-size: 16px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.18);
}

.ln-ic::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: var(--ic);
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
}

/* 右侧程序坞：一块浮起来的圆角玻璃。 */
.ln-dock {
  padding: 8px 6px;
  border-radius: 12px;
  border: 1px solid var(--a-line);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 16px 30px -26px rgba(11, 40, 18, 0.6);
}

.ln-dock > p {
  margin: 0 0 6px;
  text-align: center;
  font-size: 9px;
  color: var(--a-mute);
}

.ln-dock ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  justify-items: center;
}

.ln-dock .ln-ic {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.ln-dock .ln-ic > b {
  font-size: 10px;
}

.ln-dock-add {
  padding: 4px 2px;
  border-radius: 7px;
  border: 1px dashed #cdd8c0;
  font-size: 8.5px;
  line-height: 1.4;
  text-align: center;
  color: var(--a-mute);
  transition: opacity 0.3s ease;
}

/* 拖进来的那个图标：s3 之前不在坞里。 */
.ln-dock-in {
  opacity: 0;
  transform: translateX(10px) scale(0.86);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* s1 · 打出两个字母 */
.screen[data-play='launcher'].s1 .ln-text::after {
  content: 'fi';
}

/* s2 · Finder 命中，并且**被拎起来**——准备往右边的常用条里拖：
   其余图标变淡、命中的那张抬高放大、右侧程序坞的虚线位亮起来。 */
.screen[data-play='launcher'].s2 .ln-text::after {
  content: 'finder';
}

.screen[data-play='launcher'].s2 .ln-app.is-hit {
  background: #f2f9ea;
  border-color: #cfe6b8;
  transform: translateY(-4px) scale(1.08);
  box-shadow: 0 12px 20px -14px rgba(11, 40, 18, 0.55);
  z-index: 2;
}

.screen[data-play='launcher'].s2 .ln-app:not(.is-hit) {
  opacity: 0.55;
}

/* 落点提示：程序坞加一圈绿边、虚线位填色——「放到这儿」。 */
.screen[data-play='launcher'].s2 .ln-dock {
  box-shadow: 0 0 0 2px #d9ecc4, 0 16px 30px -26px rgba(11, 40, 18, 0.6);
}

.screen[data-play='launcher'].s2 .ln-dock-add {
  border-color: #9fd06f;
  background: #f4fbea;
  color: #4c7a34;
}

/* s3 · 落进常用：坞里多出一格，虚线提示淡下去，墙上那张回位但仍标着「已固定」。 */
.screen[data-play='launcher'].s3 .ln-dock-in {
  opacity: 1;
  transform: none;
}

.screen[data-play='launcher'].s3 .ln-dock-add {
  opacity: 0.35;
}

.screen[data-play='launcher'].s3 .ln-app.is-hit {
  transform: none;
  background: #f7fbf1;
  border-color: #d9ecc4;
}

/* 窄屏：资源库与启动台都收一档（启动台图标墙保持四列，坞收成下方两排）。 */
@media (max-width: 1160px) {
  /* 三栏在 1024 这种宽度上会把「导入」挤到 180px，文件名全被省略号吃掉。
     退成两栏：左边柜子，右边上下叠「导入」与「找资源」。 */
  .asv-body {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
  }

  .asv-lib {
    grid-row: span 2;
  }

  .asv-stage {
    height: 196px;
  }
}

@media (max-width: 720px) {
  .asv-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .asv-lib {
    grid-row: auto;
  }

  .ln-body {
    /* 窄屏：图标墙收成五列，程序坞落到墙下面横排（真机窄窗也是这个退法）。 */
    grid-template-columns: minmax(0, 1fr);
  }

  .ln-wall {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .ln-dock ul {
    grid-auto-flow: column;
    justify-content: start;
  }
}

/* 窄屏：便签两栏叠起来，AI 文档助手两列合成一列，站点卡片与窗口上下排。 */
@media (max-width: 720px) {
  .nt {
    grid-template-columns: minmax(0, 1fr);
  }

  .si-body {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   第五十五版（2026-12-23）：多出来的高度交给内容，不再把演示块挪到中间

   第五十一版把 `.fake` 拉满一屏，然后用 `align-content: center` 把演示内容
   摆在中间——卡片长高了，内容还是原来那么大，只是上下各多一条空带。用户原话：
   「我让你调整，是让多的空间利用起来，不是把显示居中」「你就不能让网站显示全吗」。

   这一节按「哪一块该长高」逐屏指定：根块长满卡片，里面那块舞台 / 列表 / 面板
   跟着 `1fr` 长大。`.fake` 的 `align-content` 已在 `app.css` 改成 `stretch`。

   例外：03 灵动岛这一屏的高度是**故意预留**的（收起时下方留白、页脚不动，
   2026-12-21 用户明确要求过），所以它反向固定成 `align-content: start`。
   ══════════════════════════════════════════════════════════════════════════ */

/* 03 灵动岛：预留高度不动，只把内容贴回顶部（不居中）。 */
#island .fake {
  align-content: start;
}

/* 02 计划：日程那一块长高，行高按内容（像真机面板：面板占满、行还在顶部排）。 */
.screen[data-play='plans'] .fake > .pl {
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

/* 行不能被拉成高个儿空盒：159px 一格、里面只有一行字，看着像坏了。 */
.screen[data-play='plans'] .pl-list {
  align-content: start;
}

/* 04 工作空间：切栏那一排按内容，下面的分栏面板长满。 */
.screen[data-play='wk'] .fake > .wk {
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
}

.screen[data-play='wk'] .wk-split {
  height: auto;
}

/* 05 信息中心：轮播长满卡片（选项卡按内容、轨道吃剩下的高度）。 */
#info .fake {
  grid-template-rows: minmax(0, 1fr);
}

#info .inf,
#info .fd {
  height: 100%;
}

/* 06 项目：项目卡按内容，下面的任务树长满。 */
.screen[data-play='projects'] .pj {
  height: 100%;
  grid-template-rows: auto auto minmax(0, 1fr);
}

/* 07 文档 / 09 学习 / 10 查资料 / 11 素材 / 12 文件 / 15 便签：
   两栏阅读版式——两栏一起长满卡片，内容仍从顶部排。 */
.screen[data-play='docs'] .dc,
.screen[data-play='learn'] .ln,
.screen[data-play='research'] .rs,
.screen[data-play='assets'] .asv,
.screen[data-play='files'] .fs,
.screen[data-play='notes'] .nt {
  height: 100%;
}

/* 11 素材：顶部工具条按内容，下面的柜子长满。 */
.screen[data-play='assets'] .asv {
  grid-template-rows: auto minmax(0, 1fr);
}

/* 14 找素材：搜索条按内容，结果墙与下载落点按 2 : 1 分掉余量
   （2026-12-23 第五十六版：落点占窗口下 1/3）。

   这一页必须一屏装下：结果格与落点都是按份数分的，只要有一处「最小高度」
   比余量大，整页就会把页脚顶下去（实测多出 95px）。所以这一页允许缩到
   可视高度以内，由 `.sf` 的 2fr / 1fr 自己决定两块各拿多少。 */
html.js main#main > section#stock.is-page-active {
  min-height: 0;
}

/* 演示卡自己也必须能被压住：flex 项的默认 `min-height: auto` 会撑到内容高
   （`.sf` 那个 `height: 100%` 再反过来按内容算），两下一夹整页就多出 95px。 */
#stock .fake {
  min-height: 0;
}

#stock .sf {
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(0, 2fr) minmax(0, 1fr);
}

/* 卡片锁了比例之后，结果格这一块可能比「两张卡 + 间隙」高一点（窄窗口下更明显）。
   多出来的高度竖着均分，照片就从上下各留一点白，而不是被拉长填满。 */
#stock .st-grid {
  align-content: center;
  grid-auto-rows: auto;
}

#stock .st-grid {
  grid-auto-rows: minmax(0, 1fr);
}

/* 13 AI 助手：对话那一栏长满，气泡仍从顶部排。 */
.screen[data-play='agent'] .agx {
  height: 100%;
}

/* 16 工作流：AI 输入与已保存横条按内容、画布吃掉多出来的高度、运行预览贴底。 */
.screen[data-play='flow'] .fl {
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr) auto;
}

/* 17 启动台：搜索条按内容，图标墙长满。 */
.screen[data-play='launcher'] .la {
  height: 100%;
  grid-template-rows: auto auto minmax(0, 1fr);
}

.screen[data-play='launcher'] .ln-body {
  height: auto;
}

/* 18 设置：整块长满，卡片本身仍按内容高（macOS 设置里那几张卡也是这么长的）。 */
.screen[data-play='settings'] .se {
  height: 100%;
  align-content: start;
  align-items: start;
}

/* 19 AI 文档助手：上下两块输入 / 结果一起分掉多出来的高度。 */
.screen[data-play='aidoc'] .adc {
  height: 100%;
}

/* 16 站点：窗口长高——整张首页差不多能看全（原来固定 276px，只露出一条）。 */
@media (min-width: 721px) {
  .screen[data-play='site'] .si {
    height: 100%;
    display: flex;
    flex-direction: column;
  }

  .screen[data-play='site'] .si-body {
    flex: 1 1 auto;
    min-height: 0;
  }

  .screen[data-play='site'] .si-stage {
    height: auto;
  }
}

/* 20 截图：中间那张图长满卡片（行的比例本来就是 auto / 1fr / auto）。 */
.screen[data-play='shot'] .so {
  height: 100%;
}

/* 21 桌面宠物：那块「桌面」长满卡片。 */
.screen[data-play='pet'] .pet-stage {
  height: 100%;
}

/* ══════════════════════════════════════════════════════════════════════════
   第五十六版：逐屏把「空带」换成内容或等比放大的尺寸

   用户原话：「每页内容，不要单纯把「居中」改成「撑满」，你这样会导致拉伸形变，
   我需要的是你丰富内容（比如原来只能显示2行的空间，现在空间足了，你显示3行），
   或者调整尺寸（不调整数量，等比例放大，前提是风格不变，大小格式统一）」。

   所以这一节不做「height: 100%」这种粗暴拉伸，只做两件事：
     · 有列表 / 栅格的页：把**元素本身**放大到刚好填满，数量一个不动；
     · 有明确落点的页：把余量交给本该大的那一块（拖放区、图标墙）。
   共享的文字尺寸（正文 13、小字 9.5~10.5）一个都没动——放大只发生在
   图标、柜子、卡片这类**这一页独有**的元素上，跨页的大小关系不变。
   ══════════════════════════════════════════════════════════════════════════ */

/* 10 素材：左边六个柜子从 72 放大到 128（真机就是 3 × 2，数量一个不动），
   右栏把余量交给拖放区——拖放区本来就该是一大块，比底下留一条白带更像真机。 */
#assets .asv-f {
  --art: 128px;
}

#assets .asv-lib {
  display: flex;
  flex-direction: column;
}

#assets .asv-fs {
  flex: 1 1 auto;
  align-content: center;
}

#assets .asv-imp {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

#assets .asv-drop {
  align-content: center;
}

/* 10 素材：柜子在窄屏上不能顶出卡片（128 只是大屏那个值）。 */
@media (max-width: 1080px) {
  #assets .asv-f {
    --art: 96px;
  }
}

@media (max-width: 720px) {
  #assets .asv-f {
    --art: 68px;
  }
}

/* 14 启动台：图标从 46 放大到 62，并且**一行一行均分整面墙**的高度——
   真机启动台里那 18 个图标本来就是铺满整屏的，不是挤在顶上一条。 */
#launcher .ln-body {
  align-items: stretch;
}

#launcher .ln-wall {
  height: 100%;
  grid-auto-rows: minmax(0, 1fr);
}

#launcher .ln-app {
  align-content: center;
  padding: 4px 2px;
}

#launcher .ln-ic {
  width: 76px;
  height: 76px;
  border-radius: 18px;
}

#launcher .ln-ic > b {
  font-size: 27px;
}

/* 右侧那块「常用」程序坞保持顶部对齐：跟着拉满会把 5 个图标摊开成一竖条。 */
#launcher .ln-dock {
  align-self: start;
}

@media (max-width: 1080px) {
  #launcher .ln-ic {
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  #launcher .ln-ic > b {
    font-size: 17px;
  }
}

