/* ============================================================
   达人备忘录 · V7.27 视觉刷新（纯外观层，可整文件删除回退）
   ------------------------------------------------------------
   规矩（这一层只做「看上去」的事）：
     · 只改颜色 / 圆角 / 阴影 / 字重 / 字号 / 背景 / 按压反馈
     · 不改 display、grid-template-columns、flex 方向、元素顺序、DOM
     · 不改任何 JS 逻辑；样式全部用变量 + 覆盖，删掉本文件即恢复原样
   色板：品牌色跟皮肤走（胡萝卜 #E85D4A / 樱花 #D9506F / 海盐 #2E77C9 / 葡萄 #6F52CC）
        语义色 琥珀 #F59E0B / 翡翠 #10B981 / 珊瑚 #EF4444 / 蓝 #2563EB
        底色 #F8FAFC / 卡片 #FFFFFF / 文字 #0F172A · #64748B
   ============================================================ */

/* ---------------- ① 色板：浅色 ---------------- */
html,
html[data-skin]{
  --bg: #F8FAFC;
  --bg-soft: #F1F5F9;
  --panel: #FFFFFF;
  --panel-2: #F8FAFC;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --text: #0F172A;
  --text-2: #64748B;
  --text-3: #94A3B8;

  /* 品牌：交回皮肤。--brand / --brand-strong / --brand-soft / --brand-rgb /
     --hero-a / --hero-b / --brand-grad-a|b 全部由 theme.css 的
     :root 与 [data-skin="…"] 提供（胡萝卜 · 樱花 · 海盐 · 葡萄）。
     这一层只派生「实心块」用色，不再固定色相 —— 换主题会真的换色。 */
  --brand-solid: var(--brand);
  --brand-solid-strong: var(--brand-strong);
  --on-brand: #FFFFFF;

  --blue: #2563EB;
  --blue-soft: #EFF6FF;
  --green: #10B981;
  --green-soft: #ECFDF5;
  --amber: #F59E0B;
  --amber-soft: #FFF7ED;
  --red: #EF4444;
  --red-soft: #FEF2F2;
  --purple: #7C3AED;
  --purple-soft: #F5F3FF;
  --gray: #94A3B8;
  --gray-soft: #F1F5F9;

  --r-sm: 12px;
  --r: 16px;
  --r-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(2,6,23,.04);
  --shadow: 0 4px 20px rgba(0,0,0,.04);
  --shadow-lg: 0 18px 44px rgba(15,23,42,.10);
}

