/* ==========================================================================
   情绪急救工具箱 · 五星版（2026-10-13 · R46）
   --------------------------------------------------------------------------
   设计约束（都来自用户需求，改样式时请守住）：
   1) 全部颜色走 :root 主题变量（--surface/--text/--primary…），
      不写死色号 —— 深色模式下必须自动可用，深夜崩溃时不刺眼。
   2) 认知负荷极低：每屏只有一个动作、一句 ≤8 字指令。
      按钮尽量大（≥44px 点按区），因为用户此刻手指可能是抖的。
   3) 动画只做「呼吸感」的缩放/明暗，不做位移或闪烁 ——
      前庭敏感的人在焦虑时会被大幅运动晃到。
   ========================================================================== */

.tb-overlay {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(18, 14, 10, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.tb-overlay.hidden { display: none; }

.tb-panel {
  position: relative;
  width: 100%;
  max-width: 430px;
  max-height: 94vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 20px 16px 24px;
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.35);
}

.tb-x {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--text-3);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
}
.tb-x:active { background: var(--surface-2); }

.tb-stage { display: block; }
.tb-stage.hidden { display: none; }

/* ---------- 舞台 1：3 秒快选 ---------- */
.tb-pick-title {
  margin: 10px 0 4px;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.tb-pick-sub {
  margin: 0 0 18px;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}
.tb-pick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.tb-pick {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 6px;
  border: 1.5px solid var(--border);
  border-radius: 18px;
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.2s ease;
}
.tb-pick:active {
  transform: scale(0.96);
  border-color: var(--primary);
}
.tb-pick-emoji { font-size: 38px; line-height: 1; }
.tb-pick-label { font-size: 14px; color: var(--text-2); }

/* ---------- 舞台 2：工具说明 ---------- */
.tb-tool-emoji {
  margin: 18px 0 6px;
  text-align: center;
  font-size: 44px;
  line-height: 1;
}
.tb-tool-name {
  text-align: center;
  font-size: 22px;
  font-weight: 700;
}
.tb-promise {
  margin: 14px 6px 8px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--tint-warn-bg);
  color: var(--tint-warn-fg);
  font-size: 15px;
  line-height: 1.7;
  text-align: center;
}
/* ⭐ "怎么做"：原来 intro 只讲"为什么"（promise），不讲"怎么操作"。
   补一句 ≤12 字的操作提示，用户一进来就知道手该干嘛。 */
.tb-how {
  margin: 0 6px 18px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
}
.tb-primary {
  display: block;
  width: 100%;
  min-height: 52px;
  border: none;
  border-radius: 14px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}
.tb-primary:active { background: var(--primary-dark); }

.tb-ghost {
  display: block;
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  background: transparent;
  color: var(--text-2);
  font-size: 15px;
  cursor: pointer;
}
.tb-ghost:active { background: var(--surface-2); }

.tb-prefs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 16px 0 0;
}
.tb-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--text-3);
  font-size: 14px;
  cursor: pointer;
}
.tb-chip.on {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--tint-warn-bg);
}
.tb-chip.off { opacity: 0.55; }

.tb-hint {
  margin: 12px 4px 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-3);
  text-align: center;
}
.tb-hint:empty { display: none; }

.tb-link {
  display: block;
  width: 100%;
  margin-top: 14px;
  border: none;
  background: transparent;
  color: var(--text-3);
  font-size: 14px;
  text-decoration: underline;
  cursor: pointer;
}

/* ---------- 舞台 3：引导 ---------- */
.tb-progress {
  height: 5px;
  margin: 10px 2px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  overflow: hidden;
}
.tb-progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--primary);
  transition: width 0.5s ease;
}
.tb-round {
  text-align: center;
  font-size: 12.5px;
  color: var(--text-3);
  min-height: 18px;
}

