/* =============================================================================
 * recall-home.css — 「文件夹」首页样式（frontend-home 维护 · ROUND3 纯本机数据）
 * -----------------------------------------------------------------------------
 * 依据：docs/ROUND3_FIXES.md（本轮口径优先）
 * 约定：
 *  1. 设计 token 只作用域到自己的容器子树（#recall-home / .recall-home /
 *     自己创建到 body 的弹层与 toast），**绝不写全局 :root**，避免影响现有页面。
 *  2. 深色模式跟随现有机制 document.documentElement[data-theme="dark"]。
 *  3. 所有 class 使用 recall- 前缀；不复用/覆盖 .page/.tab/.sheet/.toast/.tiny/.switch。
 *  4. Android 10 WebView（Chrome 80）兼容：不用 :has、可选链、inset 简写，
 *     flex 布局不把 gap 作为唯一间距（用 margin），关键文字可换行不截断。
 *  5. 圆角/阴影/字号对齐 docs/design_reference.css。
 * ========================================================================== */

/* ---------------------------------------------------------------------------
 * 1. 设计 token（作用域覆盖，只影响本模块子树）
 * ------------------------------------------------------------------------ */
#recall-home,
.recall-home,
.recall-sheet-overlay,
.recall-toast {
  --bg: #f8f9fc;
  --surface: #ffffff;
  --surface-2: #f2f4f8;
  --surface-3: #ecf0f7;
  --ink: #202633;
  --sub: #758092;
  --muted: #a0a9b7;
  --line: #e8ebf0;
  --brand: #5179e8;
  --brand-light: #eef3ff;
  --violet: #9673e8;
  --mint: #21ab91;
  --shadow: 0 10px 35px rgba(34, 45, 66, .035);

  /* 模块内部辅助变量 */
  --recall-gutter: 23px;
  --recall-danger: #c14348;
  --recall-danger-bg: #fdecec;
  --recall-safe-bottom: env(safe-area-inset-bottom, 0px);
}

[data-theme="dark"] #recall-home,
[data-theme="dark"] .recall-home,
[data-theme="dark"] .recall-sheet-overlay,
[data-theme="dark"] .recall-toast {
  --bg: #11151d;
  --surface: #1b202b;
  --surface-2: #242b38;
  --surface-3: #2d3543;
  --ink: #f0f2f7;
  --sub: #a0aabd;
  --muted: #778498;
  --line: #313947;
  --brand: #91aaff;
  --brand-light: #293752;
  --violet: #bba0ff;
  --mint: #5bd5bc;
  --shadow: 0 10px 35px rgba(0, 0, 0, .13);

  --recall-danger: #ff9a9f;
  --recall-danger-bg: rgba(255, 125, 132, .15);
}

/* ---------------------------------------------------------------------------
 * 2. 容器与固定标题栏
 * ------------------------------------------------------------------------ */
#recall-home,
.recall-home {
  display: block;
  flex: 0 0 auto;          /* #page-history 是 flex column：不能被 flex-shrink 压缩，否则 sticky 头会失效 */
  width: 100%;
  max-width: 490px;
  margin: 0 auto;
  min-height: 100%;
  box-sizing: border-box;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC",
    "Microsoft YaHei", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  /* 底部导航 + 安全区留白（外壳也会设，二选一生效，值相同） */
  padding-bottom: calc(var(--nav-h, 67px) + var(--recall-safe-bottom) + 16px);
}

.recall-home *,
.recall-home *:before,
.recall-home *:after {
  box-sizing: border-box;
}

/* 多选态：给固定操作条再留出空间，最后一张卡片可滚到操作条上方 */
.recall-home.recall-selecting {
  padding-bottom: calc(var(--nav-h, 67px) + var(--recall-safe-bottom) + 92px);
}

/* 标题栏固定：sticky 相对 #page-history（真正的滚动容器）生效 */
.recall-header {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 22px var(--recall-gutter) 0;
  background: var(--bg);
}

/* 多选态：标题栏换成选择条 */
.recall-header--select {
  display: block;
  padding: 14px var(--recall-gutter) 10px;
}

.recall-selectbar {
  display: flex;
  align-items: center;
  min-height: 40px;
  width: 100%;
}