/* ---------------- ① 色板：深色 ---------------- */
html[data-theme="dark"],
html[data-theme="dark"][data-skin]{
  --bg: #0B1120;
  --bg-soft: #162033;
  --panel: #111A2C;
  --panel-2: #162033;
  --line: #1E293B;
  --line-strong: #334155;
  --text: #E2E8F0;
  --text-2: #94A3B8;
  --text-3: #64748B;

  /* 深色：皮肤的 brand 多为提亮过的浅色，实心块要先压暗才压得住白字。
     压完仍然保留皮肤色相，不是一刀切回蓝。 */
  --brand-solid: color-mix(in srgb, var(--brand) 72%, #0B1120);
  --brand-solid-strong: color-mix(in srgb, var(--brand-strong) 72%, #0B1120);
  --on-brand: #FFFFFF;

  --green: #34D399;
  --green-soft: rgba(16,185,129,.16);
  --amber: #FBBF24;
  --amber-soft: rgba(245,158,11,.16);
  --red: #F87171;
  --red-soft: rgba(239,68,68,.16);
  --blue: #60A5FA;
  --blue-soft: rgba(59,130,246,.18);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow: 0 6px 24px rgba(0,0,0,.34);
  --shadow-lg: 0 20px 48px rgba(0,0,0,.55);
}

/* ---------------- ② 卡片：16px 圆角 + 弥散阴影 + 去边框 ---------------- */
.card,
.fold,
.agenda-item,
.order,
.cal-cell,
.skin-tile{
  border-radius: 16px !important;
}
.card{
  border-color: transparent !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
html[data-theme="dark"] .card{
  box-shadow: 0 0 0 1px var(--line), 0 8px 26px rgba(0,0,0,.36);
}
.card-head{ padding: 16px 16px 0; }
.card-body{ padding: 12px 16px 16px; }
.card-head h3{ font-size: 16px; font-weight: 600; letter-spacing: -.2px; }

/* 订单卡：阴影替代描边 */
.order{
  border-color: transparent !important;
  box-shadow: 0 4px 18px rgba(0,0,0,.045);
}
html[data-theme="dark"] .order{ box-shadow: 0 0 0 1px var(--line), 0 6px 20px rgba(0,0,0,.34); }
.order:hover{ box-shadow: 0 8px 26px rgba(15,23,42,.08); }

/* 顶部标题：20px 那档，手机上留一点余量不挤图标 */
.topbar-left h1{ font-size: 18px; font-weight: 800; }
.topbar{ border-bottom-color: color-mix(in srgb, var(--line) 60%, transparent); }

/* ---------------- ③ 概览卡：浅蓝渐变 + 大金额 + 橙色待收 ---------------- */
.hero{
  border-color: transparent !important;
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(var(--brand-rgb),.10) 0%, rgba(var(--brand-rgb),0) 58%),
    linear-gradient(158deg, var(--hero-a) 0%, #FFFFFF 62%) !important;
  box-shadow: 0 10px 30px -18px rgba(var(--brand-rgb),.45), 0 4px 20px rgba(0,0,0,.03);
}
html[data-theme="dark"] .hero{
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(var(--brand-rgb),.18) 0%, rgba(var(--brand-rgb),0) 58%),
    linear-gradient(158deg, #162033 0%, #111A2C 100%) !important;
}
/* 金额：放大 + 收字距。窄屏用 vw 兜底，免得 ¥1,234 把三列顶破 */
.hero .hero-metric .val{
  font-size: clamp(22px, 14px + 1.9vw, 38px) !important;
  font-weight: 800;
  letter-spacing: -1.1px;
  color: #0F172A;
}
html[data-theme="dark"] .hero .hero-metric .val{ color: #F8FAFC; }
.hero .hero-metric .val.warn{ color: var(--amber) !important; }
.hero .hero-metric .val.ok{ color: var(--green) !important; }
.hero .hero-metric .lbl{ font-size: 11.5px; letter-spacing: .1px; color: var(--text-2); }
/* 「本年」那三格也顺手提一档 */
.hero .hero-more b{ font-size: 15px; font-weight: 800; }
.hero .hero-more em{ font-size: 11px; }

/* 兔子水印：这一枚正好压在「设一个月度目标」那行字上（右下角），
   降到 12% 也只是从「脏印子」变成「淡脏印子」。氛围交给底栏那对耳朵，
   概览卡这块直接收掉，主视觉只剩数字。 */
.hero::after{ display: none !important; }

/* 进度条：加粗、纯蓝填充，去掉末端那枚小图形（跟新色板不搭） */
.hero-track{
  height: 10px !important;
  background: #E2E8F0 !important;
}
html[data-theme="dark"] .hero-track{ background: rgba(255,255,255,.10) !important; }
.hero-fill{ background: var(--brand-solid) !important; }
.hero-track::after{ display: none !important; }
.hero-goal-row strong{ color: var(--brand); font-weight: 800; }

/* ---------------- ④ 标签：色块底 + 深色字 ---------------- */
.tag{
  border-radius: 8px !important;
  padding: 2px 8px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  border: 0 !important;
}
/* 标签：蓝是语义色（不跟皮肤），品牌色那枚跟皮肤走 */
.tag.blue{ background: var(--blue-soft) !important; color: var(--blue) !important; }
.tag.brand{ background: var(--brand-soft) !important; color: var(--brand-strong) !important; }
.tag.amber{ background: #FFF7ED !important; color: #C2410C !important; }
.tag.green{ background: #ECFDF5 !important; color: #047857 !important; }
.tag.red{ background: #FEF2F2 !important; color: #B91C1C !important; }
.tag.gray{ background: #F1F5F9 !important; color: #475569 !important; }
html[data-theme="dark"] .tag.blue{ background: var(--blue-soft) !important; color: #93C5FD !important; }
html[data-theme="dark"] .tag.brand{ background: var(--brand-soft) !important; color: var(--brand-strong) !important; }
html[data-theme="dark"] .tag.amber{ background: rgba(245,158,11,.18) !important; color: #FCD34D !important; }
html[data-theme="dark"] .tag.green{ background: rgba(16,185,129,.18) !important; color: #6EE7B7 !important; }
html[data-theme="dark"] .tag.red{ background: rgba(239,68,68,.18) !important; color: #FCA5A5 !important; }
html[data-theme="dark"] .tag.gray{ background: rgba(148,163,184,.16) !important; color: #CBD5E1 !important; }

/* ---------------- ⑤ 按钮：三级 + 按压反馈 ---------------- */
.btn{
  border-radius: 12px;
  font-weight: 600;
  transition: transform .12s ease, background .15s, box-shadow .15s, border-color .15s;
}
.btn:active, .btn-sm:active, .btn-xs:active{ transform: scale(.98); }
.btn-primary{
  background: var(--brand-solid); border-color: var(--brand-solid); color: var(--on-brand);
  box-shadow: 0 8px 20px -10px rgba(var(--brand-rgb),.85);
}
.btn-primary:hover{ background: var(--brand-solid-strong); border-color: var(--brand-solid-strong); }
/* 次按钮：浅灰底、无边框（原来是一圈细边，看着硬） */
.btn-ghost, .btn-sm.btn-ghost, .btn-secondary{
  background: var(--bg-soft);
  border-color: transparent;
  color: var(--text-2);
}
.btn-ghost:hover{ background: color-mix(in srgb, var(--bg-soft) 70%, var(--line)); color: var(--text); }
/* 危险：红字白底 */
.btn-danger-ghost, .btn-danger-outline{
  background: #FFF; border-color: #FECACA; color: #DC2626;
}
html[data-theme="dark"] .btn-danger-ghost,
html[data-theme="dark"] .btn-danger-outline{
  background: transparent; border-color: rgba(239,68,68,.3); color: #F87171;
}
/* 订单卡里的「导航 / 拍完了」这类：大圆角浅灰 */
.o-actions .btn{
  background: var(--bg-soft);
  border-color: transparent;
  border-radius: 14px;
  color: var(--text-2);
  font-weight: 600;
}
.o-actions .btn.btn-primary,
.o-actions .btn.is-on{
  background: var(--brand-solid); border-color: var(--brand-solid); color: var(--on-brand);
}

/* ---------------- ⑥ 筛选胶囊：未选浅灰 / 选中深蓝白字 ---------------- */
.seg{
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  gap: 6px !important;
  border-radius: 99px !important;
}
.seg button{
  border-radius: 99px !important;
  background: var(--bg-soft) !important;
  border: 0 !important;
  color: var(--text-2) !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
.seg button.on,
.seg button.is-on{
  background: var(--brand-solid) !important;
  color: var(--on-brand) !important;
  box-shadow: 0 6px 14px -8px rgba(var(--brand-rgb),.9) !important;
}
/* 选中态前面那枚小图形（胡萝卜/贝壳）去掉，胶囊已经够清楚了 */
.seg button.on::before,
.seg button.is-on::before{ display: none !important; }
html[data-theme="dark"] .seg button{ background: rgba(148,163,184,.14) !important; color: #CBD5E1 !important; }
html[data-theme="dark"] .seg button.on,
html[data-theme="dark"] .seg button.is-on{ background: var(--brand-solid) !important; color: var(--on-brand) !important; }

/* ---------------- ⑦ 输入框：浅灰底、大圆角、焦点蓝环 ---------------- */
.field input, .field select, .field textarea{
  background: #F1F5F9;
  border-color: transparent !important;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: box-shadow .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus{
  background: #FFFFFF;
  border-color: transparent !important;
  box-shadow: inset 0 0 0 1.5px var(--brand), 0 0 0 4px rgba(var(--brand-rgb),.12);
  outline: none;
}
html[data-theme="dark"] .field input,
html[data-theme="dark"] .field select,
html[data-theme="dark"] .field textarea{ background: #162033; }
html[data-theme="dark"] .field input:focus,
html[data-theme="dark"] .field select:focus,
html[data-theme="dark"] .field textarea:focus{ background: #1B2740; }

/* ---------------- ⑧ 日历：选中的一天 = 实心蓝方块 ---------------- */
.cal-cell.sel{
  background: var(--brand-solid) !important;
  border-color: transparent !important;
  color: var(--on-brand);
  box-shadow: 0 10px 22px -14px rgba(var(--brand-rgb),.95) !important;
}
.cal-cell.sel .dn{ color: var(--on-brand) !important; font-weight: 800; }
.cal-cell.sel .cal-dots i{ background: rgba(255,255,255,.9); }
.cal-cell.today:not(.sel){ box-shadow: 0 0 0 2px rgba(var(--brand-rgb),.28) inset !important; }
.cal-cell.today .dn{ color: var(--brand-strong); }

/* ---------------- ⑨ 底栏：毛玻璃 ---------------- */
@media (max-width: 860px){
  .nav{
    background: rgba(255,255,255,.74) !important;
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border-color: rgba(226,232,240,.75) !important;
    box-shadow: 0 -8px 28px -18px rgba(15,23,42,.30);
  }
  html[data-theme="dark"] .nav{
    background: rgba(17,26,44,.78) !important;
    border-color: rgba(30,41,59,.9) !important;
  }
  .nav-item.is-active svg{ background: var(--brand-soft); }
  .nav-item.is-active::after{ border-bottom-color: var(--brand); }
}

/* ---------------- ⑩ 我的档案：头像品牌描边 + 数字放大 ----------------
   平台行下面那行「粉丝 62 · 获赞 691」：只有数字，没有来源、没有时间。 */
.plat-stat{
  margin: 7px 0 0;
  display: flex; align-items: center; flex-wrap: wrap; gap: 7px;
  font-size: 12px; font-weight: 500; color: var(--text-2);
  font-variant-numeric: tabular-nums;
  letter-spacing: .1px;
}
.plat-stat i{
  font-style: normal; color: var(--text-3); opacity: .55; font-weight: 400;
}
html[data-theme="dark"] .plat-stat{ color: var(--text-2); }

.pf-head .avatar{
  box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 5px rgba(var(--brand-rgb),.22), 0 6px 18px -10px rgba(var(--brand-rgb),.5);
}
html[data-theme="dark"] .pf-head .avatar{
  box-shadow: 0 0 0 3px var(--panel), 0 0 0 5px rgba(var(--brand-rgb),.30);
}
.pf-head h2{ font-size: 21px; font-weight: 800; letter-spacing: -.3px; }
.pf-stat{
  background: #F8FAFC;
  border-radius: 14px;
  padding: 12px 10px 11px;
}
html[data-theme="dark"] .pf-stat{ background: #162033; }
.pf-stat b{ font-size: 22px !important; font-weight: 800 !important; letter-spacing: -.8px; }
.pf-stat span{ font-size: 11px; }
@media (max-width: 900px){
  .pf-stat b{ font-size: 20px !important; }
}

/* 统计页的 KPI（本月流水那块）：数字也放大一档 */
.kpi-value{ font-size: 27px; font-weight: 800; letter-spacing: -1px; }
.kpi-accent .kpi-value{ color: #0F172A; }

/* ---------------- ⑪ 列表里的金额：加粗放大 ---------------- */
.o-amt{ font-size: 18px; font-weight: 800; letter-spacing: -.6px; }
@media (max-width: 860px){ .o-amt{ font-size: 19px; } }
.order.is-folded .o-amt{ font-size: 19px; }

/* ---------------- ⑫ 备份提醒条：琥珀只在图标上，底色回到中性 ---------------- */
.backup-bar{
  background: #FFFFFF;
  border-color: #FDE68A;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
}
.backup-bar p{ color: var(--text-2); }
.backup-bar .btn{
  background: #F8FAFC;
  border-color: transparent;
  color: var(--text-2);
}
html[data-theme="dark"] .backup-bar{
  background: var(--panel);
  border-color: rgba(245,158,11,.28);
  box-shadow: 0 0 0 1px var(--line);
}
html[data-theme="dark"] .backup-bar .btn{
  background: rgba(255,255,255,.07);
  color: #CBD5E1;
}

/* ---------------- ⑬ 空状态：兔子插画（纯 CSS，JS 零改动） ----------------
   挂点是 app.js 的 emptyBox() 早就渲染出来的 <i class="empty-carrot">，
   这一层只是把它的「皮肤小图形 mask」换成兔子图片，元素本身没变、
   渲染时机没变、空态文案照旧。皮肤的图形让给概览卡/进度条那些地方。 */
.empty .empty-carrot{
  width: 88px; height: 99px;
  margin-bottom: 6px;
  opacity: 1;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 54'%3E%3Cellipse cx='16.5' cy='14' rx='4.8' ry='10.6' fill='%23fff' stroke='%23F3DAD4' stroke-width='1.1' transform='rotate(-13 16.5 14)'/%3E%3Cellipse cx='16.5' cy='14.6' rx='2.2' ry='6.6' fill='%23F9D9D4' transform='rotate(-13 16.5 14.6)'/%3E%3Cellipse cx='31' cy='13.2' rx='4.8' ry='10.6' fill='%23fff' stroke='%23F3DAD4' stroke-width='1.1' transform='rotate(11 31 13.2)'/%3E%3Cellipse cx='31' cy='13.8' rx='2.2' ry='6.6' fill='%23F9D9D4' transform='rotate(11 31 13.8)'/%3E%3Cellipse cx='24' cy='27.5' rx='14.6' ry='13' fill='%23fff' stroke='%23F3DAD4' stroke-width='1.1'/%3E%3Cellipse cx='18.6' cy='26' rx='1.9' ry='2.3' fill='%234A3B36'/%3E%3Cellipse cx='29.4' cy='26' rx='1.9' ry='2.3' fill='%234A3B36'/%3E%3Cellipse cx='13.6' cy='30.4' rx='2.9' ry='1.9' fill='%23F9D9D4'/%3E%3Cellipse cx='34.4' cy='30.4' rx='2.9' ry='1.9' fill='%23F9D9D4'/%3E%3Cpath d='M24 29.4v1.5M24 30.9c-.85.95-2.3.95-2.95.25M24 30.9c.85.95 2.3.95 2.95.25' stroke='%234A3B36' stroke-width='1' fill='none' stroke-linecap='round'/%3E%3Cg transform='rotate(-5 24 44)'%3E%3Crect x='13.5' y='36.5' width='21' height='14.5' rx='3.4' fill='%23FBF3E4' stroke='%23E7D9BF' stroke-width='1'/%3E%3Cpath d='M24 41.2c1.5-1.8 5-1.1 5 1.4 0 2.1-2.9 3.8-5 5.2-2.1-1.4-5-3.1-5-5.2 0-2.5 3.5-3.2 5-1.4z' fill='%23E85D4A'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
  -webkit-mask: none;
  mask: none;
  animation: v727-bunny 3.4s ease-in-out infinite;
}
/* 图形变高了，上下留白收一收，空卡别撑成一块大白板 */
.empty{ padding: 30px 20px 34px; }
.empty b{ margin-top: 2px; }
/* 桌面卡面宽，同一只兔子按比例放大一点，不然显得太小 */
@media (min-width: 861px){
  .empty .empty-carrot{ width: 112px; height: 126px; }
  #bootVeil::before{ width: 108px; height: 122px; }
}

@keyframes v727-bunny{
  0%, 100%{ transform: translateY(0) rotate(-1.2deg); }
  50%{ transform: translateY(-5px) rotate(1.2deg); }
}

/* ---------------- ⑭ 首屏加载：同一只兔子在看家 ----------------
   #bootVeil 是 index.html 里就有的纯静态遮罩，脚本只给它加 is-out。
   这里把默认图标藏掉、用 ::before 换成兔子 —— DOM、加载时序都不动。 */
#bootVeil img{ display: none; }
#bootVeil::before{
  content: ''; width: 92px; height: 104px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 54'%3E%3Cellipse cx='16.5' cy='14' rx='4.8' ry='10.6' fill='%23fff' stroke='%23F3DAD4' stroke-width='1.1' transform='rotate(-13 16.5 14)'/%3E%3Cellipse cx='16.5' cy='14.6' rx='2.2' ry='6.6' fill='%23F9D9D4' transform='rotate(-13 16.5 14.6)'/%3E%3Cellipse cx='31' cy='13.2' rx='4.8' ry='10.6' fill='%23fff' stroke='%23F3DAD4' stroke-width='1.1' transform='rotate(11 31 13.2)'/%3E%3Cellipse cx='31' cy='13.8' rx='2.2' ry='6.6' fill='%23F9D9D4' transform='rotate(11 31 13.8)'/%3E%3Cellipse cx='24' cy='27.5' rx='14.6' ry='13' fill='%23fff' stroke='%23F3DAD4' stroke-width='1.1'/%3E%3Cellipse cx='18.6' cy='26' rx='1.9' ry='2.3' fill='%234A3B36'/%3E%3Cellipse cx='29.4' cy='26' rx='1.9' ry='2.3' fill='%234A3B36'/%3E%3Cellipse cx='13.6' cy='30.4' rx='2.9' ry='1.9' fill='%23F9D9D4'/%3E%3Cellipse cx='34.4' cy='30.4' rx='2.9' ry='1.9' fill='%23F9D9D4'/%3E%3Cpath d='M24 29.4v1.5M24 30.9c-.85.95-2.3.95-2.95.25M24 30.9c.85.95 2.3.95 2.95.25' stroke='%234A3B36' stroke-width='1' fill='none' stroke-linecap='round'/%3E%3Cg transform='rotate(-5 24 44)'%3E%3Crect x='13.5' y='36.5' width='21' height='14.5' rx='3.4' fill='%23FBF3E4' stroke='%23E7D9BF' stroke-width='1'/%3E%3Cpath d='M24 41.2c1.5-1.8 5-1.1 5 1.4 0 2.1-2.9 3.8-5 5.2-2.1-1.4-5-3.1-5-5.2 0-2.5 3.5-3.2 5-1.4z' fill='%23E85D4A'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
  animation: v727-bunny 3.4s ease-in-out infinite;
}

/* 动效是装饰：系统开了「减少动态效果」就停住 */
@media (prefers-reduced-motion: reduce){
  .empty .empty-carrot, #bootVeil::before{ animation: none; }
}

/* ---------------- ⑮ 其它小图形：压一档，别抢兔子 ---------------- */
.cfd-chev, .nav-paws i{ opacity: .55; }

/* ============================================================
   V7.30（2026-12-06）平台账号：头像 + 数据 + 小红书名片
   ------------------------------------------------------------
   只做外观层：行结构仍是 app.js 生成的 .plat / .idcard，
   这里只给它们上色、上圆角、排间距。整段删掉即回到纯文字行。
   ① 抖音：左边一颗圆头像，粉丝 / 获赞跟在名字下面
   ② 大众点评：只留主页链接，不设头像和数字
   ③ 小红书：图里的「达人身份卡」—— 一个号一张卡，
      卡片色系取自小红书（#FF2E4D 系），不用主题品牌色
   ============================================================ */

/* 头像：图片和「首字占位」共用同一个框 */
.plat-av{
  width: 40px; height: 40px; flex: 0 0 40px;
  border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: var(--bg-soft);
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--line) 75%, transparent) inset;
  font-size: 15px; font-weight: 800; color: var(--text-3);
}
.plat-av img{ width: 100%; height: 100%; object-fit: cover; display: block; }
[data-theme="dark"] .plat-av{ background: rgba(255,255,255,.07); }

/* 抖音行：头像 | 内容 两列 */
.card[data-cf="xhs"] .plat.has-av{
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  column-gap: 11px;
  align-items: start;
  padding: 11px 0 12px;
}
/* 头像跟名字第一行对齐，别顶在卡片边 */
.plat.has-av .plat-av{ margin-top: 1px; }
.plat.has-av .plat-stat{ margin-top: 5px; }
.plat.has-av .plat-stat > span{ font-weight: 600; }
/* 粉丝 / 获赞之间的那个小圆点，别用斜体字硬撑 */
.plat-stat i{
  font-style: normal; font-size: 10px; opacity: .45;
  margin: 0 1px; line-height: 1;
}

/* 点评：只剩一条链接，上下留白收一档 */
.plat.is-dp .plat-facts.is-single{ margin-top: 6px; }
.plat.is-dp .plat-facts.is-single .pfact{ min-height: 22px; }

/* ---------------- 小红书：达人身份卡（横版长方形） ---------------- */
.idcard{
  position: relative;
  margin: 2px 0 12px;
  padding: 12px 14px 12px;
  border-radius: 18px;
  /* 小红书红：卡片底是极淡的暖白，边框和顶线用品牌红点一下 */
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,46,77,.10) 0%, rgba(255,46,77,0) 58%),
    linear-gradient(158deg, #FFF9F7 0%, #FFFDFC 42%, #FFF6F4 100%);
  border: 1px solid rgba(255,46,77,.18);
  box-shadow:
    0 1px 2px rgba(200,40,66,.05),
    0 14px 30px -22px rgba(200,40,66,.5);
}
[data-theme="dark"] .idcard{
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,46,77,.18) 0%, rgba(255,46,77,0) 60%),
    linear-gradient(158deg, #2A2024 0%, #251D21 60%, #2B2026 100%);
  border-color: rgba(255,110,130,.26);
  box-shadow: 0 14px 30px -24px rgba(0,0,0,.7);
}
/* 多号时第二张往下错开一点，看得出是两张卡 */
.idcard.is-extra{ margin-top: 10px; }

/* 编辑 / 删除浮在右上角：不再单独占一整行（那张「牌子 + 编辑」的行
   是卡片变成正方形的元凶，去掉它整张卡就扁下来了） */
.idc-acts{
  position: absolute; top: 7px; right: 7px; z-index: 2;
  display: flex; align-items: center; gap: 2px;
}
.idc-badge{
  flex: 0 0 auto;
  font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .3px;
  color: #E8283F; background: rgba(255,46,77,.11);
  padding: 2px 7px; border-radius: 999px;
}
[data-theme="dark"] .idc-badge{ color: #FF7A88; background: rgba(255,46,77,.2); }
.idc-acts .plat-edit{ color: color-mix(in srgb, #E8283F 55%, var(--text-3)); }
.idc-acts .plat-edit:active{ color: #E8283F; background: rgba(255,46,77,.1); }
@media (hover: hover){
  .idc-acts .plat-edit:hover{ color: #E8283F; background: rgba(255,46,77,.09); }
}

/* 身份区：头像在左，名字在右；资料行回到整卡宽度（横版，像名片） */
.idc-head{ display: flex; align-items: center; gap: 11px; }
.idc-head .plat-av{
  width: 44px; height: 44px; flex: 0 0 44px;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3.5px rgba(255,46,77,.28),
    0 6px 14px -8px rgba(200,40,66,.4);
}
[data-theme="dark"] .idc-head .plat-av{
  box-shadow: 0 0 0 2px #251D21, 0 0 0 3.5px rgba(255,46,77,.4);
}
.idc-me{ min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; }
/* 名字这一行：牌子 + 名字；右边留给浮在角上的编辑按钮，长名字也不会压到它 */
.idc-name{
  display: flex; align-items: center; gap: 6px;
  min-width: 0; padding-right: 44px;
}
.idc-name b{ min-width: 0; }
.idc-me b{
  font-size: 15px; font-weight: 800; letter-spacing: -.2px;
  color: var(--text); line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.idc-me span{ font-size: 10.5px; color: var(--text-3); letter-spacing: .1px; }

/* 三行身份信息：ID / 蒲公英 / 主页，右端统一一个复制图标 */
.idc-rows{
  margin-top: 6px; padding-top: 5px;
  border-top: 1px dashed rgba(255,46,77,.16);
  display: flex; flex-direction: column;
}
[data-theme="dark"] .idc-rows{ border-top-color: rgba(255,110,130,.2); }
.idc-row{
  display: flex; align-items: center; gap: 8px;
  width: 100%; min-height: 21px; padding: 1px 0;
  border: 0; border-radius: 8px; background: transparent;
  font-family: inherit; font-size: 11px; color: var(--text-2);
  text-align: left; cursor: pointer; min-width: 0;
  -webkit-tap-highlight-color: transparent;
}
.idc-row:active{ background: rgba(255,46,77,.07); }
.idc-k{
  flex: 0 0 60px; font-size: 10px; font-weight: 700;
  color: var(--text-3); letter-spacing: .2px;
  white-space: nowrap;
}
.idc-v{
  flex: 1 1 auto; min-width: 0; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.idc-mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.8px; letter-spacing: .1px;
}
.idc-row .cp-btn{ margin-left: auto; }

/* 数据条：粉丝 / 赞藏，标签在上、数字在下，贴在卡片底部 */
.idc-stats{
  display: grid; grid-template-columns: 1fr 1fr;
  margin-top: 8px;
  padding: 5px 6px 6px;
  border-radius: 12px;
  background: rgba(255,255,255,.72);
  box-shadow: 0 0 0 1px rgba(255,46,77,.12) inset, 0 1px 0 rgba(255,255,255,.9) inset;
}
[data-theme="dark"] .idc-stats{
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 1px rgba(255,110,130,.18) inset;
}
.idc-stat{
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  min-width: 0;
}
.idc-stat + .idc-stat{
  border-left: 1px solid rgba(255,46,77,.13);
}
[data-theme="dark"] .idc-stat + .idc-stat{ border-left-color: rgba(255,110,130,.2); }
.idc-stat span{ font-size: 9.5px; color: var(--text-3); letter-spacing: .3px; }
.idc-stat b{
  font-size: 15px; font-weight: 800; letter-spacing: -.3px;
  color: #E8283F; line-height: 1.2;
  font-variant-numeric: normal;
}
[data-theme="dark"] .idc-stat b{ color: #FF7A88; }

/* ============================================================
   V7.30（2026-12-06）发布记录与数据：按参考稿的框架排
   ------------------------------------------------------------
   只动摆法，不动配色、不动字段、不动交互：
   · 链接框从「一行挤」改成上下两块 —— 网址整段铺开可换行，
     复制按钮浮在右上，「固定」压到右下角
   · 底部按钮两列排（添加 / 截图识别），Excel 那格通栏
   ============================================================ */
.fold-post .post-row:not(.is-editing) .post-link-row{
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "txt copy";
  align-items: start;
  gap: 8px;
  padding: 11px 12px;
}
.fold-post .post-row:not(.is-editing) .post-link-text{
  grid-area: txt;
  white-space: normal;
  word-break: break-all;
  line-height: 1.6;
}
.fold-post .post-row:not(.is-editing) .post-link-copy{ grid-area: copy; margin-top: -2px; }

/* 底部按钮：两列，Excel 通栏（图里就是这么分的） */
.fold-post .post-acts{ grid-template-columns: repeat(2, minmax(0,1fr)); }

/* ============================================================
   V7.31（2026-12-06）发布记录：按图 3 / 图 4 收一遍
   ------------------------------------------------------------
   ① 链接行去掉链条图标和「固定」小牌 —— 链接本来就在第一行，
      贴上去就自动抓数据，不用再标、也不用再点
   ② 序号改成浅色小圆牌（深棕实心太重，三个排下来像三个按钮）
   ③ 只读态：链接一块奶油底、三个数一块色块，字号抬回 22
   ④ 编辑态：链接一行「链接 / 清空」+ 白底输入框，数字 2×2
   ⑤ 新增「抓取中 / 没抓到」那条提示 + 重试
   ============================================================ */

/* ① 链接行：实心奶油底，不要虚线框（虚线像「待填」，可它已经填好了） */
.fold-post .post-row .post-link-row{
  border: 0 !important;
  border-radius: 14px !important;
  background: #F5EEE3 !important;
  padding: 11px 12px !important;
  margin-bottom: 10px;
}
[data-theme="dark"] .fold-post .post-row .post-link-row{ background: #2C251F !important; }
.fold-post .post-link-text{ font-size: 12.5px !important; line-height: 1.65 !important; color: var(--mc-ink) !important; }
.fold-post .post-link-text.is-empty{ color: var(--mc-ink-3) !important; font-size: 12px !important; }
.fold-post .post-row:not(.is-editing) .post-link-copy{ align-self: start; }

/* ② 序号：浅色圆牌 + 深字 */
.fold-post .post-no{
  background: #EFE6D8 !important;
  color: var(--mc-ink-2) !important;
  font-size: 11px !important;
  width: 24px !important; height: 24px !important; flex: 0 0 24px !important;
  box-shadow: none !important;
}
[data-theme="dark"] .fold-post .post-no{ background: #3A3129 !important; color: #E8DCCB !important; }

/* ③ 只读态：三个数，标签一眼、数字一眼 */
.fold-post .post-row:not(.is-editing) .pf-grid{
  gap: 8px !important;
  margin-top: 2px;
}
.fold-post .post-row:not(.is-editing) .pf-cell{
  padding: 9px 11px 10px !important;
  border-radius: 14px !important;
  gap: 3px;
}
.fold-post .post-row:not(.is-editing) .pf-cell-ic svg{ width: 12px; height: 12px; }
.fold-post .post-row:not(.is-editing) .pf-cell-lab{ font-size: 11px !important; letter-spacing: .2px; }
.fold-post .post-row:not(.is-editing) .pf-cell-num{
  font-size: 22px !important; line-height: 1.25 !important; letter-spacing: -.6px;
}

/* ④ 编辑态：链接「标签 + 清空」一行，下面是白底输入 */
.fold-post .post-link-row.is-edit{
  padding: 10px 12px 12px !important;
  background: #F5EEE3 !important;
}
[data-theme="dark"] .fold-post .post-link-row.is-edit{ background: #2C251F !important; }
.fold-post .post-link-edit-top{ margin-bottom: 7px !important; }
.fold-post .post-link-edit-lab{ font-size: 11.5px !important; font-weight: 800; letter-spacing: .3px; }
.fold-post .post-link-clear{
  padding: 3px 8px !important; font-size: 11px !important; gap: 3px !important;
  background: transparent !important;
}
.fold-post .post-link-row.is-edit .pf-link{
  background: #FFFFFF !important;
  border: 1px solid var(--mc-line) !important;
  border-radius: 11px !important;
  padding: 9px 11px !important;
  font-size: 12.5px !important;
  line-height: 1.55 !important;
  color: var(--mc-ink) !important;
  /* 是 textarea：网址多长就长多高，不横向滚 */
  resize: none;
  min-height: 42px;
  max-height: 132px;
  overflow-y: auto;
  font-family: inherit;
  display: block;
}
[data-theme="dark"] .fold-post .post-link-row.is-edit .pf-link{ background: #211C18 !important; }
.fold-post .post-link-row.is-edit .pf-link:focus{
  border-color: var(--mc-brown) !important;
  box-shadow: 0 0 0 3px rgba(107,90,74,.14) !important;
}
.fold-post .post-row.is-editing .pf-grid{ gap: 9px !important; margin-top: 10px; }
.fold-post .post-row.is-editing .pf-cell{ padding: 10px 11px 11px !important; border-radius: 14px !important; }
.fold-post .post-row.is-editing .pf-cell .pf-input{ font-size: 19px !important; }

/* ⑤ 抓取状态：一条细提示，别做成第二个按钮 */
.post-fetch{
  display: flex; align-items: center; gap: 6px;
  margin: 0 0 9px; padding: 0 2px;
  font-size: 11.5px; line-height: 1.5; color: var(--mc-ink-3);
}
.post-fetch.is-err{ color: var(--mc-rose-ink); }
.post-fetch-retry{
  margin-left: 2px; padding: 2px 8px;
  border: 1px solid currentColor; border-radius: 99px;
  background: transparent; color: inherit;
  font-family: inherit; font-size: 11px; font-weight: 800;
  cursor: pointer;
}
.post-fetch-retry:active{ transform: scale(.96); }
/* 转圈：用边框做一个环，转起来就完了 */
.pf-spin{
  width: 12px; height: 12px; flex: 0 0 12px;
  border-radius: 50%;
  border: 1.6px solid color-mix(in srgb, var(--mc-ink-3) 45%, transparent);
  border-top-color: transparent;
  animation: pf-spin .8s linear infinite;
}
@keyframes pf-spin{ to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce){ .pf-spin{ animation-duration: 2.4s; } }

/* ⑥ 抖音 / 大众点评：跟小红书名片同一套「一行一条」的写法
   以前这两块套在灰底小盒子里、链接还是蓝色 —— 三个平台三种长相。
   现在都摊平成「标签 + 值 + 复制」，只在小红书那张卡上保留品牌色。 */
.plat.has-av .plat-facts,
.plat.is-dp .plat-facts{
  margin-top: 9px;
  padding: 8px 0 0;
  border-radius: 0;
  background: transparent !important;
  border-top: 1px dashed var(--line);
  gap: 1px;
}
[data-theme="dark"] .plat.has-av .plat-facts,
[data-theme="dark"] .plat.is-dp .plat-facts{ background: transparent !important; border-top-color: rgba(255,255,255,.1); }
.plat.has-av .pfact,
.plat.is-dp .pfact{
  min-height: 25px;
  padding: 2px 0;
}
.plat.has-av .pfact-k,
.plat.is-dp .pfact-k{ flex: 0 0 44px; font-size: 10.5px; font-weight: 700; }
.plat.has-av .pfact-v,
.plat.is-dp .pfact-v{ font-size: 11.5px; }
/* 链接不刷蓝：这里不是在正文里写超链接，整行都是「资料」 */
.pfact.is-link .pfact-v{ color: var(--text) !important; }
.pfact.is-link .pfact-v:hover{ text-decoration: underline; text-underline-offset: 2px; }
/* 抖音那条「粉丝 62 · 获赞 691」压在名字下面，跟名字留一点呼吸 */
.plat.has-av .plat-stat{ margin-top: 6px; }
.plat.has-av .plat-stat > span{ font-size: 11.5px; }

/* ⑦ 只有链接、没有数字的记录：链接那块别顶出一段空白 */
.fold-post .post-row .post-link-row:last-child{ margin-bottom: 0 !important; }
.fold-post .post-row:not(.is-editing) .post-link-row:has(.post-link-text.is-empty){ padding: 12px !important; }

/* 排队的（抖音）：不是错，别刷成红色 */
.post-fetch.is-wait{ color: var(--mc-brown); }
[data-theme="dark"] .post-fetch.is-wait{ color: var(--mc-brown-2); }

/* ============================================================
   V7.32（2026-12-06）
   ------------------------------------------------------------
   ① 抖音也做成小红书那张「达人身份卡」（.idcard.is-dy）
   ② 「粉丝 / 赞藏」标签常驻：没采到写「—」，并说明在等采集器
   ③ 发布记录编辑态：三个数字框排成一行（只读态没动）
   ============================================================ */

/* ---------- ① 抖音卡片：同一副骨架，换一套墨黑点缀 ----------
   小红书的红放在「品牌标 + 数字」上；抖音这边把点缀压成近黑，
   两张卡并排也能一眼分出谁是谁，而不是两条一模一样的粉线。 */
.idcard.is-dy{
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(22,24,35,.07) 0%, rgba(22,24,35,0) 58%),
    linear-gradient(158deg, #FBFBFD 0%, #FFFFFF 45%, #F5F6FA 100%);
  border-color: rgba(22,24,35,.14);
  box-shadow:
    0 1px 2px rgba(22,24,35,.05),
    0 14px 30px -22px rgba(22,24,35,.42);
}
[data-theme="dark"] .idcard.is-dy{
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,255,255,.07) 0%, rgba(255,255,255,0) 60%),
    linear-gradient(158deg, #1D1D22 0%, #1A1A1F 60%, #202028 100%);
  border-color: rgba(255,255,255,.13);
  box-shadow: 0 14px 30px -24px rgba(0,0,0,.7);
}
.idcard.is-dy .idc-badge{ color: #FFFFFF; background: #161823; }
[data-theme="dark"] .idcard.is-dy .idc-badge{ color: #161823; background: #EDEDF0; }
/* 编辑按钮跟着换色（基类把它刷成了小红书红） */
.idcard.is-dy .idc-acts .plat-edit{ color: color-mix(in srgb, #161823 55%, var(--text-3)); }
[data-theme="dark"] .idcard.is-dy .idc-acts .plat-edit{ color: rgba(255,255,255,.72); }
.idcard.is-dy .idc-acts .plat-edit:active{ color: #161823; background: rgba(22,24,35,.07); }
[data-theme="dark"] .idcard.is-dy .idc-acts .plat-edit:active{ color: #fff; background: rgba(255,255,255,.1); }
@media (hover: hover){
  .idcard.is-dy .idc-acts .plat-edit:hover{ color: #161823; background: rgba(22,24,35,.06); }
  [data-theme="dark"] .idcard.is-dy .idc-acts .plat-edit:hover{ color: #fff; background: rgba(255,255,255,.1); }
}
.idcard.is-dy .idc-head .plat-av{
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3.5px rgba(22,24,35,.15),
    0 6px 14px -8px rgba(22,24,35,.35);
}
[data-theme="dark"] .idcard.is-dy .idc-head .plat-av{
  box-shadow: 0 0 0 2px #1A1A1F, 0 0 0 3.5px rgba(255,255,255,.22);
}
.idcard.is-dy .idc-rows{ border-top-color: rgba(22,24,35,.12); }
[data-theme="dark"] .idcard.is-dy .idc-rows{ border-top-color: rgba(255,255,255,.14); }
.idcard.is-dy .idc-row:active{ background: rgba(22,24,35,.05); }
[data-theme="dark"] .idcard.is-dy .idc-row:active{ background: rgba(255,255,255,.07); }
.idcard.is-dy .idc-stats{
  background: rgba(255,255,255,.78);
  box-shadow: 0 0 0 1px rgba(22,24,35,.1) inset, 0 1px 0 rgba(255,255,255,.9) inset;
}
[data-theme="dark"] .idcard.is-dy .idc-stats{
  background: rgba(255,255,255,.06);
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset;
}
.idcard.is-dy .idc-stat + .idc-stat{ border-left-color: rgba(22,24,35,.1); }
[data-theme="dark"] .idcard.is-dy .idc-stat + .idc-stat{ border-left-color: rgba(255,255,255,.14); }
.idcard.is-dy .idc-stat b{ color: #161823; }
[data-theme="dark"] .idcard.is-dy .idc-stat b{ color: #F1F1F4; }

/* ---------- ② 数字还没采到：标签照摆，值写「—」，颜色压下去 ----------
   下面原来还有一行「这两个数由采集器抓…」的说明，按反馈去掉了：
   卡上留一行灰字反而显得这块在等什么，标签 + 「—」已经说清楚了。 */
.idc-stats.is-empty .idc-stat b{
  color: var(--text-3) !important;
  font-weight: 700;
  letter-spacing: 0;
}

/* ---------- ③ 编辑态：三个数字框排成一行 ----------
   只读态本来就是一行三块（.post-row:not(.is-editing)），编辑态却摊成 2×2，
   改之前和改之后两种摆法，来回切很跳。现在都是三列，只读态保持原样。 */
.fold-post .post-row.is-editing .pf-grid{
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.fold-post .post-row.is-editing .pf-cell{ padding: 8px 9px 9px; }
.fold-post .post-row.is-editing .pf-cell-lab{ font-size: 11.5px; letter-spacing: 0; }
.fold-post .post-row.is-editing .pf-cell-ic{ font-size: 14px; }
.fold-post .post-row.is-editing .pf-grab{
  width: 20px !important; height: 20px !important; flex: 0 0 20px !important;
}
.fold-post .post-row.is-editing .pf-grab svg{ width: 12px !important; height: 12px !important; }
.fold-post .post-row.is-editing .pf-cell .pf-input{
  font-size: 15px !important;
  padding: 6px 8px !important;
}

/* ============================================================
   V7.34（2026-12-06）：大众点评也换成「名片」
   ------------------------------------------------------------
   点评这边采集不到头像、粉丝、赞藏，能拿到的只有「名称 + 主页链接」，
   所以这张卡只画这两样：牌子 + 名称一行，下面一条链接。
   外形沿用 .idcard（同样的圆角、内边距、投影），只把点缀色从
   小红书红换成点评橙，摆在小红书/抖音旁边才像同一个应用里的三张卡，
   而不是「两张名卡 + 一条灰色链接」。
   ============================================================ */
.idcard.is-dp{
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,102,51,.10) 0%, rgba(255,102,51,0) 58%),
    linear-gradient(158deg, #FFF9F6 0%, #FFFDFC 44%, #FFF7F3 100%);
  border-color: rgba(255,102,51,.20);
  box-shadow:
    0 1px 2px rgba(214,86,34,.05),
    0 14px 30px -22px rgba(214,86,34,.5);
  /* 卡里只有「名称 + 链接」两行，按别的卡的纵向留白会扁成一条；
     上下各多给 2px、链接行抬 3px，撑到接近一张小名片的比例 */
  padding: 13px 14px 13px;
}
[data-theme="dark"] .idcard.is-dp{
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,102,51,.18) 0%, rgba(255,102,51,0) 60%),
    linear-gradient(158deg, #2B2220 0%, #261E1C 60%, #2C2220 100%);
  border-color: rgba(255,132,90,.28);
  box-shadow: 0 14px 30px -24px rgba(0,0,0,.7);
}
.idcard.is-dp .idc-badge{ color: #D9551F; background: rgba(255,102,51,.12); }
[data-theme="dark"] .idcard.is-dp .idc-badge{ color: #FF9C74; background: rgba(255,102,51,.22); }
.idcard.is-dp .idc-acts .plat-edit{ color: color-mix(in srgb, #E0602A 55%, var(--text-3)); }
.idcard.is-dp .idc-acts .plat-edit:active{ color: #E0602A; background: rgba(255,102,51,.1); }
@media (hover: hover){
  .idcard.is-dp .idc-acts .plat-edit:hover{ color: #E0602A; background: rgba(255,102,51,.09); }
}
.idcard.is-dp .idc-rows{
  margin-top: 8px; padding-top: 7px;
  border-top-color: rgba(255,102,51,.17);
}
[data-theme="dark"] .idcard.is-dp .idc-rows{ border-top-color: rgba(255,132,90,.22); }
.idcard.is-dp .idc-row:active{ background: rgba(255,102,51,.07); }
.idcard.is-dp .idc-row{ min-height: 23px; }
.idcard.is-dp .idc-k{ flex: 0 0 52px; }
.idcard.is-dp .idc-v{ color: var(--text); }

/* ============================================================
   V7.35（2026-12-06）：话题与标签 → 改期
   ------------------------------------------------------------
   达人临时改时间是最容易出事的一类改动：卡片上还写着老时间，
   人按老时间跑一趟就白跑了。所以这一版把「话题与标签」整窗换成
   「改期」，并且要求改完必须留痕：
     · 列表卡片：一颗虚线橙标「已改期」+ 副行「原定 12月5日 14:00」
     · 告知单：抬头一颗「已改期」，下面单独一段「原定 → 现在 / 原因 / 已告知谁」
     · 改期窗自己：进来就先看到「已改 N 次 · 原定 …」
   ============================================================ */

/* ---- 改期窗：顶部「现在这单」 ---- */
.rs-now{
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0 0 12px; padding: 10px 12px;
  border-radius: 12px;
  background: #FFF9F2;
  border: 1px solid rgba(224,138,0,.22);
}
.rs-now > span{ font-size: 11px; color: #8A6A3F; letter-spacing: .3px; }
.rs-now > b{ font-size: 15px; font-weight: 800; color: #7A4A12; letter-spacing: -.2px; }
.rs-now > em{ font-style: normal; font-size: 10.5px; font-weight: 600; color: #A9762C; margin-left: auto; }
html[data-theme="dark"] .rs-now{ background: rgba(224,138,0,.12); border-color: rgba(224,138,0,.3); }
html[data-theme="dark"] .rs-now > span,
html[data-theme="dark"] .rs-now > em{ color: #D9A96B; }
html[data-theme="dark"] .rs-now > b{ color: #FFC978; }

/* ---- 原因 / 通知：一排可点的小胶囊，点中变橙 ---- */
.rs-chips{ display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 8px; }
.rs-chip{
  font-family: inherit; font-size: 11.5px; font-weight: 600;
  padding: 6px 10px; border-radius: 999px; cursor: pointer;
  color: var(--text-2); background: #fff;
  border: 1px solid var(--line);
  -webkit-tap-highlight-color: transparent;
  transition: background .14s, border-color .14s, color .14s;
}
.rs-chip:active{ transform: scale(.985); }
.rs-chip.on{
  color: #B45309; background: #FFF6E9;
  border-color: rgba(224,138,0,.55);
  box-shadow: 0 0 0 1px rgba(224,138,0,.18) inset;
}
html[data-theme="dark"] .rs-chip{
  background: rgba(255,255,255,.04);
  border-color: rgba(255,255,255,.12);
}
html[data-theme="dark"] .rs-chip.on{
  background: rgba(224,138,0,.2);
  border-color: rgba(224,138,0,.5);
  color: #FFD08A;
}
/* 脚注：还没动 = 灰字说规则；动了 = 橙字直说「将改到 …（原定 …）」 */
#rsFootHint.is-changed{ color: #B45309; font-weight: 700; }
html[data-theme="dark"] #rsFootHint.is-changed{ color: #FFC978; }

/* ---- 卡片：一颗虚线橙标。用虚线是为了跟「逾期 / 待收」那种实心标区分开 ---- */
.tag.rs-tag{
  background: #FFF4E5 !important;
  color: #B45309 !important;
  border: 1px dashed rgba(224,138,0,.6);
}
html[data-theme="dark"] .tag.rs-tag{
  background: rgba(224,138,0,.16) !important;
  color: #FFC978 !important;
  border-color: rgba(224,138,0,.5);
}
/* 副行里那句「原定 12月5日 14:00」 —— 比别的 em 轻一点，别抢店名 */
.em-rs{ font-style: normal; color: #B45309 !important; }
html[data-theme="dark"] .em-rs{ color: #FFC978 !important; }

/* ---- 告知单：探店那一行后面的「原定 …」 ---- */
.br-row dd .br-rs-old{
  margin-left: 8px;
  font-style: normal; font-size: 10.5px; font-weight: 600;
  color: #B45309;
  text-decoration: line-through;
  text-decoration-color: rgba(180,83,9,.45);
}
html[data-theme="dark"] .br-row dd .br-rs-old{ color: #FFC978; }

/* ---- 告知单：改期那一段 ---- */
.bs-ico.ico-rs{ color: #B45309; background: #FFF1DE; }
html[data-theme="dark"] .bs-ico.ico-rs{ color: #FFC978; background: rgba(224,138,0,.18); }
.br-rs-line{
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 0; font-size: 13px;
}
.br-rs-line s{ color: var(--text-3); font-size: 12.5px; }
.br-rs-line i{ font-style: normal; color: #C9985B; }
.br-rs-line b{ color: #B45309; font-weight: 800; letter-spacing: -.2px; }
.br-rs-line em{ font-style: normal; font-size: 10.5px; color: var(--text-3); }
html[data-theme="dark"] .br-rs-line b{ color: #FFC978; }
.br-rs-sub{ margin: 6px 0 0; font-size: 11.5px; line-height: 1.6; color: var(--text-2); }

/* 动作表里那颗「改期」图标（原来这里是话题的标签图标） */
.sheet-ic.ic-rs{ background: rgba(224,138,0,.14); color: #C2740B; }
html[data-theme="dark"] .sheet-ic.ic-rs{ background: rgba(224,138,0,.2); color: #FFC978; }

/* ==========================================================================
   V7.39
   ① 接单记录：月份选择升级成「筛选接单」面板（时间 / 合作进度 / 单子类型）
   ② 改期窗口：日期、时间输入框强制单行，顺手把多出来的空白收掉
   ========================================================================== */

/* ---- ① 筛选按钮：多了个漏斗图标，文字长了省略 ---- */
.month-btn .mb-flt{ width: 14px; height: 14px; color: var(--text-3); flex: none; }
.month-btn.is-on .mb-flt{ color: var(--brand); }

/* ---- 面板骨架 ---- */
.flt-panel{ max-height: 74vh; padding-bottom: 0; }
.flt-head{
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 4px 20px 10px;
}
.flt-head b{ font-size: 15px; letter-spacing: -.2px; color: var(--text); }
.flt-head span{ font-size: 11.5px; color: var(--text-3); max-width: 62%; overflow: hidden;
  text-overflow: ellipsis; white-space: nowrap; }
.flt-body{
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding: 2px 20px 12px; border-top: 1px solid var(--line);
}
.flt-sec{ padding: 12px 0 2px; }
.flt-sec + .flt-sec{ border-top: 1px dashed var(--line); margin-top: 6px; }
.flt-h{ display: flex; align-items: baseline; gap: 8px; margin-bottom: 9px; }
.flt-h span{ font-size: 12.5px; font-weight: 700; color: var(--text-2); letter-spacing: .2px; }
.flt-h em{ font-style: normal; font-size: 10.5px; color: var(--text-3); }
.flt-chips{ display: flex; flex-wrap: wrap; gap: 6px; }

/* 条件药丸：名字 + 单数，选中是品牌色实心 */
.flt-chip{
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 10px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text-2);
  font-family: inherit; font-size: 12px; font-weight: 650; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, transform .12s;
}
.flt-chip i{
  font-style: normal; font-size: 10px; font-weight: 700; line-height: 1;
  padding: 2px 5px; border-radius: 6px; background: var(--panel); color: var(--text-3);
}
.flt-chip:active{ transform: scale(.96); }
.flt-chip.on{
  background: var(--brand-solid); border-color: var(--brand-solid); color: var(--on-brand);
  box-shadow: 0 3px 10px rgba(var(--brand-rgb),.28);
}
.flt-chip.on i{ background: rgba(255,255,255,.22); color: #fff; }

/* 三列网格：进度 / 类型都排成 3+2，比「4 个一行 + 1 个掉下来」齐整 */
.flt-chips.flt-grid3{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.flt-grid3 .flt-chip{ width: 100%; justify-content: space-between; padding: 0 9px; }
.flt-grid3 .flt-chip span{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- 底部：重置 + 查看 N 单 ---- */
.flt-foot{
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px max(14px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--panel);
}
.flt-reset{
  flex: 0 0 auto; height: 42px; padding: 0 16px; border-radius: 12px;
  border: 1px solid var(--line); background: transparent; color: var(--text-2);
  font-family: inherit; font-size: 13px; font-weight: 650; cursor: pointer;
}
.flt-reset:active{ background: var(--panel-2); }
.flt-done{
  flex: 1; height: 42px; border: 0; border-radius: 12px;
  background: var(--brand-solid); color: var(--on-brand);
  font-family: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer;
  box-shadow: 0 6px 16px rgba(var(--brand-rgb),.28);
}
.flt-done b{ font-weight: 800; }
.flt-done:active{ transform: scale(.985); }

html[data-theme="dark"] .flt-chip{ background: rgba(148,163,184,.12); border-color: rgba(148,163,184,.18); color: #CBD5E1; }
html[data-theme="dark"] .flt-chip i{ background: rgba(148,163,184,.16); color: #94A3B8; }
html[data-theme="dark"] .flt-chip.on{ background: var(--brand-solid); border-color: var(--brand-solid); color: var(--on-brand); }
html[data-theme="dark"] .flt-chip.on i{ background: rgba(0,0,0,.18); color: #fff; }
html[data-theme="dark"] .flt-reset{ border-color: rgba(148,163,184,.22); color: #CBD5E1; }

@media (max-width: 520px){
  .flt-body{ padding: 2px 16px 10px; }
  .flt-head{ padding: 4px 16px 8px; }
  .flt-chip{ height: 32px; font-size: 12px; }
}

/* ---- ② 改期：日期 / 时间输入框单行化 ----
   安卓 Chrome、iOS 上原生日期控件会被撑成「文字一行 + 下面一截空白」，
   这里把外框定死、内部编辑区强行垂直居中，多出来的高度就没了。 */
#reschedModal .field input[type="date"],
#reschedModal .field input[type="time"]{
  height: 44px;
  line-height: 42px;
  padding: 0 40px 0 14px;
  overflow: hidden;
  -webkit-appearance: none;
  appearance: none;
}
#reschedModal .field input[type="date"]::-webkit-date-and-time-value,
#reschedModal .field input[type="time"]::-webkit-date-and-time-value{
  display: block;
  height: 100%;
  margin: 0;
  line-height: 42px;
  text-align: left;
}
#reschedModal .field input[type="date"]::-webkit-datetime-edit,
#reschedModal .field input[type="time"]::-webkit-datetime-edit{
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0;
  line-height: 42px;
}
#reschedModal .field input[type="date"]::-webkit-datetime-edit-fields-wrapper{
  display: flex; align-items: center;
}

/* ---- ③ 平台账号表单：头像行（V7.42） ----
   采集器抓错头像时，用户得有个地方改回来。这一行放在表单最上面：
   左圆圈预览、中间两行说明、右边「换一张 / 清除」。
   颜色全走皮肤令牌，四套皮肤（含深色）都不用另起规则。 */
#formModal .fm-av{
  display: grid; grid-template-columns: 48px minmax(0,1fr) auto;
  align-items: center; gap: 12px;
  padding: 0 0 14px; margin: 0 0 14px;
  border-bottom: 1px dashed var(--line);
}
#formModal .fm-av-p{
  width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--bg);
  border: 1px solid var(--line);
  color: var(--text-3);
}
#formModal .fm-av-p img{ width: 100%; height: 100%; object-fit: cover; display: block; }
#formModal .fm-av-p svg{ width: 26px; height: 26px; }
#formModal .fm-av-t{
  min-width: 0; font-size: 13px; font-weight: 650; color: var(--text-2);
  display: flex; flex-direction: column; gap: 3px;
}
#formModal .fm-av-t em{
  font-style: normal; font-size: 11px; font-weight: 500; line-height: 1.5;
  color: var(--text-3);
}
#formModal .fm-av-a{ display: flex; gap: 6px; flex: 0 0 auto; }
#formModal .fm-av-a .btn-sm{ height: 32px; padding: 0 12px; font-size: 12.5px; border-radius: 10px; }

@media (max-width: 380px){
  #formModal .fm-av{ grid-template-columns: 44px minmax(0,1fr); }
  #formModal .fm-av-p{ width: 44px; height: 44px; }
  #formModal .fm-av-a{ grid-column: 1 / -1; justify-content: flex-end; }
}

/* ---- ④ 数字格点一下复制（V7.44） ----
   粉丝 / 赞藏 / 获赞、点赞 / 收藏 / 评论，这两组都是「一眼看一个数」的格子，
   要的是复制数字本身，不是长按选字。
   两个都是 <button>，所以要先把默认的底、边、字体抹平，
   只留「按下去有一点回弹 + 复制成功后一点点泛色」。 */
button.idc-stat,
button.pf-cell-num{
  appearance: none; -webkit-appearance: none;
  background: none; border: 0; margin: 0;
  font: inherit; color: inherit;
  cursor: pointer; border-radius: 8px;
  transition: background .16s, transform .12s, opacity .16s;
  -webkit-tap-highlight-color: transparent;
}
button.idc-stat{ padding: 1px 4px 2px; }
button.idc-stat:active{ background: rgba(255,46,77,.1); transform: scale(.97); }
[data-theme="dark"] button.idc-stat:active{ background: rgba(255,110,130,.16); }
button.idc-stat.copied{ background: rgba(255,46,77,.14); }
[data-theme="dark"] button.idc-stat.copied{ background: rgba(255,110,130,.2); }

/* 标签旁那颗 9px 的复制图标：V7.49 起不再使用（数字整块可点，
   用户也不想看见那颗小图标）。规则留着不影响任何东西 —— 万一以后想加回来，
   只要在 app.js 的 statCell 里把 <i class="idc-cp-ico"> 写回去即可。 */
.idc-cp-ico{
  display: inline-flex; align-items: center; justify-content: center;
  width: 9px; height: 9px; margin-left: 3px;
  vertical-align: -1px; opacity: .45;
}
.idc-cp-ico svg{ width: 9px; height: 9px; }

/* 发布记录那条：只读态三格，数字本身可点 */
button.pf-cell-num{
  padding: 0 2px; display: block; width: 100%; text-align: left;
}
.fold-post .post-row:not(.is-editing) button.pf-cell-num:active{ opacity: .55; }
.fold-post .post-row:not(.is-editing) button.pf-cell-num.copied{ opacity: .55; }

/* 键盘/桌面：给一个能看见的焦点环，手机上不会有 */
button.idc-stat:focus-visible,
button.pf-cell-num:focus-visible{
  outline: 2px solid var(--brand); outline-offset: 2px;
}

/* ⑤ V7.45：账号卡里的「邮箱」一行。
   和上面「改密码」那行保持同一种节奏，只加一条虚线分隔 ——
   邮箱和密码不是同一件事，混在一起会让人以为「改邮箱」也要原密码。
   V7.51：分组方式改成「一行 + 一行说明」，对齐细则见文件末尾 ⑦。 */
.st-acct.st-acct-mail{
  margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.st-acct.st-acct-mail .db-state.is-ok{ color: var(--brand); }

/* ⑥ V7.49：贴边小球小一号。
   46px 的兔子球拖到左边会压在卡片上、盖住「今日聚焦」的标题，用户说「再小一点」。
   只缩收起态（`.is-mini`）；展开的「我要接单」是有字的正常按钮，不动。 */
#fabBtn.is-mini{
  width: 38px; height: 38px;
}
#fabBtn.is-mini .fab-bunny{
  width: 32px; height: 35px; flex: 0 0 32px;
}
#fabBtn.is-mini .fab-bunny svg{
  width: 32px; height: 35px;
}

/* ⑦ V7.51（2026-12-07）· 账号卡重排：所有文字落在同一条竖线上
   ------------------------------------------------------------
   用户截图指出的问题（对着像素量的）：
     1. 「● 已登录 · gao」的文字起点比下面说明段往右 13px（那个点撑出来的），
        说明段又和「邮箱：没绑定」的方框左边缘对齐 —— 三条线三种缩进；
     2. 邮箱那行套着 .db-state 的警告胶囊（琥珀底 + 边框 + 内边距），
        和右边「改密码」的胶囊挤在一起，同一行两个方块、两个高度；
     3. 两段说明用的是行内 `margin:0 0 4px`，贴着上面那行（4px），
        离下面那条虚线却有 10px —— 间距上紧下松。
   做法：给标签前面留一条 13px 的「点槽」（6px 点 + 7px 空隙），说明文字也缩进 13px。
   点和文字分处两条竖线，但所有**文字**的左边缘落在同一条线上；
   邮箱那行去掉胶囊外观（只留点 + 字，颜色跟状态走），两行同一个胶囊按钮尺寸；
   间距统一成「行 → 说明 6px」「说明 → 虚线 12px」「虚线 → 下一行 12px」。 */
#setBody .st-acct{ display: flex; flex-direction: column; align-items: stretch; gap: 6px; }
#setBody .st-acct-row{ display: flex; align-items: center; gap: 10px; min-width: 0; }
#setBody .st-acct .db-state{
  flex: 1 1 auto; min-width: 0;
  padding: 0; border: 0; border-radius: 0; background: none;
  font-size: 13.2px; font-weight: 750; line-height: 1.45;
  overflow-wrap: anywhere;
}
#setBody #authState::before,
#setBody #emailState::before{
  content: ''; display: inline-block;
  width: 6px; height: 6px; margin-right: 7px;
  border-radius: 50%; background: currentColor;
  opacity: .5; vertical-align: 1.5px;
}
#setBody #authState.is-ok::before,
#setBody #emailState.is-ok::before{ opacity: 1; }
#setBody #authState.is-bad::before,
#setBody #emailState.is-bad::before{ opacity: .85; }
/* 说明：缩进和标签文字对齐（6 + 7 = 13px），不再从最左边起 */
#setBody .st-acct-hint{
  margin: 0; padding-left: 13px;
  font-size: 11.6px; line-height: 1.7; color: var(--text-3);
}
#setBody .st-acct-hint:empty{ display: none; }

/* ⑧ V7.52（2026-12-07）· 昵称可点复制，但不再有复制图标
   ------------------------------------------------------------
   用户：「名称也支持点击复制，不要体现复制按钮」。同一张卡里
   ID / 蒲公英 / 主页链接 末尾那三颗 12px 图标一并撤了 ——
   一列复制图标比一处复制图标更吵，而且它们的宽度还在挤值的显示空间。
   现在：点（或按住 480ms）名字就复制；ID / 蒲公英 整行可点；
   主页链接点一下打开、按住才复制（data-cp-hold）。
   复制后只有 0.9 秒的颜色变化，没有浮层、没有图标。 */
.idc-me .idc-nick{
  cursor: pointer; border-radius: 6px;
  -webkit-tap-highlight-color: transparent;
  transition: color .14s, opacity .14s;
}
.idc-me .idc-nick:active{ opacity: .62; }
.idc-me .idc-nick.copied{ color: var(--brand); }
/* 图标撤掉后，值的右端多出来的空白交给省略号用 */
.idc-row .idc-v{ padding-right: 1px; }
/* 点评卡的标签列跟小红书 / 抖音对齐：原来是 52px，值是 104 起，
   另外两张是 60px / 112 起 —— 上下滚动时值那一列差 8px，一眼能看出来。 */
.idcard.is-dp .idc-k{ flex: 0 0 60px; }

/* ⑨ V7.53（2026-12-07）· 编辑接单：手机上把弹窗往外放一圈
   ------------------------------------------------------------
   用户：「这里是不是可以再往外扩展一些，不然编辑里面的信息显得很挤」。
   原来 ≤860px 是 width min(560, 100vw-32) + max-height min(90dvh, 100dvh-132)：
   390 的屏幕上左右各吃掉 16px、上下各吃掉 66px，内容区只剩 318px 宽，
   「胡子精酿H.ZI TAP ROOM(福一路店)」在折叠行里被截成「…福一路…」，
   底部四颗按钮（删除 / 到店模式 / 取消 / 保存）也擦着边。
   改成侧边 8px、上下 12px，留一条缝让人看得出这是浮在页面上的窗；
   小号确认框（modal-sm）不动 —— 那句「确定删除吗」不需要铺满屏。
   顺手把折叠行抬到 42px（拇指点击目标），摘要让出更多字宽。 */
@media (max-width: 560px){
  .modal:not(.modal-sm) .modal-panel{
    width: calc(100vw - 16px);
    max-height: calc(100dvh - 24px);
    border-radius: 22px;
  }
  .modal:not(.modal-sm) .modal-head{ padding: 14px 15px 10px; }
  .modal:not(.modal-sm) .modal-body{ padding: 14px 15px 16px; }
  /* 底部条：theme.css 里有 #orderModal .modal-foot / #quickModal .modal-foot
     这种带 id 的规则，光靠类名压不住，这里用 id 再写一遍 */
  #orderModal .modal-foot,
  #quickModal .modal-foot{
    padding: 10px 13px calc(10px + env(safe-area-inset-bottom, 0px));
  }
  #orderModal .fgroup .fgroup-title{ padding: 13px 0; }
  #orderModal .fgroup .fgroup-title .fg-sum{ max-width: 62%; }
  #orderModal .fgroup:not(.is-open) .fgroup-title .fg-sum{ max-width: 66%; }
  /* 底部按钮跟着宽一档，高度给到 40（原来 38 有点矮，拇指按不准） */
  #orderModal .modal-foot .btn{ height: 40px; min-height: 40px; }
}