/* ⚠️ 原来写死 height:230px，心算工具的「题目+输入框+4行键盘+提示」整体约 360px，
   被 flex 居中后从盒子里上下溢出、盖住下方的「吸气/够了」（用户反馈"算数表格超了"）。
   改成 min-height + 自动增高，内容高就让盒子跟着长，面板自己滚动。 */
.tb-visual {
  position: relative;
  min-height: 230px;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.tb-step {
  margin: 4px 0 6px;
  text-align: center;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 1px;
  min-height: 38px;
}

/* ⭐ 通用倒计时环：无振动（网页/iOS/桌面）时，节奏就靠它 + 数字。
   所有走节拍引擎的工具，每一步都会在这里逐秒倒数 + 环填充，
   不依赖手机振动也能清楚知道"还要几秒、现在该干嘛"。 */
.tb-countdown {
  position: relative;
  width: 62px;
  height: 62px;
  margin: 10px auto 2px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
  color: var(--text);
  background: conic-gradient(var(--primary) 0%, var(--surface-2) 0%);
  transition: background 0.4s linear;
}
.tb-countdown.hidden { display: none; }
.tb-countdown.ph-hold { background: conic-gradient(var(--amber) 0%, var(--surface-2) 0%); }
.tb-countdown.ph-exhale { color: var(--text-2); }
.tb-countdown.subtle { font-size: 20px; font-weight: 700; color: var(--text-3); }
.tb-countdown .tb-cd-num { position: relative; z-index: 1; }
/* 环内的留白圈，让数字在彩色环里看得清 */
.tb-countdown::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--surface);
}

/* 呼吸圆圈：只做缩放，不位移 */
.tb-circle {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, var(--primary), var(--primary-dark));
  opacity: 0.92;
  transform: scale(1);
  transition: transform 1s ease-in-out, opacity 1s ease;
  will-change: transform;
}
.tb-circle.hold { opacity: 1; }
/* 呼吸相位用颜色再"说"一遍（无振动时尤其重要）：吸=主色、屏=琥珀、呼=青绿 */
.tb-circle.ph-inhale { background: radial-gradient(circle at 50% 40%, var(--primary), var(--primary-dark)); }
.tb-circle.ph-hold { background: radial-gradient(circle at 50% 40%, var(--amber), var(--primary-dark)); }
.tb-circle.ph-exhale { background: radial-gradient(circle at 50% 40%, var(--teal), var(--primary-dark)); }

/* 蝴蝶拍：左右两个肩垫交替亮起 */
.tb-pads {
  display: flex;
  align-items: center;
  gap: 34px;
}
.tb-pad {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: var(--text-3);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.tb-pad.on {
  transform: scale(1.16);
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

/* 54321：大数字 + 慢脉冲 */
.tb-count-wrap { text-align: center; }
.tb-count {
  font-size: 92px;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  animation: tbPulse 4s ease-in-out infinite;
}
.tb-count-sense { margin-top: 10px; font-size: 18px; color: var(--text-2); }
@keyframes tbPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50%      { transform: scale(1.09); opacity: 1; }
}

/* 调色板：只在这里写色号（属性里一律走 var()，深色模式才可控） */
:root {
  --tb-blue: #3b82f6;
  --tb-green: #1d9e75;
  --tb-red: #d23f3f;
  --tb-yellow: #ba7517;
}
@media (prefers-color-scheme: dark) {
  :root {
    --tb-blue: #6ba4ff;
    --tb-green: #35b98d;
    --tb-red: #ef6a6a;
    --tb-yellow: #e0a13f;
  }
}

/* 柔和光球：自我安抚语 / 安全岛 / 身体扫描 共用 */
.tb-orb {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%,
              var(--primary) 0%, var(--primary-dark) 62%, transparent 78%);
  opacity: 0.55;
  animation: tbBreathe 9s ease-in-out infinite;
}
.tb-orb.tense {
  background: radial-gradient(circle at 50% 42%,
              var(--amber) 0%, var(--primary-dark) 62%, transparent 78%);
  opacity: 0.85;
}
/* 冷刺激：换成冷色调，视觉上就先"降温"了 */
.tb-orb.cold {
  background: radial-gradient(circle at 50% 42%,
              var(--tb-blue) 0%, var(--tb-blue) 58%, transparent 78%);
  opacity: 0.5;
}
@keyframes tbBreathe {
  0%, 100% { transform: scale(0.86); }
  50%      { transform: scale(1.1); }
}