.recall-selectbar-btn {
  flex-shrink: 0;
  padding: 8px 12px;
  border: 0;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.recall-selectbar-btn:active { background: var(--surface-3); }

.recall-selectbar-count {
  flex: 1;
  min-width: 0;
  text-align: center;
  color: var(--sub);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recall-selectbar-right {
  display: flex;
  flex-shrink: 0;
}
.recall-selectbar-right .recall-selectbar-btn + .recall-selectbar-btn { margin-left: 8px; }

.recall-header-copy {
  min-width: 0;
  flex: 1;
  padding-right: 12px;
}

.recall-title {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.9px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.recall-subtitle {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--sub);
}

.recall-icon-btn {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  margin-top: 2px;
  border: 0;
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font: inherit;
  cursor: pointer;
  transition: transform .15s ease;
}
.recall-icon-btn:active { transform: scale(.94); }
.recall-icon-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

.recall-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.recall-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* 内容区：横向溢出阻挡放在这里（不能放在 #recall-home 上，否则 sticky 失效） */
.recall-home-body {
  padding: 0 var(--recall-gutter);
  overflow-x: hidden;
}

/* ---------------------------------------------------------------------------
 * 3. 搜索框
 * ------------------------------------------------------------------------ */
.recall-search {
  display: flex;
  align-items: center;
  height: 48px;
  margin: 23px 0 22px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--muted);
}

.recall-search-icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 10px;
  color: var(--muted);
}

.recall-search-input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  -webkit-appearance: none;
  appearance: none;
}
.recall-search-input::placeholder { color: var(--muted); }
.recall-search-input::-webkit-search-decoration,
.recall-search-input::-webkit-search-cancel-button,
.recall-search-input::-webkit-search-results-button,
.recall-search-input::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
  display: none;
}
.recall-search-input:disabled { color: var(--muted); }
.recall-search--disabled { opacity: .72; }

.recall-search-clear {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  margin-left: 8px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--sub);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.recall-search-clear .recall-icon { width: 15px; height: 15px; }

.recall-search-count {
  flex-shrink: 0;
  margin-left: 10px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------
 * 4. 区块标题 / 按钮
 * ------------------------------------------------------------------------ */
.recall-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 0 13px;
  min-height: 20px;
}

.recall-section-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .1px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.recall-section-hint {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow-wrap: anywhere;
}

.recall-section-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 10px;
}

.recall-btn-outline {
  margin-left: 10px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--sub);
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.recall-btn-outline:active { transform: scale(.97); }
.recall-btn-outline:disabled { opacity: .45; }

.recall-btn-soft {
  border: 0;
  border-radius: 13px;
  background: var(--brand-light);
  color: var(--brand);
  padding: 12px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.recall-btn-danger {
  border: 0;
  border-radius: 13px;
  background: var(--recall-danger-bg);
  color: var(--recall-danger);
  padding: 12px 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* ---------------------------------------------------------------------------
 * 5. 我的文件夹（2 列卡片）
 * ------------------------------------------------------------------------ */
.recall-folder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 12px;
  row-gap: 12px;
}

.recall-folder-card {
  position: relative;
  width: 100%;
  min-height: 127px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease;
}
.recall-folder-card:active { transform: scale(.985); }
.recall-folder-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.recall-folder-card:disabled { opacity: .55; cursor: default; }

.recall-folder-card--tile {
  min-height: 152px;
  background: linear-gradient(145deg, #eef2f9, #f5f7fc);
  border-color: #e8edf6;
}
.recall-folder-card--tile:before {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  top: 0;
  height: 3px;
  border-radius: 0 0 5px 5px;
  background: #a1aebf;
}
[data-theme="dark"] .recall-folder-card--tile {
  background: #202735;
  border-color: #313b4b;
}
[data-theme="dark"] .recall-folder-card--tile:before { background: #778ba8; }

.recall-folder-card--active {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand), var(--shadow);
}
.recall-folder-card--active .recall-folder-name { color: var(--brand); }

.recall-folder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--sub);
}