/* 哼鸣：声带在振，圆也跟着轻微抖动 —— 视觉上"看见"那声哼 */
.tb-circle.hum {
  animation: tbHum 0.28s linear infinite;
}
@keyframes tbHum {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.35); }
}

/* 思维刹车：心算输入 */
.tb-math { width: 100%; text-align: center; }
.tb-math-q {
  font-size: clamp(26px, 8.5vw, 40px);
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text);
  word-break: keep-all;
  white-space: nowrap;
}
.tb-math-input {
  display: block;
  width: 150px;
  margin: 16px auto 12px;
  min-height: 54px;
  border: 2px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 28px;
  font-weight: 700;
  text-align: center;
}
.tb-math-input:focus { outline: none; border-color: var(--primary); }
.tb-math-keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 280px;
  margin: 0 auto;
}
.tb-key {
  min-height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
}
.tb-key:active { background: var(--primary); color: var(--on-primary); }
.tb-key.wide { grid-column: span 2; }
.tb-math-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-3);
  min-height: 18px;
}

/* ---------- 舞台 4：反馈滑条 ---------- */
.tb-feed-q {
  margin: 22px 0 20px;
  text-align: center;
  font-size: 19px;
  font-weight: 700;
}
.tb-slider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 4px 8px;
}
.tb-slider > span { font-size: 26px; line-height: 1; }
.tb-slider input[type="range"] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.tb-slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--surface);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  cursor: pointer;
}
.tb-slider input[type="range"]::-moz-range-thumb {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--surface);
  cursor: pointer;
}
.tb-feed-tip {
  margin: 6px 0 20px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-3);
  min-height: 20px;
}

/* ---------- 舞台 5：结果 ---------- */
.tb-done-emoji {
  margin: 16px 0 8px;
  text-align: center;
  font-size: 46px;
  line-height: 1;
}
.tb-done-title {
  text-align: center;
  font-size: 20px;
  font-weight: 700;
}
.tb-done-sub {
  margin: 12px 6px 20px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--text-2);
  text-align: center;
}
.tb-done-actions { display: flex; flex-direction: column; gap: 10px; }
.tb-tel {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 14px;
  background: var(--tint-ok-bg);
  color: var(--tint-ok-fg);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

/* 数颜色：一个色块，边找边对照 */
.tb-swatch {
  width: 74px;
  height: 74px;
  margin: 6px auto 0;
  border-radius: 50%;
  border: 3px solid var(--border);
  background: var(--surface-2);
}
.tb-swatch.b { background: var(--tb-blue);   border-color: var(--tb-blue); }
.tb-swatch.g { background: var(--tb-green);  border-color: var(--tb-green); }
.tb-swatch.r { background: var(--tb-red);    border-color: var(--tb-red); }
.tb-swatch.y { background: var(--tb-yellow); border-color: var(--tb-yellow); }

/* 说出情绪：6 个词，大按钮，点一下就够 */
.tb-words {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 4px 0 10px;
}
.tb-word {
  min-height: 62px;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 21px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.2s ease, background 0.2s ease;
}
.tb-word:active { transform: scale(0.96); }
.tb-word.on {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
}
/* 点过之后其他的收暗，避免继续挑来挑去 */
.tb-words.done .tb-word:not(.on) { opacity: 0.4; }

/* ---------- 工具列表（分组） ---------- */
.tb-list-title {
  margin: 14px 0 14px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
}
.tb-group { margin-bottom: 18px; }
.tb-group-title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 2px 9px;
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.tb-group-desc {
  font-size: 12px;
  font-weight: 400;
  color: var(--text-3);
}
.tb-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tb-list-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 10px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}
.tb-list-item:active { border-color: var(--primary); }
.tb-list-emoji { font-size: 20px; }
.tb-list-name { font-size: 14px; font-weight: 600; }
.tb-list-when { font-size: 12px; color: var(--text-3); }

/* ==========================================================================
   「我的」页（工具箱入口 + 情绪日志 + 徽章）
   ========================================================================== */
/* #mine 在 .container 之外（和 #schedule 一样），所以左右内边距要自己给，
   否则手机上内容会贴着屏幕边。 */
.mine-wrap { max-width: 672px; margin: 0 auto; padding: 16px 16px 40px; }
@media (max-width: 560px) {
  .mine-wrap { padding: 12px 12px 34px; }
}

.mine-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: var(--shadow);
}
.mine-card-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

/* 工具箱入口的样式都不在这里 —— R42 起入口是「我的」页功能宫格里的一格
   （.mp-grid / .mp-func，定义在 style.css），和别的格子一样大、放在「关于我们」前面。
   历史：R38 是大横幅（.tb-entry 渐变底 + 30px emoji + 胶囊按钮），R41 收成小方框
   （.mine-mini），R42 直接并进宫格 —— 那两套都删了，别再往这里加。 */

.mine-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}
.mine-row:last-child { border-bottom: none; }
.mine-row-label { font-size: 14.5px; color: var(--text-2); }
.mine-row-value { font-size: 15px; font-weight: 700; color: var(--text); }

.mine-daily {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mine-daily-text { font-size: 14.5px; line-height: 1.65; color: var(--text-2); }
.mine-daily-btn {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 16px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}
.mine-daily-btn[disabled] {
  background: var(--surface-2);
  color: var(--text-3);
  cursor: default;
}

/* ⚠️ 这里原来还有个 .mine-mini-btn（"次级小按钮（退出登录 / 去预约）"）——
   它是 R38「我的账号」卡的遗留，那张卡在 R40 已经删了、这两个按钮也搬去了 app.js，
   所以这条规则一直没人用，R42 一并删掉。别再按老注释加回来。 */

.mine-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.mine-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  min-width: 74px;
  padding: 10px 8px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 11.5px;
  color: var(--text-3);
}
.mine-badge.got {
  border-color: var(--gold-dim);
  background: var(--tint-ok-bg);
  color: var(--tint-ok-fg);
}
.mine-badge-icon { font-size: 22px; line-height: 1; }

.mine-log { display: flex; flex-direction: column; }
.mine-log-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13.5px;
}
.mine-log-row:last-child { border-bottom: none; }
.mine-log-left { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.mine-log-delta { font-weight: 700; }
.mine-log-delta.up { color: var(--tint-ok-fg); }
.mine-log-delta.down { color: var(--text-3); }
.mine-empty {
  padding: 16px 4px;
  font-size: 13.5px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.7;
}

/* .mine-account* 已随「我的账号」卡一起删除（账号区搬到 app.js 的 mineTop / mineRecords），
   别再加回来 —— 登录/退出只应该有**一处**实现，两处会各清各的 localStorage。 */

@media (max-width: 360px) {
  .tb-pick-emoji { font-size: 32px; }
  .tb-step { font-size: 22px; }
  .tb-count { font-size: 76px; }
}

/* ===================== R46 新增 8 个免权限工具 ===================== */
/* 全部走 :root 主题变量，深色模式自动可用；只做缩放/明暗，不做位移闪烁。 */

/* 触屏节律呼吸：一个可被按住/松开的大圆 */
.tb-touch {
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--on-primary, #fff);
  transition: transform 1.2s ease, background 1.2s ease;
  background: var(--primary);
}
.tb-touch.in { transform: scale(1.7); }
.tb-touch.ex { transform: scale(1); }
.tb-touch-tip { pointer-events: none; text-align: center; padding: 0 12px; opacity: 0.92; }

/* 双耳节拍 / 白噪音：通用选项按钮 */
.tb-bin-opt, .tb-noise-opt {
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-1); border-radius: 999px; padding: 10px 16px;
  font-size: 14px; cursor: pointer;
}
.tb-bin-opt:active, .tb-noise-opt:active { transform: scale(0.96); }