.recall-folder-icon {
  width: 43px;
  height: 43px;
  border-radius: 14px;
  background: var(--surface-2);
  color: #718099;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.recall-folder-icon .recall-icon { width: 23px; height: 23px; }
[data-theme="dark"] .recall-folder-icon { color: #9fb2cc; }
[data-theme="dark"] .recall-folder-card--tile .recall-folder-icon { background: #2d394b; }

.recall-folder-num {
  font-size: 21px;
  font-weight: 700;
  color: var(--sub);
  line-height: 1;
}

.recall-folder-name {
  margin-top: 17px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.recall-folder-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------------------------------------------------------------------------
 * 6. 记录列表（按日期分组）
 * ------------------------------------------------------------------------ */
.recall-record-list {
  display: flex;
  flex-direction: column;
}

.recall-date-label {
  margin: 12px 0 8px 2px;
  font-size: 12px;
  color: var(--muted);
}
.recall-record-list > .recall-date-label:first-child { margin-top: 2px; }

.recall-record-card {
  width: 100%;
  margin-bottom: 10px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.recall-record-card:active { transform: scale(.985); }
.recall-record-card:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* 多选态卡片 */
.recall-record-card--selected {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand), var(--shadow);
}
.recall-record-card--selecting:active { transform: none; }

.recall-record-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.recall-record-title {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: flex-start;
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.2px;
  color: var(--ink);
}

.recall-spark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  margin-right: 6px;
  color: var(--brand);
}
.recall-spark .recall-icon { width: 18px; height: 18px; }

.recall-record-title-text {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.recall-record-more {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin: -4px -6px 0 8px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--sub);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.recall-record-more:active { background: var(--surface-2); }

/* 多选勾选圈 */
.recall-record-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  margin: 1px 0 0 10px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.recall-record-check .recall-icon { width: 14px; height: 14px; }
.recall-record-check svg { stroke-width: 2.6; }
.recall-record-check--on {
  border-color: var(--brand);
  background: var(--brand);
}

.recall-record-desc {
  margin: 9px 0 14px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--sub);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.recall-record-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.recall-meta-item {
  display: inline-flex;
  align-items: center;
  margin-right: 12px;
  margin-bottom: 2px;
  min-width: 0;
}
.recall-meta-item .recall-icon {
  width: 15px;
  height: 15px;
  margin-right: 4px;
}
.recall-meta-item > span {
  overflow-wrap: anywhere;
}

/* 加载更多 */
.recall-load-more {
  width: 100%;
  margin-top: 4px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--sub);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.recall-load-more:active { background: var(--surface-2); }
.recall-load-more:disabled { opacity: .5; }

/* ---------------------------------------------------------------------------
 * 7. 多选底部固定操作条（删除 / 导出）
 *    放在 #recall-home 内部，层级高于底部导航、低于弹层
 * ------------------------------------------------------------------------ */
.recall-select-actions {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h, 67px) + var(--recall-safe-bottom) + 10px);
  z-index: 25;
  width: calc(100% - 24px);
  max-width: 466px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 12px 30px rgba(24, 32, 48, .14);
  transform: translateX(-50%);
}

.recall-select-actions-inner {
  display: flex;
}

.recall-select-action {
  flex: 1;
  min-width: 0;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.recall-select-action + .recall-select-action { margin-left: 8px; }
.recall-select-action:active { background: var(--surface-3); }
.recall-select-action:disabled { opacity: .45; cursor: default; }

.recall-select-action--danger {
  background: var(--recall-danger-bg);
  color: var(--recall-danger);
}
.recall-select-action--danger:active { background: var(--recall-danger-bg); }

/* ---------------------------------------------------------------------------
 * 8. 空态 / 骨架屏 / 页脚
 * ------------------------------------------------------------------------ */
.recall-empty {
  padding: 35px 16px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: var(--surface);
  text-align: center;
  line-height: 1.7;
  color: var(--muted);
}
.recall-empty-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 15px;
  background: var(--surface-2);
  color: var(--sub);
  display: flex;
  align-items: center;
  justify-content: center;
}
.recall-empty-icon .recall-icon { width: 24px; height: 24px; }
.recall-empty-title {
  margin-bottom: 5px;
  color: var(--sub);
  font-size: 14px;
  font-weight: 650;
}
.recall-empty-text {
  font-size: 12.5px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.recall-skeleton-wrap { padding-top: 4px; }
.recall-skeleton-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 12px;
  row-gap: 12px;
  margin-bottom: 16px;
}
.recall-skeleton-tile {
  min-height: 127px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: recall-skeleton-pulse 1.2s ease-in-out infinite;
}
.recall-skeleton-card {
  margin-bottom: 10px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.recall-skeleton-line {
  height: 12px;
  margin-bottom: 10px;
  border-radius: 6px;
  background: var(--surface-2);
  animation: recall-skeleton-pulse 1.2s ease-in-out infinite;
}
.recall-skeleton-line--title { width: 72%; height: 15px; }
.recall-skeleton-line--text { width: 94%; }
.recall-skeleton-line--meta { width: 46%; margin-bottom: 0; }
@keyframes recall-skeleton-pulse {
  0%, 100% { opacity: .55; }
  50% { opacity: 1; }
}

.recall-footer {
  padding: 22px 0 2px;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
}

/* ---------------------------------------------------------------------------
 * 9. 弹层（菜单 / 改名 / 确认 / 批量结果）
 * ------------------------------------------------------------------------ */
.recall-sheet-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15, 20, 32, .34);
}

.recall-sheet {
  width: 100%;
  max-width: 490px;
  padding: 22px 22px calc(24px + var(--recall-safe-bottom));
  border-radius: 25px 25px 0 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 -6px 30px rgba(0, 0, 0, .08);
  animation: recall-sheet-in .18s ease;
}
@keyframes recall-sheet-in {
  from { transform: translateY(14px); opacity: .6; }
  to { transform: translateY(0); opacity: 1; }
}

.recall-sheet-title {
  margin: 0 0 16px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.recall-sheet-options {
  display: flex;
  flex-direction: column;
}

.recall-sheet-option {
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 6px;
  padding: 14px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
}
.recall-sheet-option:active { background: var(--surface-3); }
.recall-sheet-option .recall-icon {
  width: 18px;
  height: 18px;
  margin-right: 10px;
  color: var(--sub);
}
.recall-sheet-option > span:last-child {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.recall-sheet-option--danger { color: var(--recall-danger); }
.recall-sheet-option--danger .recall-icon { color: var(--recall-danger); }

.recall-sheet-close {
  width: 100%;
  margin-top: 7px;
  padding: 15px;
  border: 0;
  background: transparent;
  color: var(--sub);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.recall-sheet-field { margin-bottom: 16px; }

.recall-sheet-input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: none;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 15px;
}
.recall-sheet-input:focus { border-color: var(--brand); }
.recall-sheet-input::placeholder { color: var(--muted); }

.recall-sheet-text {
  margin: 0 0 16px;
  color: var(--sub);
  font-size: 13px;
  line-height: 1.8;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.recall-sheet-actions { display: flex; }
.recall-sheet-actions > button {
  flex: 1;
  min-width: 0;
}
.recall-sheet-actions > button + button { margin-left: 9px; }

/* 批量结果 */
.recall-result-summary {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 13.5px;
  line-height: 1.7;
}

.recall-result-list {
  display: flex;
  flex-direction: column;
  max-height: 46vh;
  overflow-y: auto;
  margin-bottom: 8px;
}

.recall-result-row {
  padding: 10px 12px;
  margin-bottom: 6px;
  border-radius: 11px;
  background: var(--surface-2);
  font-size: 12.5px;
  line-height: 1.6;
}
.recall-result-row b {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  overflow-wrap: anywhere;
}
.recall-result-path {
  color: var(--sub);
  overflow-wrap: anywhere;
  word-break: break-all;
}

/* ---------------------------------------------------------------------------
 * 10. Toast
 * ------------------------------------------------------------------------ */
.recall-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h, 67px) + var(--recall-safe-bottom) + 24px);
  z-index: 80;
  max-width: calc(100% - 40px);
  padding: 11px 17px;
  border-radius: 12px;
  background: #292f3a;
  color: #ffffff;
  font-size: 12px;
  line-height: 1.6;
  box-shadow: 0 12px 25px rgba(0, 0, 0, .2);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity .2s ease, transform .2s ease;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.recall-toast--show {
  opacity: 1;
  transform: translate(-50%, 0);
}
/* 多选态：提示浮到固定操作条上方，避免遮挡「删除 / 导出」 */
.recall-toast--raised {
  bottom: calc(var(--nav-h, 67px) + var(--recall-safe-bottom) + 92px);
}
[data-theme="dark"] .recall-toast {
  background: #edf0f7;
  color: #232936;
}

/* ---------------------------------------------------------------------------
 * 11. 响应式 / 大屏 / 动效偏好
 * ------------------------------------------------------------------------ */
@media (max-width: 359px) {
  #recall-home,
  .recall-home {
    --recall-gutter: 16px;
  }
  .recall-title { font-size: 26px; }
  .recall-header { padding-top: 18px; }
  .recall-header--select { padding-top: 12px; }
  .recall-folder-grid,
  .recall-skeleton-grid { column-gap: 10px; row-gap: 10px; }
  .recall-folder-card { min-height: 118px; padding: 14px; }
  .recall-folder-card--tile { min-height: 140px; }
  .recall-record-card { padding: 16px; }
  .recall-search { padding: 0 12px; }
  .recall-search-count { display: none; }
  .recall-section-hint { font-size: 11px; }
  .recall-btn-outline { padding: 6px 9px; }
  .recall-selectbar-btn { padding: 7px 10px; font-size: 12px; }
  .recall-select-actions { width: calc(100% - 16px); }
}

@media (min-width: 600px) {
  .recall-sheet-overlay { align-items: center; }
  .recall-sheet {
    max-width: 430px;
    border-radius: 23px;
    padding-bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .recall-folder-card,
  .recall-record-card,
  .recall-icon-btn,
  .recall-sheet,
  .recall-toast,
  .recall-skeleton-tile,
  .recall-skeleton-line {
    animation: none !important;
    transition: none !important;
  }
}