/* 双耳节拍 */
.tb-bin { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.tb-bin-cv { width: 100%; max-width: 280px; height: 110px; border-radius: 14px; background: var(--surface-2); }
.tb-bin-tip { font-size: 14px; color: var(--text-2); }

/* 白噪音 */
.tb-noise { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.tb-noise-tip { font-size: 14px; color: var(--text-2); }
.tb-noise-opts { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.tb-noise-vol { display: flex; align-items: center; gap: 8px; width: 80%; max-width: 260px; }
.tb-noise-vol input[type=range] { flex: 1; }

/* 灾难化急刹车（认知翻转） */
.tb-defuse { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.tb-defuse-tip { font-size: 14px; color: var(--text-2); text-align: center; }
.tb-defuse-in {
  width: 100%; max-width: 320px; min-height: 64px; resize: none;
  border: 1px solid var(--border); border-radius: 12px; padding: 12px;
  font-size: 15px; background: var(--surface); color: var(--text-1); font-family: inherit;
}
.tb-defuse-flip { margin-top: 2px; }
.tb-defuse-out { width: 100%; max-width: 320px; text-align: center; }
.tb-defuse-before, .tb-defuse-after { padding: 12px; border-radius: 12px; font-size: 15px; line-height: 1.6; }
.tb-defuse-before { background: var(--surface-2); color: var(--text-2); }
.tb-defuse-after { background: var(--primary); color: var(--on-primary, #fff); font-weight: 700; }
.tb-defuse-arrow { margin: 6px 0; color: var(--text-3); }

/* 散焦法（纯视觉） */
.tb-defocus { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tb-defocus-img {
  width: 180px; height: 180px; border-radius: 16px;
  background: radial-gradient(circle at 50% 50%, var(--primary) 0 18%, var(--surface-2) 60%);
  transition: filter 4s ease;
}
.tb-defocus-img.soft { filter: blur(10px); }
.tb-defocus-tip { font-size: 14px; color: var(--text-2); text-align: center; }

/* 感恩三件 */
.tb-grat { width: 100%; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.tb-grat-tip { font-size: 14px; color: var(--text-2); text-align: center; }
.tb-grat-row { display: flex; align-items: center; gap: 10px; }
.tb-grat-sun { font-size: 22px; width: 28px; text-align: center; }
.tb-grat-in {
  flex: 1; border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
  font-size: 15px; background: var(--surface); color: var(--text-1); font-family: inherit;
}
.tb-grat-done { margin-top: 4px; align-self: center; }

/* 未发送信 */
.tb-letter-wrap { width: 100%; display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
.tb-letter-in {
  width: 100%; min-height: 120px; resize: none; border: 1px solid var(--border);
  border-radius: 12px; padding: 12px; font-size: 15px; background: var(--surface);
  color: var(--text-1); font-family: inherit;
}
.tb-letter-wrap.sealed .tb-letter-in { opacity: 0.5; }
.tb-letter-seal { align-self: center; }

/* 快速泄压：复用 .tb-orb，加 squeeze / release 形变 */
.tb-orb { transition: transform 0.35s ease, background 0.35s ease; }
.tb-orb.squeeze { transform: scale(0.82); }
.tb-orb.release { animation: tb-release 0.6s ease; }
@keyframes tb-release {
  0% { transform: scale(0.82); }
  40% { transform: scale(1.18); }
  100% { transform: scale(1); }
}
