/* ============================================================
   达人备忘录 · 视觉主题（参考 V2 设计语言）
   只在 styles.css 之后覆写，不改动原有布局逻辑。
   设计令牌与卡片形态来自 V2：暖白底 + 白卡片 + 珊瑚色强调 + 16px 圆角。
   ============================================================ */

/* ---------------- 令牌：与 V2 对齐 ----------------
   这条 :root 就是默认主题「胡萝卜兔」的色板；.sk-carrot 让主题卡里的预览块
   也能用同一套值（预览块不能挂 data-skin，否则会跟着当前主题变）。 */
:root,
.sk-carrot{
  --bg: #F6F5F0;
  --bg-soft: #F0EEE7;
  --panel: #FFFFFF;
  --panel-2: #FAF9F5;
  --line: #E7E4DC;
  --line-strong: #D9D4C9;
  --text: #1B1A18;
  --text-2: #68645C;
  --text-3: #9A958B;
  --brand: #E85D4A;
  --brand-strong: #D44B38;
  --brand-soft: #FDF0EE;
  --green: #059669;
  --green-soft: #ECFDF5;
  --amber: #D97706;
  --amber-soft: #FFFBEB;
  --blue: #2563EB;
  --blue-soft: #EFF6FF;
  --purple: #7C3AED;
  --purple-soft: #F5F3FF;
  --red: #DC2626;
  --red-soft: #FEF2F2;
  --gray: #9A958B;
  --gray-soft: #F0EEE7;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 3px rgba(27,26,24,.05);
  --shadow: 0 2px 10px rgba(27,26,24,.05);
  --shadow-lg: 0 12px 32px rgba(27,26,24,.14);
  /* 主题（皮肤）用的四项：品牌色 RGB / 两档渐变 / 概览卡底色。
     换主题只改这几项，布局与阴影不动（见文件末尾「主题」一节） */
  --brand-rgb: 232,93,74;
  --hero-a: #FFF3ED;
  --hero-b: #FFFAF7;
  --brand-grad-a: linear-gradient(155deg, #FFB6A3 0%, #EE6A54 100%);
  --brand-grad-b: linear-gradient(160deg, #F4735E 0%, #E2492F 100%);
}

[data-theme="dark"]{
  --bg: #131312;
  --bg-soft: #1B1A18;
  --panel: #1D1C1A;
  --panel-2: #232220;
  --line: #32302C;
  --line-strong: #423E38;
  --text: #F4F2EC;
  --text-2: #A6A196;
  --text-3: #757067;
  --brand: #F06C59;
  --brand-strong: #FF7E6B;
  --brand-soft: rgba(240,108,89,.15);
  --green: #34D399;
  --green-soft: rgba(5,150,105,.18);
  --amber: #F59E0B;
  --amber-soft: rgba(217,119,6,.18);
  --blue: #60A5FA;
  --blue-soft: rgba(37,99,235,.18);
  --purple: #A78BFA;
  --purple-soft: rgba(124,58,237,.18);
  --red: #F87171;
  --red-soft: rgba(220,38,38,.18);
  --gray-soft: #262524;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.3);
  --shadow: 0 2px 12px rgba(0,0,0,.3);
  --shadow-lg: 0 16px 40px rgba(0,0,0,.55);
}

/* ---------------- 顶栏：压成一个紧凑的吸顶条 ---------------- */
.topbar{
  padding: 10px 14px;
  min-height: 52px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
  gap: 10px;
}
.topbar-left{ min-width: 0; }
.topbar-left h1{
  font-size: 16px; font-weight: 800; letter-spacing: -.2px;
  display: flex; align-items: center; gap: 6px;
}
.topbar-left h1::before{
  content: ''; width: 9px; height: 9px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft);
  flex: 0 0 9px;
}
.topbar-left p{ font-size: 11.5px; color: var(--text-3); margin-top: 1px; }
.topbar-right{ gap: 6px; }
.topbar-right .btn-icon{ width: auto; padding: 0 10px; }

/* 顶栏三枚图标：搜索 / 提醒（带角标）/ 深浅色 */
.top-ico{
  position: relative;
  width: 34px; height: 34px; flex: 0 0 34px;
  border: 0; background: transparent; color: var(--text);
  border-radius: 10px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s, color .15s, transform .1s;
}
.top-ico svg{ width: 19px; height: 19px; display: block; }
.top-ico:hover{ background: var(--bg-soft); }
.top-ico:active{ transform: scale(.92); }
.top-ico:focus-visible{ outline: 2px solid var(--brand); outline-offset: 2px; }
.top-ico[aria-pressed="true"]{ color: var(--brand); }

.top-badge{
  position: absolute; top: 2px; right: 1px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 99px; background: var(--red); color: #fff;
  font-size: 10px; font-weight: 800; font-style: normal; line-height: 16px;
  text-align: center; font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 2px var(--bg);
  pointer-events: none;
}

/* 明暗两枚图标互斥显示 */
.top-ico .ico-sun{ display: none; }
[data-theme="dark"] .top-ico .ico-sun{ display: block; }
[data-theme="dark"] .top-ico .ico-moon{ display: none; }

.content{ padding: 12px 14px 96px; }

/* ---------------- 卡片 ---------------- */
.card{
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.card-head{ padding: 13px 14px 0; }
.card-head h3{ font-size: 14px; font-weight: 700; }
.card-head .sub{ font-size: 11.5px; }
.card-body{ padding: 12px 14px 14px; }

/* ---------------- 按钮 ---------------- */
.btn{ height: 38px; border-radius: 10px; font-weight: 600; }
.btn-primary{
  background: var(--brand); border-color: var(--brand);
  box-shadow: 0 6px 18px -10px rgba(var(--brand-rgb),.9);
}
.btn-primary:hover{ background: var(--brand-strong); }
.btn-sm, .btn-xs{ height: 32px; border-radius: 8px; }
.icon-btn{ border-radius: 10px; }

/* ---------------- 标签：统一成胶囊 ---------------- */
.tag{
  border-radius: 99px !important;
  padding: 2px 8px; font-size: 11px; font-weight: 700;
  border: 0;
}

/* ---------------- 工作台概览卡：跟当前主题同一套配色 ---------------- */
.hero{
  position: relative; overflow: hidden;
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 12px;
  color: var(--text);
  border: 1px solid rgba(var(--brand-rgb),.20);
  background:
    radial-gradient(130% 150% at 100% 0%, rgba(var(--brand-rgb),.20) 0%, rgba(var(--brand-rgb),0) 60%),
    linear-gradient(160deg, var(--hero-a) 0%, var(--hero-b) 58%, #FFFFFF 100%);
  box-shadow: 0 14px 28px -24px rgba(180,70,45,.75);
}
[data-theme="dark"] .hero{
  background:
    radial-gradient(130% 150% at 100% 0%, rgba(var(--brand-rgb),.16) 0%, rgba(240,108,89,0) 58%),
    linear-gradient(160deg, #24211E 0%, #1D1C1A 100%);
  border-color: var(--line);
  box-shadow: 0 12px 28px -22px rgba(0,0,0,.9);
}
.hero-top{
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px;
}
.hero-scope{ font-size: 12.5px; font-weight: 800; color: var(--text-2); letter-spacing: .1px; }
.hero-seg{
  display: inline-flex; background: rgba(var(--brand-rgb),.09);
  border-radius: 99px; padding: 3px; flex-shrink: 0;
}
.hero-seg button{
  border: 0; background: transparent; color: var(--text-3);
  font-size: 11.5px; font-weight: 700; padding: 4px 10px;
  border-radius: 99px; cursor: pointer; transition: .15s;
}
.hero-seg button.on{
  background: var(--brand); color: #fff;
  box-shadow: 0 3px 8px -3px rgba(var(--brand-rgb),.7);
}

.hero-grid{
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
}
/* V7.23：六格指标一律居中。
   之前是左对齐，三列虽然等宽，但每列数字长短差得远（¥650 / ¥100 / 6 单），
   右边空一大片，看着像没排完版。居中之后轴心对齐、两侧留白对称。 */
.hero-metric{ min-width: 0; text-align: center; }
.hero-metric .lbl{
  font-size: 11px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-metric .val{
  font-size: 20px; font-weight: 800; letter-spacing: -.4px;
  margin-top: 2px; color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-metric .val small{ font-size: 11px; font-weight: 600; color: var(--text-3); margin-left: 1px; }
.hero-metric .val.warn{ color: var(--amber); }
.hero-metric .val.ok{ color: var(--green); }

/* 本年三项：三列等宽、每格两行。两套口径共用一套格子，切模式不跳高度 */
.hero-more{
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  margin-top: 12px;
  padding-top: 10px; border-top: 1px dashed var(--line);
}
.hero-more > span{ min-width: 0; display: flex; flex-direction: column; gap: 2px; align-items: center; text-align: center; }
.hero-more em{
  font-style: normal; font-size: 10.5px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-more b{
  font-size: 13.5px; font-weight: 750; color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.hero-more b i{ font-style: normal; font-weight: 600; font-size: 11px; color: var(--text-3); }

.hero-goal{
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--line);
}
.hero-goal-row{
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--text-2); margin-bottom: 7px; gap: 8px;
}
.hero-goal-row strong{ color: var(--brand); }
.hero-goal-btn{
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--brand); font-size: 12px; font-weight: 700; text-decoration: underline;
}
.hero-track{
  height: 7px; border-radius: 99px;
  background: rgba(var(--brand-rgb),.13); overflow: hidden;
}
[data-theme="dark"] .hero-track{ background: rgba(255,255,255,.1); }
.hero-fill{
  height: 100%; border-radius: 99px;
  background: linear-gradient(90deg, rgba(var(--brand-rgb),.55), var(--brand));
  transition: width .35s ease;
}

/* ---------------- 聚焦条目：左侧色条 ---------------- */
.fc-group{ margin-bottom: 10px; }
.fc-item{
  position: relative; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--line);
  background: var(--panel); box-shadow: var(--shadow-sm);
  padding: 11px 12px 11px 15px;
  margin-bottom: 8px;
}
.fc-item::before{
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--blue);
}
.fc-group.g-blue .fc-item::before{ background: var(--blue); }
.fc-group.g-purple .fc-item::before{ background: var(--purple); }
.fc-group.g-red .fc-item::before{ background: var(--red); }
.fc-main b{ font-size: 15px; font-weight: 700; }
.fc-main span{ font-size: 12px; color: var(--text-2); }

/* ---------------- 订单卡片 ---------------- */
.order{
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.order:hover{ border-color: var(--line-strong); }

/* ---------------- 待办 / 时间线 ---------------- */
.todo-item{
  border-radius: 12px;
  padding: 10px 10px;
}
.todo-main b{ font-size: 14.5px; font-weight: 700; }
.tl-item{
  border-radius: 12px; padding: 10px 11px;
  border: 1px solid transparent;
}
.tl-item:hover{ background: var(--panel-2); border-color: var(--line); }

/* ---------------- 底部导航 ---------------- */
.nav-item.active{ color: var(--brand); }
.nav-item.active svg{ stroke-width: 2.2; }

/* ---------------- FAB：圆形改胶囊（V2 形态） ---------------- */
#fabBtn{
  right: 16px;
  width: auto; height: 52px;
  padding: 0 18px;
  border-radius: 99px;
  gap: 6px;
  font-size: 15px; font-weight: 700;
  box-shadow: 0 8px 24px rgba(var(--brand-rgb),.38);
}
#fabBtn svg{ width: 20px; height: 20px; }
#fabBtn .fab-txt{ display: inline; }

/* ---------------- 抽屉：圆角与把手 ---------------- */
.modal-panel{ border-radius: var(--r-lg); }
.modal-head h2{ font-size: 16px; font-weight: 800; }

/* ---------------- 弹窗头部：标题 / 工具 / 关闭 各归其位 ---------------- */
.head-split{
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  grid-template-areas:
    "main close"
    "util util";
  align-items: start;
  gap: 6px 12px;
  padding: 16px 16px 12px;
}
.head-split .mh-main{ grid-area: main; min-width: 0; }
.head-split .mh-main h2{ font-size: 17px; font-weight: 800; line-height: 1.3; letter-spacing: -.2px; }
.head-split .mh-main p{
  margin-top: 3px; font-size: 12px; line-height: 1.4; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.head-split .mh-close{
  grid-area: close; width: 30px; height: 30px; border-radius: 10px;
  background: var(--panel-2); color: var(--text-3);
}
.mh-util{ grid-area: util; display: flex; flex-wrap: wrap; gap: 8px; }
.mh-util-btn{
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 11px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--panel-2);
  color: var(--text-2); font-size: 12.5px; font-weight: 650;
  cursor: pointer; transition: transform .14s, background .14s;
}
.mh-util-btn svg{ width: 14px; height: 14px; flex: 0 0 14px; opacity: .75; }
.mh-util-btn:active{ transform: scale(.97); background: var(--bg-soft); }
@media (min-width: 641px){
  .head-split{
    grid-template-columns: minmax(0,1fr) auto auto;
    grid-template-areas: "main util close";
    align-items: center; gap: 6px 10px; padding: 18px 20px 12px;
  }
}

/* ---------------- 筛选胶囊：选中用深色 ---------------- */
.seg button.on, .seg button.is-on{
  background: var(--text); color: var(--panel); border-color: var(--text);
}

/* ---------------- 头像：可点击更换 ---------------- */
.avatar-btn{
  position: relative; padding: 0; border: 0; cursor: pointer; overflow: hidden;
  background: linear-gradient(150deg, #FF9E86, var(--brand));
}
.avatar-btn img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.avatar-btn .av-edit{
  position: absolute; right: 3px; bottom: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255,255,255,.95); color: var(--brand-strong);
  display: grid; place-items: center; box-shadow: 0 1px 4px rgba(0,0,0,.22);
  opacity: 1; transition: opacity .15s, transform .15s;
}
.avatar-btn .av-edit svg{ width: 12px; height: 12px; }
.avatar-btn:hover .av-edit{ transform: scale(1.08); }

/* ---------------- BF 附件预览 ---------------- */
.fv-wrap{
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); border-radius: 12px; padding: 8px; min-height: 160px;
}
.fv-img{ max-width: 100%; max-height: 62vh; object-fit: contain; border-radius: 8px; display: block; }
.fv-video{ max-width: 100%; max-height: 62vh; border-radius: 12px; display: block; background: #000; }
.fv-frame{ width: 100%; height: 62vh; border: 0; border-radius: 12px; background: #fff; }
.fv-text{
  margin: 0; max-height: 62vh; overflow: auto;
  background: var(--bg-soft); border-radius: 12px; padding: 12px;
  font-size: 12.5px; line-height: 1.75; white-space: pre-wrap; word-break: break-word;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.fv-none{
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 40px 16px; text-align: center; color: var(--text-2);
}
.fv-none svg{ width: 36px; height: 36px; color: var(--text-3); }
.fv-none b{ font-size: 14.5px; color: var(--text); font-weight: 700; }
.fv-none span{ font-size: 12px; color: var(--text-3); }

/* ---------------- 语音录入 ---------------- */
/* 所有弹窗同为 z-index:100，后插入 DOM 的会盖住前面的。
   「快速记一单」在 pasteModal 之后，点它里面的麦克风时语音面板就会被压在下面——
   这里显式抬高一层，保证从任何入口点语音都能看见。 */
#pasteModal{ z-index: 130; }

/* 快速记一单：粘贴 / 语音 并排 */
.qc-top-row{ display: flex; gap: 8px; align-items: stretch; margin-bottom: 16px; }
.qc-top-row .qc-paste{ flex: 1; min-width: 0; margin-bottom: 0; }
.qc-top-row .qc-paste span{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qc-voice{
  flex: 0 0 46px; width: 46px; height: 44px;
  border: 1px dashed color-mix(in srgb, var(--brand) 45%, transparent);
  border-radius: 11px; cursor: pointer;
  background: var(--brand-soft); color: var(--brand-strong);
  display: grid; place-items: center;
  transition: transform .15s, background .15s;
}
.qc-voice:active{ transform: scale(.94); }
.qc-voice svg{ width: 18px; height: 18px; }

.voice-panel{
  display: flex; align-items: center; gap: 12px;
  padding: 12px; margin-bottom: 10px;
  border-radius: 16px;
  background: var(--brand-soft);
  border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent);
}
.voice-mic{
  position: relative; flex: 0 0 50px;
  width: 50px; height: 50px; border-radius: 50%; border: 0;
  background: var(--brand); color: #fff; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 8px 18px -9px rgba(var(--brand-rgb),.95);
  transition: transform .15s;
}
.voice-mic svg{ width: 22px; height: 22px; }
.voice-mic:active{ transform: scale(.94); }
.voice-mic[disabled]{ opacity: .45; cursor: not-allowed; box-shadow: none; }
.voice-mic.is-on::after{
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--brand); opacity: .5;
  animation: vpulse 1.4s ease-out infinite;
}
@keyframes vpulse{ 0%{ transform: scale(.9); opacity: .55; } 100%{ transform: scale(1.35); opacity: 0; } }

.voice-info{ min-width: 0; flex: 1; }
.voice-info b{ display: block; font-size: 13.5px; font-weight: 700; }
.voice-info span{ display: block; font-size: 11.5px; line-height: 1.55; color: var(--text-2); margin-top: 3px; }

.voice-bars{ display: flex; align-items: flex-end; gap: 3px; height: 26px; flex: 0 0 auto; }
.voice-bars i{ width: 3px; height: 6px; border-radius: 2px; background: var(--brand); opacity: .4; }
.voice-bars.is-live i{ animation: vbar .9s ease-in-out infinite; opacity: 1; }
.voice-bars.is-live i:nth-child(2){ animation-delay: .12s; }
.voice-bars.is-live i:nth-child(3){ animation-delay: .24s; }
.voice-bars.is-live i:nth-child(4){ animation-delay: .36s; }
.voice-bars.is-live i:nth-child(5){ animation-delay: .48s; }
@keyframes vbar{ 0%,100%{ height: 6px; } 50%{ height: 22px; } }

.voice-warn{
  margin: 0 0 10px; padding: 10px 12px;
  border-radius: 12px; font-size: 12px; line-height: 1.7;
  color: var(--amber); background: var(--amber-soft);
  border: 1px solid color-mix(in srgb, var(--amber) 22%, transparent);
}

/* ---------------- 提醒中心：浏览器提醒说明行 ---------------- */
.notify-row{ display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.notify-row p{
  flex: 1 1 240px; min-width: 0; margin: 0;
  font-size: 12.5px; line-height: 1.65; color: var(--text-2);
}
.notify-row .btn{ flex: 0 0 auto; }
@media (max-width: 480px){
  .notify-row{ align-items: flex-start; gap: 8px; }
  .notify-row p{ flex-basis: 100%; }
}

/* ---------------- 空态 ---------------- */
.empty-state{ color: var(--text-3); }

/* ---------------- 手机端微调 ---------------- */
@media (max-width: 768px){
  .content{ padding: 10px 12px calc(104px + env(safe-area-inset-bottom)); }
  .topbar{ padding: 9px 12px; }
  .topbar-right .btn-icon span{ display: none; }
  .topbar-right .btn-icon{ width: 44px; padding: 0; justify-content: center; }
  /* 手指靶面：桌面 34px 偏小，手机上给到 40px，间距压到 2px 避免挤掉标题 */
  .top-ico{ width: 40px; height: 40px; flex-basis: 40px; }
  .top-ico svg{ width: 21px; height: 21px; }
  .topbar-right{ gap: 4px; }
  .hero{ padding: 15px 14px; }
  .hero-metric .val{ font-size: 19px; }
  #fabBtn{ bottom: calc(72px + env(safe-area-inset-bottom)); }
  #addBtn{ display: none; }
  /* 手机端卡片改纵向后，基类的 align-items:center 会让内容按自身宽度居中，
     内容少的单子就会莫名缩进——必须拉回 stretch */
  .order, .fc-item, .todo-item, .tl-item{ align-items: stretch; }
  .o-actions{ justify-content: flex-start; align-self: stretch; width: 100%; }
  .content{ padding-bottom: calc(142px + env(safe-area-inset-bottom)); }
}

@media (max-width: 360px){
  .hero-metric .val{ font-size: 17px; }
  .hero-grid{ gap: 6px; }
}

/* ============================================================
   兔子主题 V1.9（2026-12-01）
   三张设计图：顶部导航、底部导航、悬浮按钮。
   配色：奶白 #FFFFFF / 暖奶油 #F6F5F0 / 珊瑚粉 #E85D4A / 腮红 #F9D9D4
   ============================================================ */
:root{
  --blush: #F9D9D4;
  --blush-soft: #FDF2EF;
  --ink: #4A3B36;
}

/* ---------------- ① 顶部导航 ---------------- */
.topbar{
  padding: 9px 14px;
  min-height: 62px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  gap: 8px;
}
.topbar-left{ display: flex; align-items: center; gap: 10px; min-width: 0; }

/* 同步灯：头像删掉后，状态点单独站在标题左边 */
.sync-dot{
  flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-3); opacity: .45;
  box-shadow: 0 0 0 3px rgba(154,160,166,.14);
  transition: background .2s ease, opacity .2s ease, box-shadow .2s ease;
}
html[data-sync="ok"] .sync-dot{
  background: #34d399; opacity: 1;
  box-shadow: 0 0 0 3px rgba(52,211,153,.20);
}
html[data-sync="pending"] .sync-dot{ background: #fbbf24; opacity: 1; box-shadow: 0 0 0 3px rgba(251,191,36,.18); }
html[data-sync="offline"] .sync-dot{ background: #9aa0a6; opacity: 1; box-shadow: 0 0 0 3px rgba(154,160,166,.18); }

/* 兔子头像方块 */
.tb-av{
  position: relative; flex: 0 0 42px;
  width: 42px; height: 42px; padding: 0; border: 0; cursor: pointer;
  border-radius: 14px; overflow: hidden;
  background: var(--brand-grad-a);
  box-shadow: 0 8px 18px -11px rgba(var(--brand-rgb),1), inset 0 -2px 0 rgba(120,40,25,.10);
  display: grid; place-items: center;
  transition: transform .15s;
}
.tb-av:active{ transform: scale(.94); }
.tb-av img{ position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tb-av-bunny{ display: grid; place-items: center; width: 100%; height: 100%; }
.tb-av-bunny svg{ width: 34px; height: 34px; display: block; }

.tb-text{ min-width: 0; overflow: hidden; }
.topbar-left h1{ font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-left h1::before{
  width: 7px; height: 7px; flex-basis: 7px;
  background: var(--blush);
  box-shadow: 0 0 0 3px var(--blush-soft);
}
.topbar-left p{
  font-size: 11px; color: var(--text-3);
  padding-bottom: 3px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  /* 手写感的下划线 */
  background: linear-gradient(90deg, transparent 2%, var(--blush) 6%, transparent 94%) no-repeat left bottom / 100% 3px;
}

/* 爱心小按钮 */
.top-fav{
  width: 44px; height: 34px; flex: 0 0 auto;
  border: 0; border-radius: 12px; cursor: pointer;
  background: var(--brand-grad-a);
  color: #fff; display: grid; place-items: center;
  box-shadow: 0 8px 16px -10px rgba(var(--brand-rgb),.95);
  transition: transform .15s;
}
.top-fav:active{ transform: scale(.93); }
.top-fav svg{ width: 16px; height: 16px; }

/* ---------------- ③ 悬浮按钮：兔子抱本 ---------------- */
#fabBtn{
  height: 56px;
  padding: 0 20px 0 10px;
  gap: 7px;
  border-radius: 99px;
  background: var(--brand-grad-b);
  box-shadow: 0 12px 26px -12px rgba(var(--brand-rgb),1), inset 0 -2px 0 rgba(150,50,30,.18);
}
.fab-bunny{ width: 44px; height: 48px; flex: 0 0 44px; display: grid; place-items: center; margin-top: -2px; }
.fab-bunny svg{ width: 44px; height: 48px; display: block; filter: drop-shadow(0 3px 4px rgba(120,40,25,.22)); }
.fab-plus{ width: 19px; height: 19px; }
#fabBtn .fab-txt{ font-size: 15.5px; font-weight: 800; letter-spacing: .5px; }

/* 掌印只在手机端出现 */
.nav-paws{ display: none; }

/* ---------------- ② 底部导航（手机端） ---------------- */
@media (max-width: 860px){
  /* 外层让出空间，让兔耳和悬浮胶囊都露出来 */
  .sidebar{
    background: transparent;
    border-top: 0;
    padding: 0;
    height: auto;
    filter: none;
  }
  /* V5.5：把底部安全区从「外边距」改成「内边距」，胶囊后半段不再悬空 */
  .nav{
    position: relative;
    margin: 0 10px 0;
    padding: 9px 6px calc(9px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    background: #fff;
    border: 1px solid rgba(240,223,217,.9);
    border-bottom: 0;
    box-shadow: 0 -10px 30px -16px rgba(74,59,54,.28), 0 2px 6px -3px rgba(74,59,54,.12);
    gap: 0;
  }
  [data-theme="dark"] .nav{ background: var(--panel); border-color: var(--line); }

  /* 兔耳：从胶囊顶边探出来，左右各一对 */
  .nav::before{
    content: ''; position: absolute; left: 0; right: 0; bottom: 100%;
    height: 36px; margin-bottom: -1px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 370 36' preserveAspectRatio='none'%3E%3Cg transform='translate(33 22) rotate(-12)'%3E%3Cellipse rx='8' ry='17' fill='%23FFFFFF' stroke='%23F0DFD9' stroke-width='1.6'/%3E%3Cellipse cy='2' rx='3.6' ry='10' fill='%23F9D9D4'/%3E%3C/g%3E%3Cg transform='translate(50 21) rotate(4)'%3E%3Cellipse rx='8' ry='18' fill='%23FFFFFF' stroke='%23F0DFD9' stroke-width='1.6'/%3E%3Cellipse cy='2' rx='3.6' ry='11' fill='%23F9D9D4'/%3E%3C/g%3E%3Cg transform='translate(320 21) rotate(-4)'%3E%3Cellipse rx='8' ry='18' fill='%23FFFFFF' stroke='%23F0DFD9' stroke-width='1.6'/%3E%3Cellipse cy='2' rx='3.6' ry='11' fill='%23F9D9D4'/%3E%3C/g%3E%3Cg transform='translate(337 22) rotate(12)'%3E%3Cellipse rx='8' ry='17' fill='%23FFFFFF' stroke='%23F0DFD9' stroke-width='1.6'/%3E%3Cellipse cy='2' rx='3.6' ry='10' fill='%23F9D9D4'/%3E%3C/g%3E%3C/svg%3E") no-repeat left bottom / 100% 100%;
    pointer-events: none;
  }
  /* 深色下兔耳压暗，别在深底上亮得刺眼 */
  [data-theme="dark"] .nav::before{ filter: brightness(.26) saturate(.5); opacity: .95; }

  /* 掌印点缀：落在四个入口的间隙上 */
  .nav-paws{ display: block; position: absolute; inset: 0; pointer-events: none; }
  .nav-paws i{
    position: absolute; top: 26%; width: 15px; height: 15px; margin-left: -7.5px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23F5BDB4'%3E%3Cellipse cx='12' cy='16.2' rx='6.2' ry='5'/%3E%3Ccircle cx='5.4' cy='9.6' r='2.5'/%3E%3Ccircle cx='10' cy='6.4' r='2.7'/%3E%3Ccircle cx='15.2' cy='6.6' r='2.6'/%3E%3Ccircle cx='19.4' cy='10.4' r='2.3'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
    opacity: .85;
  }
  .nav-paws i:nth-child(1){ left: 25%; }
  .nav-paws i:nth-child(2){ left: 50%; }
  .nav-paws i:nth-child(3){ left: 75%; }

  /* 四个入口：图标底色块 + 选中圆弧 */
  .nav-item{
    position: relative;
    gap: 4px; padding: 4px 2px 2px;
    min-height: 52px;
    font-size: 10.5px; font-weight: 600;
    color: var(--text-3);
    border-radius: 14px;
  }
  .nav-item svg{
    width: 20px; height: 20px;
    padding: 5px; box-sizing: content-box;
    border-radius: 12px;
    transition: background .18s, color .18s, transform .18s;
  }
  .nav-item:active svg{ transform: scale(.92); }
  .nav-item.is-active{ background: transparent; color: var(--brand-strong); font-weight: 700; }
  .nav-item.is-active svg{ background: var(--brand-soft); }
  .nav-item.is-active::after{
    content: ''; position: absolute; left: 50%; bottom: 0;
    width: 20px; height: 6px; transform: translateX(-50%);
    border-bottom: 2.5px solid var(--brand);
    border-radius: 0 0 50% 50% / 0 0 100% 100%;
  }
  .nav-badge{ top: 0; right: 50%; margin-right: -22px; box-shadow: 0 0 0 2px #fff; }

  /* 让出胶囊 + 兔耳（36px）的高度，别让耳朵从「记一单」后面探出来 */
  #fabBtn{ bottom: calc(116px + env(safe-area-inset-bottom)); z-index: 62; }
  .content{ padding-bottom: calc(186px + env(safe-area-inset-bottom)); }
}

@media (max-width: 380px){
  #fabBtn .fab-txt{ font-size: 14.5px; }
  .nav-item{ font-size: 10px; }
}

/* ============================================================
   V1.9.1 表单弹窗 / 统计小方块 / ID 长按复制 / 提醒说明
   ============================================================ */

/* ---------------- 通用表单弹窗 ---------------- */
#formModal .modal-body{ padding: 16px 18px 6px; }
.fm-field{ display: block; margin-bottom: 12px; }
.fm-lab{
  display: flex; align-items: baseline; gap: 6px;
  font-size: 12px; font-weight: 650; color: var(--text-2);
  margin: 0 0 6px 2px;
}
.fm-lab em{ font-style: normal; font-weight: 500; font-size: 11px; color: var(--text-3); }
#formModal .qc-input{
  height: 44px; font-size: 14.5px;
  border-radius: 13px;
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 0 13px;
  transition: border-color .16s, box-shadow .16s, background .16s;
}
#formModal .qc-input:focus{
  outline: none;
  background: var(--panel);
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}
#formModal .qc-input::placeholder{ color: var(--text-3); opacity: .8; }
.fm-tip{
  margin: 2px 2px 6px; font-size: 11.5px; line-height: 1.7; color: var(--text-3);
}
#formModal .modal-foot{ padding: 12px 18px; }

/* ---------------- 档案页：数据统计小方块 ---------------- */
.pf-tile{
  flex: 0 0 auto; width: 62px; height: 62px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  border: 1px solid var(--line); border-radius: 15px;
  background: linear-gradient(165deg, #FFF6F3 0%, #FDECE7 100%);
  color: var(--brand-strong); cursor: pointer;
  transition: transform .14s, box-shadow .14s;
}
[data-theme="dark"] .pf-tile{ background: linear-gradient(165deg, #2C2422 0%, #332724 100%); }
.pf-tile svg{ width: 19px; height: 19px; }
.pf-tile span{ font-size: 10px; font-weight: 700; letter-spacing: .2px; }
.pf-tile:active{ transform: scale(.94); }
@media (hover: hover){ .pf-tile:hover{ box-shadow: 0 8px 18px -12px rgba(var(--brand-rgb),.9); } }

/* ---------------- 平台 ID 长按复制 ---------------- */
.pi.copyable{
  display: flex; width: 100%; max-width: 100%; align-items: flex-start; gap: 5px;
  padding: 2px 0 2px 0; margin-left: -2px;
  border-radius: 8px;
  -webkit-touch-callout: none;
  -webkit-user-select: none; user-select: none;
  touch-action: manipulation;
  transition: background .15s, color .15s;
}
/* V5.15：文字占满剩余空间，复制按钮固定在最右边一列。
   之前按钮跟着文字走，链接长短不同 → 图标位置参差不齐。
   图标锚在首行顶部（不是整个元素居中）—— 文字换行时，
   居中会让图标往下掉半行，几个图标就错开了。 */
/* 标签本身不折行；值另起一个元素自己截断（见 .pi-mono） */
.pi.copyable .pi-txt{
  flex: 0 1 auto; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding-right: 2px;
  line-height: 1.55;
}
/* V5.16：UID 行 —— 标签和值都不折行，超长时值自己省略。
   原来用 break-all，24 位 hex 末尾会掉一个孤零零的「30f50」。 */
.pi.copyable .pi-mono{
  flex: 1 1 auto; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px; letter-spacing: .1px;
}
.pi.copyable .cp-btn{ align-self: flex-start; margin-top: 0; }
.pi.copyable:active{ background: var(--brand-soft); }
.cp-btn{
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 22px; height: 22px; padding: 0;
  border: 0; border-radius: 7px; cursor: pointer;
  background: transparent; color: var(--text-3);
  transition: background .15s, color .15s, transform .15s;
}
.cp-btn svg{ width: 13px; height: 13px; }
.cp-btn:active{ transform: scale(.9); }
@media (hover: hover){
  .cp-btn:hover{ background: var(--brand-soft); color: var(--brand-strong); }
}
.pi.copied{ background: var(--brand-soft); color: var(--brand-strong); }
.pi.copied .cp-btn{ color: var(--brand-strong); }

/* ---------------- 提醒说明弹窗 ---------------- */
#notifyBody .nw-why{
  margin: 0 0 14px; font-size: 13px; line-height: 1.85; color: var(--text-2);
}
#notifyBody .nw-rec{
  padding: 13px 14px; border-radius: 14px;
  background: var(--brand-soft);
  border: 1px dashed color-mix(in srgb, var(--brand) 32%, transparent);
}
#notifyBody .nw-rec b{ display: block; font-size: 13px; color: var(--brand-strong); margin-bottom: 5px; }
#notifyBody .nw-rec p{ margin: 0; font-size: 12px; line-height: 1.75; color: var(--text-2); }
#notifyBody .nw-alt{
  margin: 12px 0 2px; font-size: 11.5px; line-height: 1.7; color: var(--text-3);
}

@media (max-width: 860px){
  #formModal .modal-body{ max-height: 62vh; }
  .pf-tile{ width: 58px; height: 58px; }
  .pf-tile span{ font-size: 9.5px; }
}

/* 双列字段 */
.fm-row{ display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 10px; }
.fm-row .fm-field{ min-width: 0; }

/* ============================================================
   V2.0 成片与文案（订单里的「拍完就能发」）
   ============================================================ */

/* ---------------- 成片素材 ---------------- */
.media-drop{ padding: 15px; }
.media-grid{
  display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px; margin-top: 10px;
}
.media-cell{
  position: relative; aspect-ratio: 1 / 1; min-width: 0;
  border-radius: 12px; overflow: hidden; cursor: pointer;
  background: var(--bg-soft); border: 1px solid var(--line);
  -webkit-tap-highlight-color: transparent;
  transition: transform .14s;
}
.media-cell:active{ transform: scale(.97); }
.media-thumb{ position: absolute; inset: 0; display: grid; place-items: center; color: var(--text-3); }
.media-thumb svg{ width: 22px; height: 22px; opacity: .45; }
.media-thumb img, .media-thumb video{ width: 100%; height: 100%; object-fit: cover; display: block; }
.media-badge{
  position: absolute; left: 5px; bottom: 5px; z-index: 2;
  padding: 1px 5px; border-radius: 5px;
  background: rgba(18,16,14,.62); color: #fff;
  font-size: 9.5px; font-style: normal; font-weight: 600; letter-spacing: .2px;
}
.media-play{ position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.media-play::after{
  content: ''; width: 0; height: 0; margin-left: 3px;
  border-left: 11px solid rgba(255,255,255,.94);
  border-top: 7px solid transparent; border-bottom: 7px solid transparent;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.45));
}
.media-del{
  position: absolute; top: 4px; right: 4px; z-index: 3;
  width: 21px; height: 21px; padding: 0; display: grid; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(18,16,14,.56); color: #fff;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.media-del svg{ width: 11px; height: 11px; }
.media-del:active{ background: rgba(200,40,30,.8); }

/* ---------------- 三套文案 ---------------- */
.copy-tabs{ display: flex; gap: 6px; margin-bottom: 10px; }
.ct-tab{
  flex: 1 1 0; min-width: 0; height: 36px; padding: 0 4px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); color: var(--text-2);
  font-family: inherit; font-size: 12px; font-weight: 650; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s, background .15s, color .15s;
}
.ct-tab b{ font-weight: inherit; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ct-tab i{
  flex: 0 0 17px; width: 17px; height: 17px; border-radius: 5px;
  display: grid; place-items: center;
  font-style: normal; font-size: 9.5px; font-weight: 800; color: #fff;
}
.ct-tab i.xhs{ background: #FF2E4D; }
.ct-tab i.douyin{ background: #161823; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.ct-tab i.dianping{ background: #FF6633; }
.ct-tab u{
  text-decoration: none; flex: 0 0 auto;
  font-size: 9px; font-weight: 700; letter-spacing: .1px;
  padding: 1px 4px; border-radius: 5px;
  color: var(--text-3); background: var(--bg-soft);
}
.ct-tab u.is-pub{ color: var(--green); background: var(--green-soft); }
.ct-tab.on{ border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }
.ct-tab.on u{ background: rgba(255,255,255,.6); }
[data-theme="dark"] .ct-tab.on u{ background: rgba(0,0,0,.25); }
@media (hover: hover){ .ct-tab:hover{ border-color: var(--line-strong); } }

.copy-panel{
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--panel-2); padding: 12px;
}
.cp-head{ display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 5px; }
.cp-lab{ font-size: 11.5px; font-weight: 650; color: var(--text-2); letter-spacing: .2px; }
.cp-count{ font-size: 10.5px; color: var(--text-3); font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 8px; }
.cp-count.over{ color: var(--red); font-weight: 700; }
/* V6.1：正文长的时候能收起（只露 5 行），点「展开」或点框本身放开 */
.cp-fold{
  border: 1px solid color-mix(in srgb, var(--brand) 26%, transparent);
  background: color-mix(in srgb, var(--brand) 9%, transparent);
  padding: 2px 8px; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 10.5px; font-weight: 500; color: var(--brand-strong, var(--brand));
  line-height: 1.5;
}
.cp-fold:hover{ background: color-mix(in srgb, var(--brand) 16%, transparent); }
.cp-title, .cp-tags input{
  width: 100%; height: 40px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 11px;
  background: var(--panel); color: var(--text);
  /* 跟 AI 回复同一套字：15px / 400，不再加粗 */
  font-family: inherit; font-size: 14.5px; font-weight: 400;
}
.cp-body{
  width: 100%; min-height: 170px; resize: vertical; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 11px;
  background: var(--panel); color: var(--text);
  font-family: inherit; font-size: 15px; line-height: 1.78; font-weight: 400;
}
.cp-body.is-fold{ min-height: 96px; max-height: 96px; overflow: hidden; resize: none; }
.cp-title:focus, .cp-body:focus, .cp-tags input:focus{
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent);
}
.cp-tags{ display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.cp-tags > span{ flex: 0 0 auto; font-size: 11.5px; font-weight: 650; color: var(--text-2); }
.cp-tags input{ height: 38px; font-size: 14px; font-weight: 400; }
.cp-acts{ display: flex; flex-wrap: wrap; gap: 7px; margin-top: 11px; }
.cp-acts .btn{ flex: 1 1 46%; height: 36px; font-size: 12.5px; }
.cp-acts .btn-primary{ flex: 1 1 100%; order: -1; }
.cp-edited{ margin: 9px 2px 0; font-size: 10.5px; line-height: 1.65; color: var(--amber); }
.cp-empty{ margin: 0; padding: 20px 12px; text-align: center; font-size: 12px; color: var(--text-3); }

@media (max-width: 420px){
  .ct-tab{ font-size: 11.5px; gap: 4px; }
  .ct-tab u:not(.is-pub){ display: none; }
  .media-grid{ grid-template-columns: repeat(auto-fill, minmax(68px, 1fr)); gap: 7px; }
  .copy-panel{ padding: 11px; }
}

/* ---------------- 窄屏收口：保证「保存」永远在屏内 ---------------- */
@media (max-width: 400px){
  #orderModal .modal-foot{ flex-wrap: wrap; gap: 6px; padding: 11px 12px; }
  /* V5.38：这里原来把 .grow 藏了 —— 那时候有 5 个按钮（含「导出日历」），
     不藏的话挤不下。现在「导出日历」去掉了，只剩 4 个（合计约 240px），
     再把 grow 藏掉按钮就全堆在左边、右边空一大块。
     留着 grow：删除 / 到店模式 靠左，取消 / 保存 靠右，这才是原本的意图。 */
  #orderModal .modal-foot .btn{ padding: 0 11px; font-size: 12.5px; }
}

/* V5.38：底部按钮统一高度。
   原来「到店模式」是 btn-sm，窄屏下 min-height 38；「取消 / 保存」吃的是
   .btn 的 min-height 44；「删除」又是另一个高度 —— 四个并排像阶梯。
   这里统一压到 38（跟到店模式一条线），宽屏也一起收，免得换设备又不一样。 */
#orderModal .modal-foot .btn{ height: 38px; min-height: 38px; }

@media (max-width: 380px){
  /* 窄屏顶栏：五个图标挤不下，头像与图标各收一号，别把「工作台」截成两个字 */
  .topbar{ padding: 8px 10px; gap: 6px; min-height: 58px; }
  .topbar-left{ gap: 8px; flex: 1 1 auto; }
  .topbar-left h1{ font-size: 15px; gap: 5px; }
  .topbar-left h1::before{ width: 12px; height: 12px; flex: 0 0 12px; }
  .top-ico{ width: 34px; height: 34px; flex-basis: 34px; }
  .top-ico svg{ width: 18px; height: 18px; }
  .top-fav{ width: 36px; height: 32px; flex-basis: 36px; }
  .top-fav svg{ width: 14px; height: 14px; }
  .topbar-right{ gap: 2px; }
  /* 「已发」收成一个小绿点，别把平台名挤掉 */
  .ct-tab u.is-pub{
    width: 6px; height: 6px; padding: 0; border-radius: 50%;
    font-size: 0; background: var(--green);
  }
  .ct-tab.on u.is-pub{ background: var(--green); }
}

/* 弹窗打开时把 toast 抬到底栏之上，别压住「保存」 */
body:has(.modal.open) .toast-wrap{ bottom: calc(92px + env(safe-area-inset-bottom)); }
/* 手机端底栏是悬浮胶囊，toast 停在 24px 会一头撞进去——统一抬到胶囊上面 */
@media (max-width: 860px){
  .toast-wrap{ bottom: calc(100px + env(safe-area-inset-bottom)); }
}

/* ============================================================
   V2.1 大模型润色（ai.js）
   ============================================================ */

/* 润色是「加工」，复制整篇是「发出」——用浅底描边把两者分开，不让两颗实心按钮打架 */
.cp-acts .btn-ai{
  flex: 1 1 100%; order: -3;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 12px;
  border: 1px solid color-mix(in srgb, var(--brand) 34%, transparent);
  border-radius: 12px;
  color: var(--brand-strong);
  font-family: inherit; font-size: 13px; font-weight: 700; letter-spacing: .2px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--brand) 9%, var(--panel)) 0%,
    color-mix(in srgb, var(--brand) 15%, var(--panel)) 100%);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform .13s, background .13s, opacity .13s;
}
.cp-acts .btn-ai svg{ width: 15px; height: 15px; flex: 0 0 15px; opacity: .9; }
.cp-acts .btn-ai:active{ transform: scale(.985); background: color-mix(in srgb, var(--brand) 20%, var(--panel)); }
.cp-acts .btn-ai:disabled{ opacity: .62; }
.cp-acts .btn-ai.is-busy svg{ animation: aiSpin 1.6s linear infinite; }
@keyframes aiSpin{ to{ transform: rotate(360deg); } }
@media (hover: hover){
  .cp-acts .btn-ai:hover{ background: color-mix(in srgb, var(--brand) 15%, var(--panel)); }
}

.cp-edited.ai-done{ color: var(--green); }

/* ---------------- 说明面板 ---------------- */
#aiBody .ai-why{
  margin: 0 0 12px; font-size: 13px; line-height: 1.8; color: var(--text-2);
}
#aiBody .ai-way{
  margin-bottom: 9px; padding: 12px 13px;
  border: 1px solid var(--line); border-radius: 13px;
  background: var(--panel-2);
}
#aiBody .ai-way b{
  display: block; margin-bottom: 5px;
  font-size: 12.5px; line-height: 1.55; font-weight: 700; color: var(--text);
}
#aiBody .ai-way p{
  margin: 0; font-size: 11.5px; line-height: 1.78; color: var(--text-3);
}
#aiBody .ai-way p b{ display: inline; color: var(--brand-strong); font-weight: 700; }

#aiBody .ai-back{
  margin-top: 10px; padding: 12px 13px;
  border: 1px dashed color-mix(in srgb, var(--brand) 34%, transparent);
  border-radius: 13px; background: var(--brand-soft);
}
#aiBody .ai-back[hidden]{ display: none; }
#aiBody .ai-back-lab{
  display: block; margin-bottom: 6px;
  font-size: 11.5px; font-weight: 700; color: var(--brand-strong);
}
#aiBody .ai-back textarea{
  width: 100%; box-sizing: border-box; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); color: var(--text);
  font-family: inherit; font-size: 12px; line-height: 1.7;
  resize: vertical; outline: none;
}
#aiBody .ai-back textarea:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 13%, transparent);
}
#aiBody .ai-back .btn{ width: 100%; height: 36px; margin-top: 8px; font-size: 12.5px; }

#aiBody .ai-tip{
  margin: 11px 2px 0; font-size: 11px; line-height: 1.75; color: var(--text-3);
}

/* 四颗按钮在窄屏会挤：让主操作独占一行 */
@media (max-width: 430px){
  #aiFoot{ flex-wrap: wrap; gap: 7px; padding: 11px 12px; }
  #aiFoot .grow{ display: none; }
  #aiFoot .btn{ flex: 1 1 calc(50% - 4px); padding: 0 9px; font-size: 12.5px; }
  #aiFoot .btn-primary{ flex: 1 1 100%; }
  #aiModal .modal-body{ max-height: 58vh; }
}

/* 「撤回」做成提示行里的小 pill，别再多占一行按钮 */
.cp-undo{
  margin-left: 6px; padding: 2px 9px;
  border: 1px solid var(--line-strong); border-radius: 8px;
  background: var(--panel); color: var(--text-2);
  font-family: inherit; font-size: 11px; font-weight: 700;
  vertical-align: 1px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.cp-undo:active{ background: var(--bg-soft); }

/* ============================================================
   V2.1.2 弹窗回到屏幕正中（≤860px）
   ------------------------------------------------------------
   窄屏里 .modal-panel 曾被打成 position:relative 想做「抽屉」，
   但抽屉的 top/bottom 只对 absolute 生效，于是面板贴在左上角、
   右边空出 32px，看起来既不居中又像被裁了一块。
   这里统一改回「居中对话框」：四角圆、上下留白、超出屏幕才滚动。
   ============================================================ */
@media (max-width: 860px){
  .modal-panel{
    position: absolute;
    top: 50%; left: 50%; right: auto; bottom: auto;
    transform: translate(-50%, -50%);
    width: min(560px, calc(100vw - 32px));
    /* 上下各留 66px：正好让顶部的提示条有位置，也不会贴边 */
    max-height: min(90dvh, calc(100dvh - 132px));
    border-radius: var(--r-lg);
  }
  /* 抽屉的「上滑」动画会把居中位移冲掉，换成弹起 */
  .modal.open .modal-panel{ animation: pop .2s cubic-bezier(.2,.9,.3,1.1); }
  .modal-panel::before{ display: none; }      /* 居中对话框不需要拖动把手 */
  .modal-foot{ position: sticky; bottom: 0; }
}

/* 到店模式仍是全屏作业台，别被上面那条带偏 */
@media (max-width: 768px){
  .modal-panel.modal-visit{
    position: absolute;
    top: 0; left: 0; right: auto; bottom: 0;
    transform: none; width: 100vw;
    height: 100dvh; max-height: 100dvh; border-radius: 0;
  }
  .modal.open .modal-panel.modal-visit{ animation: none; }
}

/* 润色失败的真正原因，摆在面板最上面 */
#aiBody .ai-fail{
  margin: 0 0 12px; padding: 11px 13px;
  border: 1px solid color-mix(in srgb, var(--red) 30%, transparent);
  border-left: 3px solid var(--red);
  border-radius: 12px;
  background: var(--red-soft);
  font-size: 12px; line-height: 1.75; color: var(--text-2);
}
#aiBody .ai-fail b{
  display: block; margin-bottom: 3px;
  font-size: 12px; font-weight: 750; color: var(--red);
}

/* 弹窗打开时，提示条挪到顶部：居中对话框的底栏正好在下方，别盖住按钮 */
@media (max-width: 860px){
  body:has(.modal.open) .toast-wrap{
    top: calc(12px + env(safe-area-inset-top));
    bottom: auto;
  }
}

/* ============================================================
   V2.2 当前位置（loc.js）
   ============================================================ */

/* --- 两个入口 --- */
.loc-mini{
  flex: 0 0 36px; width: 36px; padding: 0;
  display: inline-grid; place-items: center;
}
.loc-mini svg{ width: 16px; height: 16px; }
.qc-loc{
  border-style: solid;
  border-color: var(--line-strong);
  background: var(--panel);
  color: var(--text-2);
}
.qc-loc:active{ background: var(--bg-soft); }

/* --- 定位中 --- */
.loc-loading{
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 30px 12px 26px; text-align: center;
}
.loc-spin{
  width: 26px; height: 26px; border-radius: 50%;
  border: 2.4px solid color-mix(in srgb, var(--brand) 22%, transparent);
  border-top-color: var(--brand);
  animation: locSpin .8s linear infinite;
}
@keyframes locSpin{ to{ transform: rotate(360deg); } }
.loc-loading p{ margin: 0; font-size: 13.5px; font-weight: 650; color: var(--text); }
.loc-loading i{ font-style: normal; font-size: 11.5px; color: var(--text-3); }

/* --- 当前位置一行 --- */
.loc-now{
  display: flex; align-items: flex-start; gap: 10px;
  padding: 12px 13px; margin-bottom: 12px;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel-2);
}
.loc-now b{ display: block; font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.5; }
.loc-now i{
  display: block; margin-top: 3px;
  font-style: normal; font-size: 11.5px; line-height: 1.6; color: var(--text-3);
}
.loc-dot{
  flex: 0 0 9px; width: 9px; height: 9px; margin-top: 6px;
  border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent);
  animation: locPulse 2s ease-in-out infinite;
}
.loc-dot.is-soft{ background: var(--text-3); box-shadow: 0 0 0 4px var(--bg-soft); animation: none; }
@keyframes locPulse{
  0%,100%{ box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
  50%{ box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 8%, transparent); }
}

/* --- 小标题 --- */
.loc-lab{
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  margin: 0 2px 8px;
  font-size: 12px; font-weight: 700; color: var(--text);
}
.loc-lab span{ font-size: 10.5px; font-weight: 500; color: var(--text-3); }

/* --- 门店列表 --- */
.loc-list{ display: flex; flex-direction: column; gap: 7px; }
.loc-item{
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 11px; text-align: left;
  border: 1px solid var(--line); border-radius: 13px;
  background: var(--panel); color: var(--text);
  font-family: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s, background .15s, transform .12s;
}
.loc-item:active{ transform: scale(.988); background: var(--bg-soft); }
.loc-item.is-near{
  border-color: color-mix(in srgb, var(--brand) 40%, transparent);
  background: var(--brand-soft);
}
.loc-ico{
  flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center; font-size: 14px;
  background: var(--bg-soft);
}
.loc-item.is-near .loc-ico{ background: rgba(255,255,255,.62); }
[data-theme="dark"] .loc-item.is-near .loc-ico{ background: rgba(0,0,0,.22); }
.loc-main{ flex: 1 1 auto; min-width: 0; }
.loc-main b{
  display: block; font-size: 13px; font-weight: 650; line-height: 1.45;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.loc-main i{
  display: block; margin-top: 2px;
  font-style: normal; font-size: 11px; line-height: 1.5; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.loc-meta{
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
}
.loc-meta em{ font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--brand-strong); font-variant-numeric: tabular-nums; }
.loc-meta u{
  text-decoration: none; padding: 1px 5px; border-radius: 5px;
  font-size: 9.5px; font-weight: 600; color: var(--text-3); background: var(--bg-soft);
}

.loc-more{
  display: block; width: 100%; margin-top: 9px; padding: 9px;
  border: 1px dashed var(--line-strong); border-radius: 11px;
  background: transparent; color: var(--text-3);
  font-family: inherit; font-size: 12px; cursor: pointer;
}
.loc-more:active{ background: var(--bg-soft); }
.loc-wide{ width: 100%; margin-top: 10px; }

.loc-empty{
  margin: 0; padding: 16px 4px; text-align: center;
  font-size: 12.5px; line-height: 1.8; color: var(--text-3);
}

/* --- 城市 / 提示 --- */
.loc-note{
  margin: 0 0 10px; padding: 10px 12px;
  border-left: 3px solid var(--amber); border-radius: 10px;
  background: color-mix(in srgb, var(--amber) 9%, var(--panel));
  font-size: 11.5px; line-height: 1.75; color: var(--text-2);
}
.loc-acts{ display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.loc-acts .btn{ height: 34px; font-size: 12px; }

/* --- 说明卡：为什么只有城市 --- */
.loc-why{
  margin-top: 12px; padding: 12px 13px;
  border: 1px solid var(--line); border-radius: 13px;
  background: var(--panel-2);
}
.loc-why > b{ display: block; margin-bottom: 5px; font-size: 12px; font-weight: 700; color: var(--text); }
.loc-why > p{ margin: 0 0 12px; font-size: 11.5px; line-height: 1.8; color: var(--text-3); }
.loc-way{ display: flex; gap: 7px; margin-bottom: 7px; font-size: 11.5px; line-height: 1.72; color: var(--text-2); }
.loc-way em{
  flex: 0 0 15px; width: 15px; height: 15px; margin-top: 2px;
  display: grid; place-items: center; border-radius: 5px;
  font-style: normal; font-size: 9.5px; font-weight: 800;
  color: #fff; background: var(--brand);
}
.loc-way b{ font-weight: 700; color: var(--text); }
.loc-way code{
  padding: 1px 4px; border-radius: 4px;
  background: var(--bg-soft); font-family: ui-monospace, Menlo, monospace;
  font-size: 10.5px; color: var(--brand-strong);
  word-break: break-all;
}
.loc-copy{ width: 100%; margin-top: 9px; height: 34px; font-size: 12px; }

/* --- 失败 --- */
.loc-fail{
  margin-bottom: 12px; padding: 12px 13px;
  border: 1px solid color-mix(in srgb, var(--red) 28%, transparent);
  border-left: 3px solid var(--red); border-radius: 12px;
  background: var(--red-soft);
}
.loc-fail b{ display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 750; color: var(--red); }
.loc-fail p{ margin: 0; font-size: 11.5px; line-height: 1.78; color: var(--text-2); }

@media (max-width: 400px){
  .loc-now{ padding: 11px; }
  .loc-item{ padding: 9px 10px; gap: 9px; }
  .loc-ico{ flex: 0 0 27px; width: 27px; height: 27px; font-size: 13px; }
  .loc-lab span{ display: none; }
}

/* --- 分类切换 --- */
.loc-chips{
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 5px; margin: 0 0 11px;
}
.loc-chip{
  min-width: 0; height: 30px; padding: 0 4px;
  border: 1px solid var(--line); border-radius: 15px;
  background: var(--panel); color: var(--text-2);
  font-family: inherit; font-size: 11.5px; font-weight: 600;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: border-color .15s, background .15s, color .15s;
}
.loc-chip.on{
  border-color: color-mix(in srgb, var(--brand) 45%, transparent);
  background: var(--brand-soft); color: var(--brand-strong);
}
.loc-chip:active{ background: var(--bg-soft); }
.loc-loading.is-slim{ padding: 22px 12px; }
.loc-loading.is-slim p{ font-size: 12.5px; color: var(--text-2); }

/* 6 个分类等分一行，短屏（≤360）字号再收一档，仍然不换行不裁切 */
@media (max-width: 360px){
  .loc-chip{ font-size: 11px; padding: 0 2px; }
}

/* ============================================================
   V2.3（2026-12-01）
   ① 接单表单分组可折叠（我的 → 设置 里可切「常开」）
   ② 文案一稿通用：爆款标题 + 正文 + 5 个话题，按成片写
   ③ 顶栏 AI 出稿快捷入口
   ============================================================ */

/* ---------------- ① 分组折叠 ---------------- */
.fgroup .fgroup-title{
  order: 0;
  width: 100%; margin: 0 0 11px; padding: 8px 0;
  border: 0; background: none;
  font-family: inherit; font-size: 12px; font-weight: 800;
  letter-spacing: .3px; color: var(--text-2);
  display: flex; align-items: center; gap: 8px;
  text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fgroup .fgroup-title > span{ flex: 0 0 auto; }
.fgroup .fgroup-title .fg-sum{
  order: 3; min-width: 0; flex: 0 1 auto; max-width: 46%;
  font-style: normal; font-size: 11px; font-weight: 600; color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fgroup .fgroup-title::after{ order: 2; }
.fgroup .fgroup-title .fg-chev{
  order: 4; flex: 0 0 14px; width: 14px; height: 14px;
  color: var(--text-3); opacity: .8;
  transition: transform .22s ease;
}
.fgroup.is-open .fgroup-title .fg-chev{ transform: rotate(180deg); }
.fgroup:not(.is-open) .fgroup-body{ display: none; }
.fgroup:not(.is-open){ padding-bottom: 4px; }
.fgroup:not(.is-open) .fgroup-title{ margin-bottom: 2px; }
.fgroup:not(.is-open) .fgroup-title .fg-sum{ max-width: 58%; color: var(--text-2); }
.fgroup.is-locked .fgroup-title{ cursor: default; }
.fgroup.is-locked .fgroup-title .fg-chev{ display: none; }
.fgroup.is-open .fgroup-body{ animation: fgFade .2s ease both; }
@keyframes fgFade{ from{ opacity: 0; transform: translateY(-3px); } to{ opacity: 1; transform: none; } }
@media (hover: hover){
  .fgroup:not(.is-locked) .fgroup-title:hover{ color: var(--text); }
}

/* ---------------- ② 一稿通用文案 ---------------- */
.cp-bar{ display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cp-whole{
  flex: 0 0 auto; padding: 3px 9px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: .4px;
  color: var(--brand-strong); background: var(--brand-soft);
}
.cp-types{ display: inline-flex; gap: 3px; padding: 3px; border-radius: 11px; background: var(--bg-soft); }
.cp-type{
  border: 0; background: none; padding: 5px 11px; border-radius: 8px;
  font-family: inherit; font-size: 11.5px; font-weight: 700; color: var(--text-3);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .15s, color .15s;
}
.cp-type.on{ background: var(--panel); color: var(--brand-strong); box-shadow: 0 1px 3px rgba(90,50,40,.10); }
.cp-type:active{ transform: scale(.97); }
.cp-src{ margin: 0 2px 10px; font-size: 10.5px; line-height: 1.6; color: var(--text-3); }
.cp-lab em{
  font-style: normal; margin-left: 5px; padding: 1px 5px; border-radius: 5px;
  font-size: 9.5px; font-weight: 800; vertical-align: 1px;
  color: var(--brand-strong); background: var(--brand-soft);
}
.cp-alt{ display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 7px; }
.cp-alt::before{ content: '备选'; flex: 0 0 auto; font-size: 10px; font-weight: 700; color: var(--text-3); }
.cp-altbtn{
  max-width: 100%; padding: 5px 9px; border-radius: 9px;
  border: 1px dashed color-mix(in srgb, var(--text-3) 40%, transparent);
  background: var(--panel); color: var(--text-2);
  font-family: inherit; font-size: 11px; font-weight: 600;
  text-align: left; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.cp-altbtn:active{ border-color: var(--brand); color: var(--brand-strong); background: var(--brand-soft); }
@media (hover: hover){ .cp-altbtn:hover{ border-color: var(--brand); color: var(--brand-strong); } }

/* ---------------- ③ 顶栏 AI 入口 ---------------- */
.top-ai{
  color: var(--brand-strong);
  background: color-mix(in srgb, var(--brand) 11%, transparent);
}
[data-theme="dark"] .top-ai{ background: color-mix(in srgb, var(--brand) 20%, transparent); }
.top-ai:active{ background: color-mix(in srgb, var(--brand) 20%, transparent); }
@media (hover: hover){
  .top-ai:hover{ background: color-mix(in srgb, var(--brand) 18%, transparent); }
}

/* AI 出稿面板 */
.aq-type{ display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.aq-type > span{ flex: 0 0 auto; font-size: 11.5px; font-weight: 700; color: var(--text-2); }
.aq-hint{ margin: 0 0 11px; font-size: 11.5px; line-height: 1.7; color: var(--text-3); }
.aq-list{ display: flex; flex-direction: column; gap: 7px; }
.aq-row{
  display: flex; align-items: center; gap: 9px; width: 100%;
  color: inherit;
  padding: 10px 11px; border: 1px solid var(--line); border-radius: 13px;
  background: var(--panel-2); text-align: left; font-family: inherit;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color .15s, background .15s, transform .1s;
}
.aq-row:active{ transform: scale(.99); background: var(--bg-soft); }
@media (hover: hover){ .aq-row:hover{ border-color: color-mix(in srgb, var(--brand) 35%, transparent); } }
.aq-av{
  flex: 0 0 30px; height: 30px; border-radius: 9px;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 800; color: #fff;
  background: var(--brand-grad-a);
  box-shadow: 0 6px 12px -9px rgba(var(--brand-rgb),1);
}
.aq-main{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.aq-main b{ font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aq-main em{ font-style: normal; font-size: 10.5px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aq-go{
  flex: 0 0 auto; padding: 5px 9px; border-radius: 9px;
  font-size: 11px; font-weight: 800;
  color: var(--brand-strong); background: var(--brand-soft);
}

/* ---------------- 设置页：出稿与表单 ---------------- */
.pref-body{ display: flex; flex-direction: column; gap: 13px; }
.pref-row{ display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pref-lab{ min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pref-lab b{ font-size: 13px; font-weight: 700; }
.pref-lab span{ font-size: 10.5px; line-height: 1.55; color: var(--text-3); }
.pref-row .cp-types{ flex: 0 0 auto; }

/* 常驻城市：输入框 + 「用当前位置」，一行放得下 */
.place-city{ display: flex; align-items: center; gap: 6px; flex: 0 1 auto; min-width: 0; }
.place-city input{
  width: 108px; height: 34px; padding: 0 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font-family: inherit; font-size: 13px;
}
.place-city input:focus{ outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.place-city .btn{ height: 34px; min-height: 34px; padding: 0 11px; font-size: 12px; white-space: nowrap; }
@media (max-width: 420px){
  .place-city{ flex: 1 1 100%; }
  .place-city input{ flex: 1 1 auto; width: auto; min-width: 0; }
}

/* 窄屏：类型 chips 和标题别互相挤 */
@media (max-width: 420px){
  .fgroup .fgroup-title .fg-sum{ max-width: 40%; }
  .cp-type{ padding: 5px 9px; font-size: 11px; }
  .cp-bar{ flex-wrap: wrap; }
  .aq-main b{ font-size: 12.5px; }
}

/* 订单卡片上的「未出稿」小标 */
.o-sub .em-todo{ color: var(--brand-strong); font-weight: 700; }

/* ============================================================
   V2.4（2026-12-01 晚）
   ① 档案页卡片可折叠（平台账号 / 品牌关系 / 出稿与表单 / 数据管理 / 使用说明）
   ② 平台账号带头像 + 粉丝 + 赞藏
   ③ 平台账号面板（粘链接识别 / 上传头像 / 粘贴资料识别）
   ============================================================ */

/* ---------------- ① 卡片折叠 ---------------- */
.card-head.cfd{
  width: 100%; margin: 0; border: 0; background: none;
  color: inherit;
  font-family: inherit; text-align: left; cursor: pointer;
  display: flex; align-items: center; justify-content: flex-start; gap: 10px;
  padding: 14px 18px 10px;
  -webkit-tap-highlight-color: transparent;
}
/* 把手在标题左边：标题组紧跟其后，右侧按钮还是靠右 */
.card-head.cfd > .card-grip{ margin-left: -4px; margin-right: -4px; }
.card-head.cfd > .cfd-txt{ flex: 0 1 auto; }
/* 折叠箭头永远贴最右：
   以前有右侧按钮的卡靠 .cfd-right 的 margin-left:auto 顺带把箭头推到底，
   没按钮的卡箭头就贴在文字后面 —— 现在箭头自己带 margin-left:auto，
   所有卡（今日聚焦 / 在途订单 / 快捷操作 / 最近探店…）一律右对齐。 */
.card-head.cfd > .cfd-chev{ margin-left: auto; }
.card-head.cfd > .cfd-right + .cfd-chev{ margin-left: 2px; }
.cfd-txt{ min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.cfd-txt h3{ margin: 0; flex: 0 0 auto; }
.cfd-txt .sub{ font-style: normal; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfd-chev{
  width: 15px; height: 15px; flex: 0 0 15px;
  color: var(--text-3); opacity: .75;
  transition: transform .22s ease;
}
.card.is-folded .cfd-chev{ transform: rotate(-90deg); }
.card.is-folded .card-body{ display: none !important; }
.card.is-folded .card-head.cfd{ padding-bottom: 14px; }
.card.is-folded .cfd-txt .sub{ color: var(--text-2); }
.card.is-locked .cfd-chev{ display: none; }
.card.is-locked .card-head.cfd{ cursor: default; }
@media (hover: hover){
  .card:not(.is-locked) .card-head.cfd:hover .cfd-txt h3{ color: var(--brand-strong); }
}
@media (max-width: 420px){
  .card-head.cfd{ padding: 13px 14px 9px; gap: 8px; }
  .cfd-txt{ flex-direction: column; align-items: flex-start; gap: 2px; }
  .cfd-txt .sub{ max-width: 100%; }
}

/* ---------------- ② 平台账号行 ---------------- */
.plat-av{
  width: 34px; height: 34px; flex: 0 0 34px;
  border-radius: 11px; overflow: hidden; background: var(--bg-soft);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.plat-av img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.plat-tag{
  font-style: normal; margin-left: 6px; padding: 1px 6px; border-radius: 999px;
  font-size: 9.5px; font-weight: 700; vertical-align: 1px;
  color: var(--text-3); background: var(--bg-soft);
}
.plat-stat{
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px;
  margin-top: 4px; font-size: 11.5px; color: var(--text-3);
}
/* 数字不要用等宽变体（tnum 会让 0 变成带斜杠的窄体，跟中文混排很怪） */
.plat-stat b{
  font-size: 13px; font-weight: 700; color: var(--text);
  margin-right: 3px;
  font-variant-numeric: normal;
  font-feature-settings: normal;
  letter-spacing: 0;
}
.plat-stat em{ font-style: normal; font-size: 10.5px; opacity: .8; }
/* V5.16：「今天更新」固定贴右 —— 以前它跟在数字后面，
   数字宽度一变（点评那行粉丝 10 万）它的位置就飘。 */
.plat-stat .plat-time{ margin-left: auto; padding-left: 0; }
/* 「粉丝」「赞藏」两段之间加一条细竖线做分隔，比光靠间距清爽 */
.plat-stat > span + span{ position: relative; padding-left: 14px; }
.plat-stat > span + span::before{
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 9px; background: var(--line);
}

/* ---------------- ③ 平台账号面板 ---------------- */
.sp-av{ display: flex; align-items: center; gap: 12px; padding: 2px 0 14px; }
.sp-av-pic{
  width: 56px; height: 56px; flex: 0 0 56px; border-radius: 18px; overflow: hidden;
  display: grid; place-items: center;
  background: var(--brand-grad-a);
  color: #fff; font-size: 20px; font-weight: 800;
}
.sp-av-pic img{ width: 100%; height: 100%; object-fit: cover; display: block; }
.sp-av-main{ min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sp-av-main b{ font-size: 13px; font-weight: 700; }
.sp-av-main span{ font-size: 11px; line-height: 1.55; color: var(--text-3); }
.sp-av-btns{ display: flex; gap: 6px; margin-top: 5px; }
.sp-link{ display: flex; align-items: center; gap: 8px; }
.sp-link .qc-input{ flex: 1; min-width: 0; }
.sp-hint{ display: block; margin-top: 5px; font-size: 11px; line-height: 1.6; color: var(--text-3); }
.sp-msg{ margin: 6px 0 0; font-size: 11.5px; line-height: 1.7; color: var(--text-3); }
.sp-msg:empty{ display: none; }
.sp-msg.is-ok{ color: var(--green); }
.sp-msg.is-warn{ color: var(--amber); }
.sp-msg.is-err{ color: var(--red); }
.sp-paste{ margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.sp-paste summary{ font-size: 11.5px; color: var(--text-2); cursor: pointer; }
.sp-ta{
  width: 100%; margin: 8px 0; padding: 9px 10px; resize: vertical;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel-2); color: var(--text);
  font-family: inherit; font-size: 12.5px; line-height: 1.6;
}
.sp-ta:focus{ outline: none; border-color: var(--brand); }

/* 320 级窄屏：平台行别挤成一团 */
@media (max-width: 360px){
  .plat{ gap: 9px; }
  .plat-main .pn{ font-size: 12.5px; }
  .plat-main .pi, .plat-main .pl{ font-size: 11px; }
  .plat-stat{ font-size: 11px; gap: 7px; }
  .plat-stat b{ font-size: 12px; }
  .plat-stat em{ font-size: 10px; }
  .plat .btn-sm{ padding: 0 8px; }
}

/* ============================================================
   V2.7 · 小红书登录态（扫码一次，之后自动读）
   ============================================================ */
.sp-login{
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 12px; padding: 10px 11px;
  border: 1px solid var(--line); border-radius: 11px;
  background: var(--panel-2);
}
.sp-login-main{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.sp-login-main b{ font-size: 12.5px; font-weight: 800; color: var(--text); }
.sp-login-main span{ font-size: 11px; line-height: 1.55; color: var(--text-3); }
.sp-login.is-on{ border-color: rgba(52,211,153,.5); background: rgba(52,211,153,.08); }
.sp-login.is-on .sp-login-main b{ color: var(--green); }
.sp-login.is-wait{ border-color: rgba(251,191,36,.5); background: rgba(251,191,36,.08); }
.sp-login.is-wait .sp-login-main b{ color: var(--amber); }
/* V7.16：额外号的说明条 —— 故意不用绿色「已登录」，免得看着像读到了这个号的登录态 */
.sp-login.is-extra{ border-style: dashed; background: transparent; }
.sp-login.is-extra .sp-login-main b{ color: var(--text-2); }
.sp-login .btn{ flex-shrink: 0; }

/* 二维码回传（V2.9）：窗口在电脑上，手机上要能看到码才扫得了 */
.sp-qr{
  margin: -4px 0 12px; padding: 11px;
  border: 1px dashed var(--line-2, var(--line)); border-radius: 11px;
  background: var(--panel-2); text-align: center;
}
.sp-qr-pic{
  display: inline-flex; padding: 8px; border-radius: 10px; background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,.08);
}
.sp-qr-pic img{
  display: block; width: 168px; height: 168px; object-fit: contain;
  image-rendering: -webkit-optimize-contrast; -webkit-touch-callout: default;
}
.sp-qr-tip{
  margin: 9px 0 0; font-size: 11px; line-height: 1.6; color: var(--text-3);
}
.sp-qr-tip b{ color: var(--text); font-weight: 700; }

/* 窄屏：按钮别把文案挤没 */
@media (max-width: 360px){
  .sp-login{ gap: 8px; padding: 9px 9px; }
  .sp-login-main b{ font-size: 12px; }
  .sp-login-main span{ font-size: 10.5px; }
  .sp-login .btn{ padding: 0 9px; font-size: 11.5px; }
}

/* 点评这类「没有 ID」的平台：昵称占满整行，别留半格空白 */
.fm-row.is-solo{ grid-template-columns: 1fr; }

/* ============================================================
   V3.0 · 数据落盘到本机服务
   ============================================================ */

/* 同步指示灯已移到标题左侧（.sync-dot），头像那一套角标规则作废 */

/* 扫码打开 */
.lan-body{ text-align: center; }
.lan-qr{
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px; margin: 2px auto 10px; border-radius: 14px;
  background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.10);
  min-width: 120px; min-height: 120px;
}
.lan-qr-cv{ display: block; width: 216px; height: 216px; }
.lan-fail{ font-size: 12.5px; color: var(--text-3); margin: 22px 0; }
.lan-url{ margin: 0; font-size: 13px; color: var(--text); }
.lan-url code{
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px; padding: 3px 8px; border-radius: 7px;
  background: var(--panel-2); border: 1px solid var(--line);
}
.lan-sync{
  margin: 12px 0 0; padding: 10px 12px; border-radius: 11px;
  display: flex; flex-direction: column; gap: 3px; text-align: left;
  border: 1px solid var(--line); background: var(--panel-2);
}
.lan-sync b{ font-size: 12.5px; font-weight: 800; color: var(--text); }
.lan-sync span{ font-size: 11.5px; line-height: 1.6; color: var(--text-3); }
.lan-sync em{ font-size: 11px; font-style: normal; color: var(--text-3); opacity: .8; }
.lan-sync.is-ok{ border-color: rgba(52,211,153,.45); background: rgba(52,211,153,.07); }
.lan-sync.is-ok b{ color: var(--green); }
.lan-sync.is-wait{ border-color: rgba(251,191,36,.45); background: rgba(251,191,36,.07); }
.lan-sync.is-wait b{ color: var(--amber); }
.lan-sync.is-err{ border-color: rgba(239,68,68,.35); background: rgba(239,68,68,.06); }
.lan-sync.is-err b{ color: #ef4444; }

@media (max-width: 360px){
  .lan-qr-cv{ width: 190px; height: 190px; }
}

/* ============================================================
   新增单子 · 到店准备向导（V3.6）
   ============================================================ */
.prep-panel .modal-head{ padding-bottom: 6px; border-bottom: 0; }
.prep-dots{ display: flex; gap: 6px; padding: 0 18px 12px; }
.prep-dots i{ height: 4px; flex: 1; border-radius: 99px; background: var(--line); transition: background .2s; }
.prep-dots i.on{ background: var(--brand); }
.prep-h{ font-size: 16px; font-weight: 800; margin: 2px 0 7px; color: var(--text); line-height: 1.45; }
.prep-tip{ font-size: 12.5px; line-height: 1.8; color: var(--text-3); margin: 0 0 14px; }
.prep-tip b{ color: var(--text-2); }
.prep-choices{ display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prep-choice{
  display: flex; flex-direction: column; gap: 3px; align-items: flex-start;
  padding: 13px 14px; border-radius: 14px; cursor: pointer; text-align: left;
  border: 1.5px solid var(--line); background: var(--panel-2); transition: .15s;
}
.prep-choice b{ font-size: 14.5px; color: var(--text); font-weight: 800; }
.prep-choice span{ font-size: 11.5px; color: var(--text-3); }
.prep-choice.on{ border-color: var(--brand); background: var(--brand-soft); }
.prep-choice.on b{ color: var(--brand-strong); }
.prep-plats{ margin-top: 14px; }
.prep-label{ display: block; font-size: 12px; color: var(--text-3); margin-bottom: 7px; }
.prep-chips{ display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.prep-chip{
  height: 32px; padding: 0 12px; border-radius: 99px; cursor: pointer;
  border: 1px solid var(--line); background: var(--panel-2);
  font-size: 12.5px; color: var(--text-2); font-weight: 600; transition: .14s;
}
.prep-chip.on{ background: var(--brand); border-color: var(--brand); color: #fff; }
.prep-list{ display: flex; flex-direction: column; gap: 6px; }
.prep-item{
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 11px;
  background: var(--panel-2); border: 1px solid var(--line);
}
.prep-num{
  width: 20px; height: 20px; flex: 0 0 20px; border-radius: 7px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-strong); font-size: 11px; font-weight: 800;
}
.prep-text{ flex: 1; min-width: 0; font-size: 13px; color: var(--text); line-height: 1.5; }
.prep-empty{
  margin: 0; padding: 14px; text-align: center; font-size: 12px; color: var(--text-3);
  border: 1px dashed var(--line); border-radius: 12px;
}
.prep-files{ display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.prep-kind{
  display: inline-block; flex: 0 0 auto; font-style: normal;
  font-size: 10.5px; font-weight: 800; padding: 2px 6px; border-radius: 6px;
  background: var(--brand-soft); color: var(--brand-strong);
}
.vf-item .prep-kind{ margin-right: 6px; }

/* ============================================================
   V3.7（2026-12-02）
   ① 胡萝卜点缀：所有面板共用一颗小胡萝卜
   ② 工作台折叠：概览 / 今日聚焦 / 在途 / 最近 / 收藏 / 快捷
   ③ 列表先露 2 条，多的折在「展开全部」后面
   ============================================================ */

:root,
.sk-carrot{
  --deco: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 8.2c2.9 0 5 2 5 4.5 0 3.6-2.8 7.2-5 9.3-2.2-2.1-5-5.7-5-9.3 0-2.5 2.1-4.5 5-4.5z' fill='%23F0873C'/%3E%3Cpath d='M12 8.2c-.7-1.7-.4-3.4.9-4.7M12 8.2c1-1.5 2.7-2.1 4.3-1.8M12 8.2c-1.6-.7-3.3-.3-4.4.9' stroke='%237DB86A' stroke-width='1.8' stroke-linecap='round' fill='none'/%3E%3Cpath d='M9.7 13.2h2.3M10.6 16.4h2' stroke='%23fff' stroke-width='1.1' stroke-linecap='round' opacity='.55'/%3E%3C/svg%3E");
}

/* ---------------- ① 点缀：标题前的小胡萝卜 ---------------- */
.card-head h3::before,
.fc-head h3::before{
  content: ''; display: inline-block; width: 13px; height: 13px;
  margin-right: 5px; vertical-align: -2px;
  background: var(--deco) no-repeat center / contain;
  opacity: .95;
}
/* 顶栏标题前：原来的珊瑚圆点换成胡萝卜 */
.topbar-left h1::before{
  content: ''; width: 14px; height: 14px; flex: 0 0 14px;
  border-radius: 0; background: var(--deco) no-repeat center / contain;
  box-shadow: none;
}
.modal-head h2::before,
.prep-h::before,
.cal-title::before,
.agenda-head b::before{
  content: ''; display: inline-block; width: 14px; height: 14px;
  margin-right: 6px; vertical-align: -2px;
  background: var(--deco) no-repeat center / contain;
  opacity: .95;
}
.side-tip b::before{
  content: ''; display: inline-block; width: 12px; height: 12px;
  margin-right: 4px; vertical-align: -1px;
  background: var(--deco) no-repeat center / contain;
}
/* 空状态：胡萝卜线稿 */
.empty .empty-carrot{
  display: inline-block;
  width: 40px; height: 40px; opacity: .55; color: var(--brand);
  background: currentColor;
  -webkit-mask: var(--deco) no-repeat center / contain;
  mask: var(--deco) no-repeat center / contain;
}

/* 概览卡右下角一大颗淡胡萝卜，压在渐变里当水印 */
.hero::after{
  content: ''; position: absolute; right: -22px; bottom: -30px;
  width: 98px; height: 98px; transform: rotate(-14deg);
  background: var(--deco) no-repeat center / contain;
  opacity: .05; pointer-events: none;
}
[data-theme="dark"] .hero::after{ opacity: .06; }
/* 折叠后卡片只剩一行，装饰反而碍事，直接收起来 */
.hero.is-folded::after{ display: none; }

/* 月度目标进度条：胡萝卜在终点等着 */
.hero-track{ position: relative; overflow: visible; }
.hero-fill{ border-radius: 99px; }
.hero-track::after{
  content: ''; position: absolute; right: -7px; top: -7px;
  width: 20px; height: 20px; transform: rotate(16deg);
  background: var(--deco) no-repeat center / contain;
  filter: drop-shadow(0 2px 2px rgba(180,90,50,.22));
  pointer-events: none;
}
.hero-goal-row{ margin-bottom: 9px; }

/* ---------------- ② 折叠：概览卡 / 今日聚焦 ---------------- */
.is-folded > [data-fold-body]{ display: none !important; }
.is-folded .cfd-chev{ transform: rotate(-90deg); }

.hero-left{ display: flex; align-items: center; gap: 9px; min-width: 0; }
.hero-fold{
  display: inline-flex; align-items: center; gap: 4px;
  border: 0; background: none; margin: 0; padding: 0; cursor: pointer;
  color: inherit; font-family: inherit; -webkit-tap-highlight-color: transparent;
}
.hero-fold .cfd-chev{ width: 14px; height: 14px; opacity: .6; }
.hero-mini{ display: none; font-size: 12px; color: var(--text-3); }
.hero-mini b{ color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.hero.is-folded .hero-mini{ display: inline-flex; align-items: baseline; gap: 2px; }
.hero.is-folded .hero-top{ margin-bottom: 0; }
.hero.is-folded{ padding-bottom: 13px; }

.fc-head.cfd{
  justify-content: space-between; align-items: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.fc-head.cfd .cfd-txt{ display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.fc-head.cfd .cfd-chev{ width: 15px; height: 15px; flex: 0 0 15px; color: var(--text-3); opacity: .75; }
/* 今日聚焦的把手在标题左边 */
.fc-head.cfd .cfd-txt{ flex: 0 1 auto; min-width: 0; }
.fc-head.cfd .cfd-chev{ margin-left: auto; }
.focus-card.is-folded .fc-head{ padding-bottom: 14px; }

/* 标题栏右侧的操作按钮：不吃点击折叠，也不被箭头挤压 */
.cfd-right{ margin-left: auto; flex: 0 0 auto; display: flex; align-items: center; gap: 6px; }
.cfd-right .btn{ height: 28px; font-size: 11.5px; padding: 0 9px; }
.cfd-right + .cfd-chev{ margin-left: 2px; }

/* ---------------- ③ 列表「展开全部」 ---------------- */
.more-hide{ display: none !important; }
.more-btn{
  width: 100%; margin: 8px 0 0; padding: 10px 0 1px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
  border: 0; border-top: 1px dashed var(--line);
  background: none; color: var(--brand-strong);
  font-size: 12px; font-weight: 700; font-family: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.more-btn svg{ width: 13px; height: 13px; transition: transform .2s ease; }
.more-btn.is-open svg{ transform: rotate(180deg); }
.more-btn:active{ opacity: .7; }
@media (hover: hover){ .more-btn:hover{ color: var(--brand); } }

/* 手机端卡片改 stretch 后，胶囊标签被纵向拉成一个大椭圆——拉回居中 */
.todo-item > .tag,
.fc-item > .tag{ align-self: center; flex: 0 0 auto; }

/* 分段控件（接单筛选 / 统计周期）：黑底改成浅珊瑚 + 小胡萝卜，跟主题一套 */
.seg button.on,
.seg button.is-on{
  background: var(--brand-soft); color: var(--brand-strong); font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb),.26);
}
.seg button.on::before,
.seg button.is-on::before{
  content: ''; display: inline-block; width: 11px; height: 11px;
  margin-right: 4px; vertical-align: -1px;
  background: var(--deco) no-repeat center / contain;
}
[data-theme="dark"] .seg button.on,
[data-theme="dark"] .seg button.is-on{
  background: rgba(var(--brand-rgb),.20); color: #FFC9BA;
  box-shadow: inset 0 0 0 1px rgba(var(--brand-rgb),.34);
}

/* 折叠头的键盘焦点环，别用系统蓝 */
[data-cfold]:focus-visible{ outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 13px; }
/* 卡片头里已经有一颗胡萝卜，里面的分段控件就不再重复 */
.card-head .seg button.on::before,
.card-head .seg button.is-on::before{ display: none; }

/* ============================================================
   V3.8（2026-12-02）
   ① 主题：我的档案里一键换配色
      一个主题 = 一组变量（品牌色 + 概览卡底色 + 那枚小图形），布局完全不动。
      加新主题只有两步：
        a. skin.js 的 SKINS 里加一行（id / 名字 / 一句话）
        b. 这个文件末尾加一段 [data-skin="id"]，深色再补一段 [data-theme="dark"][data-skin="id"]
   ② 概览卡标题不再折成两行
   ③ 主页链接：改成「主页链接：地址」并加复制
   ============================================================ */

/* ---------------- ① 主题：樱花兔 ---------------- */
[data-skin="sakura"],
.sk-sakura{
  --brand: #D9506F;
  --brand-strong: #C33D5C;
  --brand-soft: #FDF0F4;
  --brand-rgb: 217,80,111;
  --hero-a: #FFF1F5;
  --hero-b: #FFFAFB;
  --brand-grad-a: linear-gradient(155deg, #FFB4C6 0%, #E86A8B 100%);
  --brand-grad-b: linear-gradient(160deg, #EC7695 0%, #D23E63 100%);
  --deco: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='%23EE8FA9'%3E%3Cellipse cx='12' cy='6.4' rx='3.1' ry='4.1'/%3E%3Cellipse cx='12' cy='6.4' rx='3.1' ry='4.1' transform='rotate(72 12 12)'/%3E%3Cellipse cx='12' cy='6.4' rx='3.1' ry='4.1' transform='rotate(144 12 12)'/%3E%3Cellipse cx='12' cy='6.4' rx='3.1' ry='4.1' transform='rotate(216 12 12)'/%3E%3Cellipse cx='12' cy='6.4' rx='3.1' ry='4.1' transform='rotate(288 12 12)'/%3E%3C/g%3E%3Ccircle cx='12' cy='12' r='1.7' fill='%23FCE0E8'/%3E%3C/svg%3E");
}
[data-theme="dark"][data-skin="sakura"]{
  --brand: #F07C99; --brand-strong: #FF96B0;
  --brand-soft: rgba(240,124,153,.15);
}

/* ---------------- ① 主题：海盐兔 ---------------- */
[data-skin="sea"],
.sk-sea{
  --brand: #2E77C9;
  --brand-strong: #2465B0;
  --brand-soft: #EEF4FC;
  --brand-rgb: 46,119,201;
  --hero-a: #EDF4FD;
  --hero-b: #F9FCFF;
  --brand-grad-a: linear-gradient(155deg, #9CC6F5 0%, #4A8BDD 100%);
  --brand-grad-b: linear-gradient(160deg, #5B98E0 0%, #2A66B4 100%);
  --deco: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.9c3.5 4.2 5.6 6.9 5.6 9.3a5.6 5.6 0 0 1-11.2 0c0-2.4 2.1-5.1 5.6-9.3z' fill='%234A8BDD'/%3E%3Cpath d='M9.4 13.1a2.7 2.7 0 0 0 2.3 2.7' stroke='%23fff' stroke-width='1.2' opacity='.62' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
}
[data-theme="dark"][data-skin="sea"]{
  --brand: #6AA6EE; --brand-strong: #8CBCF5;
  --brand-soft: rgba(106,166,238,.16);
}

/* ---------------- ① 主题：葡萄兔 ---------------- */
[data-skin="grape"],
.sk-grape{
  --brand: #6F52CC;
  --brand-strong: #5B40B0;
  --brand-soft: #F2EEFC;
  --brand-rgb: 111,82,204;
  --hero-a: #F4F0FD;
  --hero-b: #FBF9FF;
  --brand-grad-a: linear-gradient(155deg, #B6A3F2 0%, #7A5FD4 100%);
  --brand-grad-b: linear-gradient(160deg, #7E63D8 0%, #543EA8 100%);
  --deco: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 3.5l2.5 5.1 5.7.8-4.1 4 1 5.6-5.1-2.7-5.1 2.7 1-5.6-4.1-4 5.7-.8z' fill='%237C5AD6'/%3E%3C/svg%3E");
}
[data-theme="dark"][data-skin="grape"]{
  --brand: #A98BF0; --brand-strong: #C0A8F7;
  --brand-soft: rgba(169,139,240,.16);
}

/* 主题选择卡：预览块自己带 data-skin，于是直接复用上面那套变量，不用另写配色 */
.skin-grid{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.skin-tile{
  position: relative; display: block; width: 100%; padding: 7px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--panel);
  cursor: pointer; font-family: inherit; text-align: left;
  transition: border-color .16s, box-shadow .16s, transform .16s;
  -webkit-tap-highlight-color: transparent;
}
.skin-tile:active{ transform: scale(.985); }
.skin-tile.is-on{
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(var(--brand-rgb), .16);
}
.skin-prev{
  position: relative; display: block; height: 50px; border-radius: 10px; overflow: hidden;
  border: 1px solid rgba(var(--brand-rgb), .22);
  background:
    radial-gradient(140% 150% at 100% 0%, rgba(var(--brand-rgb), .20) 0%, rgba(var(--brand-rgb), 0) 60%),
    linear-gradient(160deg, var(--hero-a) 0%, var(--hero-b) 100%);
}
.sp-l1, .sp-l2{ position: absolute; left: 9px; height: 5px; border-radius: 3px; background: rgba(var(--brand-rgb), .50); }
.sp-l1{ top: 11px; width: 38%; }
.sp-l2{ top: 21px; width: 23%; background: rgba(var(--brand-rgb), .24); }
.sp-pill{ position: absolute; left: 9px; bottom: 9px; width: 29px; height: 9px; border-radius: 99px; background: var(--brand); }
.sp-deco{
  position: absolute; right: 2px; bottom: 0; width: 33px; height: 33px;
  transform: rotate(-12deg); opacity: .8;
  background: var(--deco) no-repeat center / contain;
}
.skin-meta{ display: flex; flex-direction: column; gap: 1px; padding: 6px 2px 1px; }
.skin-meta b{ font-size: 12.5px; font-weight: 800; color: var(--text); }
.skin-meta em{ font-style: normal; font-size: 10.5px; color: var(--text-3); }
.skin-tick{
  position: absolute; top: 12px; right: 12px; width: 17px; height: 17px;
  border-radius: 99px; background: var(--brand); color: #fff; padding: 2.5px;
  box-shadow: 0 2px 6px rgba(0,0,0,.18);
}
.skin-tile:not(.is-on) .skin-tick{ display: none; }
@media (hover: hover){
  .skin-tile:not(.is-on):hover{ border-color: var(--line-strong); }
}
.skin-hint{ margin: 0; font-size: 11.5px; line-height: 1.75; color: var(--text-3); }

/* ---------------- ② 概览卡标题：一行放下 ---------------- */
.hero-scope{ white-space: nowrap; }
.hero-scope i{ font-style: normal; }
.hero-fold{ min-width: 0; }
.hero-fold .hero-scope{ overflow: hidden; text-overflow: ellipsis; }
.hs-tight{ display: none; }
@media (max-width: 430px){
  .hero-top{ gap: 6px; }
  .hero-fold{ gap: 2px; }
  .hero-fold .cfd-chev{ width: 13px; height: 13px; }
  .hero-seg{ padding: 2px; }
  .hero-seg button{ padding: 4px 8px; font-size: 11px; }
  /* 窄屏换成 2026.12 概览：一样带年份，但短一半，永远不折行 */
  .hs-wide{ display: none; }
  .hs-tight{ display: inline; }
}

/* ---------------- ③ 主页链接：主页链接：地址 + 复制 ---------------- */
.pl-row{ display: flex; align-items: center; gap: 4px; min-width: 0; margin-top: 2px; }
.pl-row .pl-lbl{ flex: 0 0 auto; font-size: 11.5px; color: var(--text-3); }
.pl-row .pl-lbl i{ font-style: normal; }
.pl-row .lbl-mini{ display: none; }
/* 窄屏把「主页链接：」缩成「链接：」，省点宽度 */
/* V5.16：主页链接默认一行、省略显示；点一下才展开全文。
   之前是「完整显示 + 允许换行」—— 抖音和点评的链接六七十个字符，
   一断就是三五行，三个平台摆一起参差不齐。 */
.pl-row{ align-items: flex-start; }
.pl-row .pl{
  flex: 1 1 auto; min-width: 0;
  font-size: 11.5px; color: var(--blue); text-decoration: none;
  line-height: 1.55;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  cursor: pointer;
}
.pl-row.is-open .pl{ white-space: normal; word-break: break-all; }
.pl-row .pl:hover{ text-decoration: underline; }
/* V5.15：复制图标固定在最右一列，跟上面几行的图标对齐成一条竖线 */
.pl-row .cp-btn{ width: 20px; height: 20px; margin-left: auto; align-self: flex-start; margin-top: 1px; }
.pl-row .cp-btn svg{ width: 12px; height: 12px; }
.pl-row .pl-none{ font-style: normal; font-size: 11.5px; color: var(--text-3); opacity: .65; }
@media (max-width: 380px){
  .pl-row .lbl-full{ display: none; }
  .pl-row .lbl-mini{ display: inline; }
}
.pl-row.is-copied .cp-btn{ color: var(--brand-strong); background: var(--brand-soft); }

/* ============================================================
   V3.9（2026-12-02）
   ① 手机端顶栏图标只在工作台留整排，其余页收干净；我的档案右上角换成齿轮
   ② 齿轮里装的是原来的四张设置卡：主题 / 出稿与表单 / 数据管理 / 使用说明
   ③ 星标胶囊不再常驻「接单记录」，入口并进工作台那颗爱心
   ============================================================ */

/* 齿轮平时不占位，只在「我的档案」出现（手机、电脑都一样） */
#topGear{ display: none; }
body[data-pg="profile"] #topGear{ display: inline-flex; }

@media (max-width: 860px){
  /* 手机端：只有工作台保留 AI / 搜索 / 提醒 / 明暗 / 爱心这一整排。
     接单记录自带搜索框和筛选、日历自带月份导航、档案自带齿轮，
     再摆一排图标只会把标题挤窄（360px 上「我的档案」就被截过）。 */
  body:not([data-pg="dashboard"]) .topbar-right .top-ico,
  body:not([data-pg="dashboard"]) .topbar-right .top-fav{ display: none; }
  /* 上面那条会连齿轮一起藏掉，这里用 id 再顶回来 */
  body[data-pg="profile"] #topGear{ display: inline-flex; }
}

/* 档案页没有悬浮按钮，底部那段「给 FAB 让位」的空白就别留了
   V5.5：导航贴底后兔耳有 36px 探出高度，这里留 112px 好让最后一张卡不被耳朵压住 */
@media (max-width: 860px){
  body[data-pg="profile"] .content{ padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
}

/* ---------------- 设置面板 ---------------- */
.set-panel{ width: min(520px, calc(100vw - 28px)); }
.set-body{
  padding: 12px 12px calc(14px + env(safe-area-inset-bottom));
  background: var(--bg);
}
.set-stack{ gap: 10px; }
.set-stack .card{ background: var(--panel); }
/* 设置里的卡片标题不需要再折一次「常开/可折叠」的提示，保持原样即可 */
.set-stack .card-head{ padding-left: 12px; padding-right: 12px; }

@media (max-width: 860px){
  #setModal .modal-panel{
    width: calc(100vw - 20px);
    max-height: min(92dvh, calc(100dvh - 88px));
  }
  .set-body{ padding: 10px 10px calc(12px + env(safe-area-inset-bottom)); }
  .set-stack{ gap: 8px; }
}

/* ============================================================
   V4.0（2026-12-02）
   ① 星标单子：独立窗口（爱心入口），不再借道接单记录的筛选
   ② 「记一单」悬浮按钮：可拖动、吸附边缘、可收起成贴边小球
   ③ 到店准备向导：第 2 步「店家要求同步平台」；到店模式里提醒
   ④ AI 出稿：默认收起成「一键文案 + 自己写」，写了才展开编辑区
   ⑤ 概览卡标题：折叠箭头推到行尾，标题不再被压成「2026.12 …」
   ============================================================ */

/* ---------------- ① 星标窗口 ---------------- */
.star-panel{ width: min(460px, calc(100vw - 28px)); }
.star-body{
  padding: 10px 12px calc(14px + env(safe-area-inset-bottom));
  max-height: min(68dvh, 560px);
  overflow-y: auto;
  background: var(--bg);
}
.star-list{ display: flex; flex-direction: column; gap: 8px; }
.star-order{
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 10px 11px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--panel); cursor: pointer; text-align: left; font-family: inherit;
  transition: border-color .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.star-order:active{ transform: scale(.99); }
@media (hover: hover){ .star-order:hover{ border-color: var(--line-strong); } }
.star-order .star{ flex: 0 0 16px; width: 16px; height: 16px; color: var(--brand); }
.star-order .star svg{ width: 100%; height: 100%; fill: currentColor; }
.star-order-main{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.star-order-main b{
  font-size: 13px; font-weight: 800; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.star-order-main span{ font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.star-order-main em{ font-style: normal; font-size: 10.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.star-order-side{ flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.star-order-side .tag{ font-size: 10px; padding: 2px 7px; }
.star-order-side b{ font-size: 13.5px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }

/* ---------------- ② 记一单：拖动 / 收起 ---------------- */
#fabBtn{ touch-action: none; white-space: nowrap; }
/* 只在工作台露面：接单记录、日历这些「看内容」的页面不占地方 */
#fabBtn.is-hidden{ display: none !important; }
#fabBtn.is-drag{
  transition: none !important;
  box-shadow: 0 14px 30px -10px rgba(var(--brand-rgb), .55);
  opacity: .96;
  z-index: 80;
}
/* 收起态：贴边小球，只露兔子（拖到左半边自动变这个形态；
   点一下就地展开成完整按钮，第二下才记单） */
#fabBtn.is-mini{
  width: 46px; height: 46px; padding: 0; border-radius: 99px; gap: 0;
  justify-content: center;
}
/* 小球展开时弹一下，明确告诉手指「已经变成大的了」 */
@keyframes fabPop{
  0%   { transform: scale(.84); }
  55%  { transform: scale(1.045); }
  100% { transform: scale(1); }
}
#fabBtn.is-pop{ animation: fabPop .28s cubic-bezier(.2,.85,.3,1.15); }
@media (prefers-reduced-motion: reduce){
  #fabBtn.is-pop{ animation: none; }
}
#fabBtn.is-mini .fab-txt,
#fabBtn.is-mini .fab-plus{ display: none; }
#fabBtn.is-mini .fab-bunny{ width: 40px; height: 44px; flex: 0 0 40px; margin: 0; }
#fabBtn.is-mini .fab-bunny svg{ width: 40px; height: 44px; }

/* ---------------- ③ 到店模式：同步平台提醒 ---------------- */
.visit-sync{ border-left: 3px solid var(--brand); }
.visit-sync .sync-plats{
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text);
}
.visit-sync .plat-dot{ width: 22px; height: 22px; font-size: 10.5px; }
.visit-sync .sync-sep{ color: var(--text-3); }

/* ---------------- ④ AI 出稿：收起态 ---------------- */
.cp-fold-acts{ display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.cp-fold-acts .cp-launch{ flex: 1 1 auto; min-width: 0; }

/* ---------------- ⑤ 概览标题：箭头推到行尾 ----------------
   原来箭头紧跟标题，标题被挤成「2026.12 …」；现在箭头让到行尾
   （贴着右侧分段控件），标题拿回全部宽度。 */
.hero-left{ flex: 1; min-width: 0; }
.hero-fold{ flex: 1; min-width: 0; }
.hero-fold .hero-scope{
  min-width: 0; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.hero-fold .cfd-chev{ flex: 0 0 auto; margin-left: auto; }
.hero-mini{ flex: 0 0 auto; }
@media (max-width: 430px){
  .hero-fold .cfd-chev{ width: 13px; height: 13px; }
}

/* ============================================================
   V4.1（2026-12-02）
   ① 概览口径：「本月实收」→「本月应收」，补一行真实的「已收」
   ② 记一单按钮：拖过半边自动变形，取消「−」把手
   ③ 编辑弹窗右上角「⋯」：BF / 话题 / 发布记录一处直达
   ④ 小红书笔记同步：从主页读最近笔记，点一下填进发布记录
   ============================================================ */

/* ① 概览：已收金额（布局在 .hero-more 主规则里，这里只改颜色） */
.hero-more .is-paid em{ color: var(--text-2); }
.hero-more .is-paid b{ color: var(--brand-strong); }

/* ③ 头部「⋯」按钮 */
.mh-more span{ font-size: 12.5px; }
.mh-more svg{ width: 17px; height: 17px; }

/* 发布记录按钮行 */
.post-acts{ display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* ④ 小红书笔记选择列表 */
.xhs-list{ display: flex; flex-direction: column; gap: 7px; }
.xhs-item{
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 11px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); cursor: pointer; text-align: left; font-family: inherit;
  transition: border-color .15s, transform .15s;
  -webkit-tap-highlight-color: transparent;
}
.xhs-item:active{ transform: scale(.99); }
@media (hover: hover){ .xhs-item:hover{ border-color: var(--line-strong); } }
.xhs-item-main{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.xhs-item-main b{
  font-size: 13px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.xhs-item-main em{ font-style: normal; font-size: 10.5px; color: var(--text-3); }
.xhs-item-go{
  flex: 0 0 auto; font-size: 11.5px; font-weight: 700; color: var(--brand-strong);
  background: var(--brand-soft); padding: 4px 9px; border-radius: 99px;
}

/* ============================================================
   V4.2（2026-12-02）
   ① 接单记录卡片：去掉「看 BF / 话题」按钮，BF/话题/发布记录收进「···」
   ② 「···」动作表重新排版：分组标题 + 彩色图标块 + 两行文案
   ③ 编辑接单弹窗：分组按填写顺序重排并编号、顶部摘要条、可「全部收起」
   ============================================================ */

/* ---------------- ② 动作表（···） ---------------- */
.sheet-group{
  padding: 12px 8px 6px;
  font-size: 11px; font-weight: 800; letter-spacing: .6px;
  color: var(--text-3); text-transform: none;
}
.sheet-group:first-child{ padding-top: 4px; }
.sheet-item{
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 9px 8px; border: 0; background: transparent; cursor: pointer;
  font-size: 14.5px; color: var(--text); text-align: left; border-radius: 12px;
}
.sheet-item:active{ background: var(--bg-soft); }
.sheet-ic{
  flex: 0 0 34px; width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand-strong);
}
.sheet-ic svg{ width: 18px; height: 18px; }
.sheet-ic.ic-visit{ background: rgba(46,119,201,.13); color: #2E77C9; }
.sheet-ic.ic-bf{ background: rgba(111,82,204,.13); color: #6F52CC; }
.sheet-ic.ic-tag{ background: rgba(217,80,111,.13); color: #D9506F; }
.sheet-ic.ic-data{ background: rgba(52,168,83,.14); color: #2f9e4f; }
.sheet-ic.ic-pen{ background: rgba(240,141,60,.14); color: #d97b22; }
.sheet-ic.ic-ics{ background: rgba(46,119,201,.13); color: #2E77C9; }
.sheet-ic.ic-star{ background: rgba(240,178,40,.16); color: #d99b12; }
.sheet-ic.ic-again{ background: rgba(120,120,140,.13); color: var(--text-2); }
.sheet-ic.ic-del{ background: rgba(224,68,68,.12); color: var(--red); }
.sheet-txt{ display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.sheet-txt b{ font-size: 14.5px; font-weight: 700; color: var(--text); }
.sheet-txt em{
  font-style: normal; font-size: 11.5px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sheet-item.danger .sheet-txt b{ color: var(--red); }
.sheet-item.danger .sheet-txt em{ color: var(--text-3); }

/* ---------------- ③ 编辑弹窗：编号 / 摘要条 ---------------- */
.fg-no{
  display: inline-grid; place-items: center;
  width: 17px; height: 17px; margin-right: 7px; flex: 0 0 17px;
  border-radius: 6px; background: var(--brand-soft); color: var(--brand-strong);
  font-size: 10.5px; font-weight: 800; font-style: normal;
}
/* 摘要条：桌面一行四个；手机店名独占一行（超宽省略），日期 / 金额 / 状态三等分。
   原来在手机上是一行横滑，店名一长后面三个就被挤出屏幕，得左右划才看得见。 */
.order-quick{
  display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 10px; margin-bottom: 4px;
}
.oq-chip{
  flex: 0 1 auto; min-width: 0; max-width: 100%;
  padding: 6px 11px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--panel);
  font-size: 12px; font-weight: 700; color: var(--text-2);
  cursor: pointer; font-family: inherit; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
  -webkit-tap-highlight-color: transparent;
}
@media (max-width: 768px){
  .order-quick{ display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .oq-chip:first-child{ grid-column: 1 / -1; justify-self: start; }
  .oq-chip:not(:first-child){ justify-self: stretch; }
}
.oq-chip:active{ transform: scale(.97); }
.oq-chip.miss{ color: var(--text-3); border-style: dashed; }
.oq-chip:first-child{ background: var(--brand-soft); border-color: transparent; color: var(--brand-strong); }

/* 发布记录行：打开笔记的小外链 */
.post-open{
  flex: 0 0 auto; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; color: var(--text-3);
  background: var(--bg-soft); text-decoration: none;
}
.post-open:active{ transform: scale(.94); }
.post-open svg{ width: 14px; height: 14px; }
.xhs-item-open{
  flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px;
  display: grid; place-items: center; color: var(--text-3);
  background: var(--bg-soft); text-decoration: none;
}
.xhs-item-open svg{ width: 15px; height: 15px; }

/* ---------------- V4.3 互动数据弹窗 ---------------- */
.num-panel{ width: min(430px, calc(100vw - 28px)); }
.num-body{ padding: 12px 14px calc(16px + env(safe-area-inset-bottom)); background: var(--bg); }
.num-body .field{ display: block; margin-bottom: 10px; }
.num-body .field > span{ display: block; font-size: 11.5px; color: var(--text-3); margin-bottom: 5px; }
.num-body textarea{
  width: 100%; padding: 10px 12px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font-size: 16px; line-height: 1.6; resize: vertical;
}
.num-body select{
  width: 100%; padding: 10px 12px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 15px;
}
.num-preview{ display: flex; flex-wrap: wrap; gap: 6px; min-height: 26px; margin: 2px 0 10px; }
.num-chip{
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 5px 10px; border-radius: 99px;
  background: var(--brand-soft); color: var(--brand-strong);
  font-size: 12.5px; font-weight: 700;
}
.num-chip b{ font-weight: 700; opacity: .75; font-size: 11px; }
.num-chip.miss{ background: var(--bg-soft); color: var(--text-3); font-weight: 600; }
.num-acts{ display: flex; gap: 8px; align-items: center; }
.num-acts .btn{ flex: 1; justify-content: center; }
.num-acts label.btn{ cursor: pointer; }

/* ============================================================
   V4.4（2026-12-02）
   ① 看图模型：通义千问 VL 等，独立 key（设置里配）
   ② 发布记录区重做：链接整行全显 · 字段自由排序 · 一键复制成 Excel 表格
   ============================================================ */

/* summary 里那颗「复制到 Excel」 */
.fold summary{ display: flex; align-items: center; gap: 8px; }
.fold summary::after{ margin-left: 0; }
.fold summary span{ flex: 1; min-width: 0; }
.fold-act{
  display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto;
  padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text-2);
  font-size: 11.5px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.fold-act:active{ transform: scale(.96); }
.fold-act svg{ width: 13px; height: 13px; }

/* 发布记录：字段块网格 */
.post-row{
  padding: 12px 13px 13px; border: 1px solid var(--line); border-radius: 18px;
  background:
    radial-gradient(120% 130% at 100% 0%, rgba(var(--brand-rgb),.07) 0%, rgba(var(--brand-rgb),0) 55%),
    var(--panel);
  margin-bottom: 11px; box-shadow: var(--shadow-sm);
}
.post-top{ display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
/* 序号做成小圆牌，不再是干巴巴的「第 N 条」 */
.post-no{
  width: 22px; height: 22px; flex: 0 0 22px; border-radius: 50%;
  display: inline-grid; place-items: center;
  font-size: 11.5px; font-weight: 800; color: #fff;
  background: linear-gradient(160deg, var(--brand) 0%, var(--brand-strong) 100%);
  box-shadow: 0 3px 8px -3px rgba(var(--brand-rgb),.8);
}
.post-plat{
  flex: 0 0 auto; padding: 5px 10px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text-2);
  font-size: 12px; font-family: inherit;
}
.post-row-act{ margin-left: auto; display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }

/* 链接行：固定在最上面，明确标一个「固定」小牌 */
.post-link-row{
  position: relative; display: flex; align-items: center; gap: 7px;
  padding: 4px 10px 4px 11px; margin-bottom: 11px;
  border: 1.5px dashed var(--line-strong); border-radius: 14px;
  background: var(--panel-2);
}
.post-link-ic{ font-size: 14px; line-height: 1; flex: 0 0 auto; opacity: .85; }
.post-link-pin{
  flex: 0 0 auto; font-size: 10px; font-weight: 800; color: var(--text-3);
  background: var(--bg-soft); border-radius: 99px; padding: 2px 7px; letter-spacing: .4px;
}

/* 四个数据框：2×2 网格，四向自由换位 */
.pf-grid{
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px;
}
.pf-cell{
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 9px 10px 10px; border-radius: 15px;
  border: 1px solid var(--line); background: var(--panel-2);
  transition: border-color .16s, box-shadow .16s, transform .16s;
}
/* 顶部一行：图标 + 标签 + 拖拽把手 */
.pf-cell-top{ display: flex; align-items: center; gap: 6px; min-width: 0; }
.pf-cell-top .pf-cell-lab{ flex: 1; min-width: 0; }
.pf-cell:hover{ border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
/* 每个数据框一个色系，一眼能分清哪个是哪个 */
.pf-cell.tone-blue{ background: color-mix(in srgb, var(--blue) 7%, var(--panel)); }
.pf-cell.tone-red{ background: color-mix(in srgb, var(--red) 7%, var(--panel)); }
.pf-cell.tone-amber{ background: color-mix(in srgb, var(--amber) 9%, var(--panel)); }
.pf-cell.tone-green{ background: color-mix(in srgb, var(--green) 8%, var(--panel)); }
.pf-cell-ic{ font-size: 17px; line-height: 1; flex: 0 0 auto; }
.pf-cell-main{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.pf-cell .pf-input{ font-variant-numeric: tabular-nums; }
.pf-cell-lab{ font-size: 11px; font-weight: 700; color: var(--text-2); letter-spacing: .3px; }

/* 拖拽把手：六个点，做成醒目的圆形按钮，一眼就知道能拖 */
.pf-grab{
  width: 24px; height: 24px; flex: 0 0 24px; cursor: grab;
  display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 9px; background: transparent;
  color: var(--text-3); opacity: .55;
  touch-action: none; -webkit-tap-highlight-color: transparent;
  transition: opacity .16s, background .16s, color .16s;
}
.pf-grab svg{ width: 16px; height: 16px; display: block; }
@media (hover: hover){
  .pf-grab:hover{ opacity: 1; background: var(--panel); color: var(--brand-strong); box-shadow: var(--shadow-sm); }
}
.pf-grab:active{ cursor: grabbing; }
.pf-cell:hover .pf-grab{ opacity: .85; }

/* 拖动中：跟着手指走的那块 */
.pf-cell.dnd-flying{
  transform: scale(1.04) rotate(-1.2deg) !important;
  box-shadow: 0 20px 40px -16px rgba(var(--brand-rgb),.55);
  border-color: var(--brand);
  opacity: .96;
}
/* 占位块：虚线框 + 淡淡的品牌色，看得出「这儿等它来」 */
.pf-ghost{
  border: 2px dashed var(--brand); border-radius: 15px;
  background: rgba(var(--brand-rgb),.07);
}
.dnd-active{ user-select: none; -webkit-user-select: none; }
.dnd-active *{ cursor: grabbing !important; }

.pf-input{
  width: 100%; padding: 8px 10px; border-radius: 11px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  font-size: 16px; line-height: 1.4;
}
.pf-input:focus{ outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
/* 链接框整行独占：地址长也能看全，不用横向拖 */
.pf-link{ width: 100%; font-size: 13px; border: 0; background: transparent; padding-left: 0; }
.pf-link:focus{ box-shadow: none; }
.pf-cell-main .pf-input{ font-variant-numeric: tabular-nums; }
@media (max-width: 380px){
  .pf-link{ font-size: 12.5px; }
  .pf-cell{ padding: 8px 8px 8px 7px; gap: 6px; }
  .pf-cell-ic{ font-size: 15px; }
}

/* ============================================================
   V4.6（2026-12-02）
   ① 发布记录：链接固定在上，四个数据框 2×2 自由换位；把手做明显
   ② 工作台卡片 / 接单记录卡片：可上下拖动排序，顺序持久化
   ③ 日历：已完成的安排置灰，不再当成待办
   ============================================================ */

/* ---------------- 通用拖拽把手 ---------------- */
.card-grip{
  width: 26px; height: 26px; flex: 0 0 26px;
  display: inline-grid; place-items: center;
  border: 0; border-radius: 8px; background: transparent;
  color: var(--text-3); cursor: grab;
  touch-action: none; -webkit-tap-highlight-color: transparent;
  transition: background .15s, color .15s, transform .15s;
}
.card-grip svg{ width: 16px; height: 16px; display: block; }
@media (hover: hover){
  .card-grip:hover{ background: var(--brand-soft); color: var(--brand-strong); transform: scale(1.08); }
}
.card-grip:active{ cursor: grabbing; }
/* 订单行里的把手：跟在标题后面 */
.card-grip-inline{ margin-left: auto; }
.o-title .card-grip-inline{ opacity: .5; }
@media (hover: hover){ .order:hover .card-grip-inline{ opacity: 1; } }

/* ---------------- 拖动中的影子 & 落点提示 ---------------- */
.dnd-clone{
  position: fixed !important; z-index: 100000 !important;
  pointer-events: none !important;
  opacity: .96;
  /* V5.2：影子只走合成层。卡片基类上有 transition: .16s（全属性），
     不掐掉的话 left/top/transform 每一帧都被 160ms 缓动追，手指越快越粘 */
  transition: none !important;
  animation: none !important;
  will-change: transform;
  transform: rotate(-1.6deg) scale(1.02);
  box-shadow: 0 24px 48px -18px rgba(27,26,24,.45) !important;
  border-radius: var(--r) !important;
  overflow: hidden;
}
.dnd-src{ opacity: .32 !important; }
/* 落点提示：网格是方框，列表是一条线 */
.dnd-drop{
  position: fixed; z-index: 99999; pointer-events: none;
  border: 2px dashed var(--brand); border-radius: 14px;
  background: rgba(var(--brand-rgb),.10);
}
.dnd-drop.is-line{
  border: 0; border-radius: 99px; height: 4px !important;
  background: var(--brand);
  box-shadow: 0 0 0 4px rgba(var(--brand-rgb),.16);
}
body.dnd-active{ user-select: none; -webkit-user-select: none; cursor: grabbing !important; }
body.dnd-active *{ cursor: grabbing !important; }

/* ---------------- 工作台：可排序的卡片列表 ---------------- */
.dash-grid{
  display: grid; grid-template-columns: minmax(0,1.55fr) minmax(0,1fr);
  gap: 14px; align-items: start;
}
/* 右下角那颗「记一单」是浮动的，卡片内容别被它压住 */
.dash-grid{ padding-bottom: 8px; }
@media (max-width: 860px){
  .dash-grid{ padding-bottom: 64px; }
}
/* 今日聚焦：只有排在第一位时才占满整行（醒目）；
   被拖到别的位置后变成普通卡片，避免两列网格里留空洞 */
.dash-grid > .focus-card{ grid-column: 1 / -1; margin-bottom: 0; }
.dash-grid > .focus-card.is-narrow{ grid-column: auto; }
.dash-grid > .card{ margin-bottom: 0; }
@media (max-width: 860px){
  .dash-grid{ grid-template-columns: minmax(0,1fr); }
}

/* ---------------- 日历：已完成的安排 ---------------- */
.cal-ev.is-done{ opacity: .5; text-decoration: line-through; }
.agenda-item.is-done{ opacity: .62; }
.agenda-item.is-done .agenda-main b{ text-decoration: line-through; }
.agenda-item.is-done .agenda-btns{ display: none; }
.agenda-time.is-tbd{ color: var(--text-3); }

/* ============================================================
   V4.7（2026-12-02）· 可爱化重做
   ------------------------------------------------------------
   上一版的问题：太「办公软件」了 —— 直角、灰线、扁平的输入框，
   一眼看不出哪块能点、哪块能拖。这里统一往「圆润 + 奶油色块 +
   软阴影」的方向调：
     ① 卡片：圆角加大、描边变淡、加一层奶油色顶部渐变
     ② 输入框：不再是白底灰边，改成浅奶油底 + 聚焦时品牌色光环
     ③ 按钮：胶囊化，主按钮带柔和的彩色投影
     ④ 拖拽把手：底色更明显，悬停时整个把手机「立起来」
     ⑤ 分段控件 / 标签：全部胶囊化
     ⑥ 发布记录的四个数据框：颜色更柔和，输入区更大更好点
   ============================================================ */

/* ---------------- ① 卡片：更圆、更软、顶部有奶油渐变 ---------------- */
.card,
.focus-card{
  border-radius: 22px !important;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent) !important;
  box-shadow:
    0 2px 6px -3px rgba(28,27,25,.06),
    0 14px 30px -22px rgba(28,27,25,.28) !important;
  background:
    linear-gradient(178deg, color-mix(in srgb, var(--brand) 5%, var(--panel)) 0%, var(--panel) 42%) !important;
  overflow: hidden;
}
[data-theme="dark"] .card,
[data-theme="dark"] .focus-card{
  background:
    linear-gradient(178deg, color-mix(in srgb, var(--brand) 7%, var(--panel)) 0%, var(--panel) 46%) !important;
  box-shadow:
    0 2px 6px -3px rgba(0,0,0,.3),
    0 14px 30px -20px rgba(0,0,0,.75) !important;
}
.card-head.cfd{ padding: 15px 18px 11px; }
/* 卡片标题：胡萝卜左边加一个圆润的小圆底，标题本身再加点重量 */
.card-head h3{ font-size: 14.5px; font-weight: 750; letter-spacing: .1px; }
.card-head h3::before{
  width: 18px; height: 18px; margin-right: 7px; vertical-align: -4px;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--brand) 13%, transparent);
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}
.card-body{ padding: 12px 16px 16px; }

/* ---------------- ② 输入框：奶油底 + 聚焦光环 ---------------- */
.field input, .field select, .field textarea,
.pf-input,
.search-box,
select.plain{
  border-radius: 14px !important;
  border: 1.5px solid color-mix(in srgb, var(--line-strong) 80%, transparent) !important;
  background: color-mix(in srgb, var(--brand) 4%, var(--panel-2)) !important;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.field input, .field select, .field textarea{ padding: 10px 13px; }
.field input:focus, .field select:focus, .field textarea:focus,
.pf-input:focus{
  border-color: var(--brand) !important;
  background: var(--panel) !important;
  box-shadow: 0 0 0 4px var(--brand-soft), 0 4px 12px -6px rgba(var(--brand-rgb),.5) !important;
}
/* 只读 / 禁用态别跟能点的长得一样 */
.field input:disabled, .field input[readonly]{
  background: var(--bg-soft) !important;
  color: var(--text-3);
}
/* 搜索框：里面的放大镜也放大一点、更有存在感 */
.search-box{
  height: 40px !important;
  padding: 0 14px !important;
  gap: 9px !important;
}
.search-box svg{ width: 17px; height: 17px; color: var(--brand) !important; opacity: .8; }
.search-box:focus-within{
  border-color: var(--brand) !important;
  background: var(--panel) !important;
  box-shadow: 0 0 0 4px var(--brand-soft);
}
select.plain{ height: 40px !important; padding: 0 12px !important; font-weight: 600; }

/* ---------------- ③ 按钮：胶囊 + 软投影 ---------------- */
.btn{
  border-radius: 14px !important;
  font-weight: 650;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn-primary{
  box-shadow: 0 8px 18px -10px rgba(var(--brand-rgb),.95) !important;
}
@media (hover: hover){ .btn:hover{ transform: translateY(-1px); } }
.btn:active{ transform: translateY(0) scale(.985); }
.btn-ghost{
  background: color-mix(in srgb, var(--brand) 5%, var(--panel)) !important;
  border-color: color-mix(in srgb, var(--line-strong) 70%, transparent) !important;
  color: var(--text-2);
}
@media (hover: hover){
  .btn-ghost:hover{ border-color: var(--brand) !important; color: var(--brand-strong); }
}

/* ---------------- ④ 分段控件 / 标签：胶囊 ---------------- */
.seg{
  border-radius: 14px !important;
  padding: 4px !important;
  gap: 3px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent) !important;
  background: color-mix(in srgb, var(--brand) 4%, var(--panel)) !important;
}
.seg button{ border-radius: 11px !important; font-weight: 600; }
.seg button.on, .seg button.is-on{
  background: var(--brand) !important;
  color: #fff !important;
  box-shadow: 0 5px 12px -6px rgba(var(--brand-rgb),.9);
}
.tag{ border-radius: 99px !important; }

/* ---------------- ⑤ 拖拽把手：低调六点（V4.8 改） ----------------
   上一版做成了「粉色圆球」，用户反馈太扎眼、破坏卡片清爽感。
   现在改成：
     · 常态几乎透明（淡灰六点），不抢标题的戏
     · 鼠标移上去才淡出一点底色并变成品牌色 —— 「原来这儿能拖」
     · 按住时整颗变实心品牌色，跟得动
   手机上没有 hover，所以常态保留 45% 的可见度，够手指找到。
   ---------------------------------------------------------------- */
.card-grip{
  width: 24px !important; height: 24px !important;
  flex: 0 0 24px !important;
  border-radius: 8px !important;
  background: transparent !important;
  border: 0 !important;
  color: var(--text-3) !important;
  opacity: .38;
  box-shadow: none !important;
  transition: transform .16s, background .16s, color .16s, opacity .16s;
}
.card-grip svg{ width: 14px; height: 14px; }
@media (hover: hover){
  .card-grip:hover{
    opacity: 1;
    background: var(--brand-soft) !important;
    color: var(--brand-strong) !important;
    transform: scale(1.1);
  }
}
.card-grip:active{
  opacity: 1;
  background: var(--brand) !important;
  color: #fff !important;
  transform: scale(.95);
}
/* 触屏没有 hover，常态给足可见度 */
@media (hover: none){
  .card-grip{ opacity: .5; background: color-mix(in srgb, var(--text-3) 10%, transparent) !important; }
}
/* 订单行里的把手：跟在标题后面，同样低调 */
.o-title .card-grip-inline{ margin-left: auto; opacity: .32; }
@media (hover: hover){ .order:hover .card-grip-inline{ opacity: .8; } }

/* ---------------- ⑥ 发布记录：四个数据框更柔和更好点 ---------------- */
.post-row{
  border-radius: 20px !important;
  background:
    radial-gradient(130% 140% at 100% 0%, rgba(var(--brand-rgb),.09) 0%, rgba(var(--brand-rgb),0) 58%),
    var(--panel) !important;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent) !important;
  box-shadow: 0 2px 6px -3px rgba(28,27,25,.05), 0 12px 26px -20px rgba(28,27,25,.26) !important;
}
.pf-cell{
  border-radius: 16px !important;
  padding: 10px 12px 10px 10px;
  border: 1.5px solid color-mix(in srgb, var(--line) 55%, transparent) !important;
  transition: transform .16s, box-shadow .16s, border-color .16s;
}
.pf-cell:hover{
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -12px rgba(28,27,25,.4) !important;
  border-color: color-mix(in srgb, var(--brand) 30%, transparent) !important;
}
.pf-cell.tone-blue{ background: color-mix(in srgb, var(--blue) 9%, var(--panel)) !important; }
.pf-cell.tone-red{ background: color-mix(in srgb, var(--red) 9%, var(--panel)) !important; }
.pf-cell.tone-amber{ background: color-mix(in srgb, var(--amber) 11%, var(--panel)) !important; }
.pf-cell.tone-green{ background: color-mix(in srgb, var(--green) 10%, var(--panel)) !important; }
.pf-cell-lab{ font-size: 11.5px; font-weight: 700; }
.pf-cell-ic{ font-size: 18px; }
/* 输入区更大，手机上好点 */
.pf-cell .pf-input{
  font-size: 18px !important;
  font-weight: 700;
  padding: 8px 11px !important;
  background: color-mix(in srgb, #fff 62%, transparent) !important;
  border-radius: 12px !important;
}
[data-theme="dark"] .pf-cell .pf-input{
  background: rgba(0,0,0,.22) !important;
}
/* 链接行：一个小标签说清「固定」，虚线框更柔和 */
.post-link-row{
  border-radius: 16px !important;
  border: 1.5px dashed color-mix(in srgb, var(--brand) 32%, transparent) !important;
  background: color-mix(in srgb, var(--brand) 5%, var(--panel)) !important;
  padding: 6px 12px 6px 13px;
}
.post-link-pin{
  background: color-mix(in srgb, var(--brand) 14%, transparent) !important;
  color: var(--brand-strong) !important;
  font-weight: 800;
  padding: 3px 9px;
}
.post-plat{ border-radius: 99px !important; padding: 6px 12px; font-weight: 650; }

/* ---------------- ⑦ 订单卡片：圆角 + 奶油边 ---------------- */
.order{
  border-radius: 20px !important;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent) !important;
  box-shadow: 0 2px 6px -3px rgba(28,27,25,.05), 0 12px 26px -20px rgba(28,27,25,.26) !important;
  padding: 14px 16px;
}
@media (hover: hover){ .order:hover{ box-shadow: 0 16px 32px -22px rgba(28,27,25,.4) !important; } }
.order::before{ width: 4px; border-radius: 0 4px 4px 0; }

/* ---------------- ⑦ 档案页统计：填满整行，别留大片空白 ----------------
   原来六个统计项是 flex 横排，只占左边三分之二，右边空一大块。
   改成自适应网格：宽屏 6 列一排到底，窄屏自动折成 3×2 / 2×3，
   每一格都等宽铺满，不再有「右边空一块」的观感。
   V5.33：六格上面加一行「数据概览」，整块能收起——
   收起后只留一行摘要（N 单 · 本年流水 · 结款率），手机上省半屏。 */
.pf-stats-wrap{ padding: 0 20px 18px; }
.pf-stats-head{
  display: flex; align-items: center; gap: 8px;
  width: 100%; margin: 0 0 9px; padding: 0;
  background: none; border: 0; font: inherit; color: var(--text-3);
  text-align: left; cursor: pointer;
}
.pf-sh-t{ font-size: 12px; font-weight: 600; letter-spacing: .2px; }
.pf-sh-mini{ display: none; font-style: normal; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-stats-head .cfd-chev{ width: 16px; height: 16px; flex: none; margin-left: auto; transition: transform .18s ease; }
.pf-stats{
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 10px;
  padding: 0 !important;
}
.pf-stats-wrap.is-folded .pf-stats{ display: none !important; }
.pf-stats-wrap.is-folded .pf-sh-mini{ display: inline; }
.pf-stats-wrap.is-folded .cfd-chev{ transform: rotate(-90deg); }
.pf-stats-wrap.is-folded .pf-stats-head{ margin-bottom: 0; }
.pf-stats-wrap.is-locked .cfd-chev{ display: none; }
.pf-stats-wrap.is-locked .pf-stats-head{ cursor: default; }
.pf-stat{
  min-width: 0;
  background: color-mix(in srgb, var(--brand) 4%, var(--panel-2));
  border-radius: 14px;
  padding: 11px 10px 10px;
  text-align: center;
}
.pf-stat b{ font-size: 19px; font-weight: 800; letter-spacing: -.5px; color: var(--text); }
.pf-stat span{ font-size: 11px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (hover:hover){
  .pf-stats-wrap:not(.is-locked) .pf-stats-head:hover .pf-sh-t{ color: var(--text); }
}
@media (max-width: 900px){
  .pf-stats{ grid-template-columns: repeat(3, minmax(0,1fr)) !important; }
  .pf-stat b{ font-size: 17px !important; }
  .pf-stat span{ font-size: 11px !important; }
}
@media (max-width: 860px){
  .pf-stats-wrap{ padding: 2px 16px 16px; }
}
@media (max-width: 380px){
  .pf-stats{ grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
}

/* ---------------- ⑧ 通用：小组件也圆一点 ---------------- */
.icon-btn{ border-radius: 12px !important; }
.chip-switch{ border-radius: 99px !important; }
.file-drop{ border-radius: 20px !important; }
.ci-del{ border-radius: 10px !important; }
.post-open{ border-radius: 10px !important; }
.empty-carrot{ border-radius: 20px; }

/* 折叠区里的动作按钮（复制到 Excel 等） */
.fold-act{
  border-radius: 99px !important;
  background: color-mix(in srgb, var(--brand) 8%, var(--panel)) !important;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, transparent) !important;
  color: var(--brand-strong) !important;
  font-weight: 700;
  transition: transform .15s, background .15s, box-shadow .15s;
}
@media (hover: hover){
  .fold-act:hover{
    background: var(--brand) !important;
    color: #fff !important;
    border-color: var(--brand) !important;
    transform: translateY(-1px);
    box-shadow: 0 8px 16px -8px rgba(var(--brand-rgb),.9);
  }
}
.fold-act svg{ stroke: currentColor; }
/* 「+ 添加一条发布记录」这类按钮：加个圆角胶囊感 */
.post-acts .btn{ border-radius: 99px !important; }
/* 折叠标题本身：可点的地方给点反馈 */
.fold > summary{
  border-radius: 16px;
  transition: background .16s;
}
.fold > summary:hover{ background: color-mix(in srgb, var(--brand) 4%, transparent); }
/* 折叠区整体也圆润一点 */
.fold{ border-radius: 20px !important; border-color: color-mix(in srgb, var(--line) 70%, transparent) !important; }
.fold summary{ padding: 13px 16px; }
.fold[open] summary{ border-bottom: 1px dashed var(--line); }

/* ---------------- ⑨ 日历：格子圆润、已完成更淡 ---------------- */
.cal-cell{
  border-radius: 15px !important;
  border-color: color-mix(in srgb, var(--line) 70%, transparent) !important;
  transition: transform .15s, border-color .15s, box-shadow .15s;
}
@media (hover: hover){
  .cal-cell:hover{ transform: translateY(-2px); box-shadow: 0 10px 20px -14px rgba(28,27,25,.4); }
}
.cal-cell.today{ box-shadow: 0 0 0 2.5px var(--brand-soft), 0 8px 18px -12px rgba(var(--brand-rgb),.6) !important; }
.cal-ev{
  border-radius: 8px !important;
  font-weight: 700;
  border-left-width: 3px;
}
.cal-title{ font-weight: 800; letter-spacing: .2px; }
.cal-dow{ font-weight: 700; }
.agenda-item{
  border-radius: 16px !important;
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent) !important;
  background: color-mix(in srgb, var(--brand) 3.5%, var(--panel)) !important;
}
.agenda-time{
  border-radius: 10px !important;
  background: color-mix(in srgb, var(--brand) 10%, transparent) !important;
  font-weight: 700;
}
/* 统计页的柱状图也别太硬 */
.bars .bar, .bar-fill{ border-radius: 8px 8px 3px 3px; }

/* ============================================================
   V4.8（2026-12-02）· 发布记录面板「清新奶咖风」重做
   ------------------------------------------------------------
   按参考稿来：米白底 + 奶油卡片 + 摩卡文字，四块数据用低饱和的
   莫兰迪色（青/粉/金/紫），数字是大字，链接是可点的完整超链接。
   拖拽把手从「一颗抢眼的粉色圆球」改成「低调的六点图标」，
   靠 hover / 按下时才亮起来 —— 不抢内容的戏。

   另外面板默认是只读的，点标题栏的「编辑」才变成输入框，
   这样平时浏览记录是干净的，也不会误触输入框。
   ============================================================ */

/* ---------------- 奶咖配色（只给发布记录面板用） ---------------- */
.fold-post{
  --mc-bg:      #F7F3ED;   /* 米白底 */
  --mc-card:    #FFFDFA;   /* 奶油卡片 */
  --mc-line:    #E8E0D4;   /* 细线 */
  --mc-ink:     #4A4038;   /* 摩卡主字 */
  --mc-ink-2:   #8A7D6E;   /* 次级字 */
  --mc-ink-3:   #B3A697;   /* 弱化字 */
  --mc-brown:   #6B5A4A;   /* 深棕（主按钮） */
  --mc-brown-2: #57483B;

  --mc-teal:   #E3F0EA;  --mc-teal-ink:   #4E8C77;
  --mc-rose:   #FBE7E6;  --mc-rose-ink:   #C2645F;
  --mc-gold:   #FBF0DA;  --mc-gold-ink:   #B98A34;
  --mc-lilac:  #EFEAF6;  --mc-lilac-ink:  #8B7BB5;

  background: var(--mc-bg);
  border-color: var(--mc-line);
  border-radius: 20px !important;
}
[data-theme="dark"] .fold-post{
  --mc-bg:     #241F1A;
  --mc-card:   #2C2621;
  --mc-line:   #3D3630;
  --mc-ink:    #EDE4D8;
  --mc-ink-2:  #B3A697;
  --mc-ink-3:  #8A7D6E;
  --mc-brown:  #D8C3A8;
  --mc-brown-2:#E8D5BC;
  --mc-teal:   #23332E;  --mc-teal-ink:  #7FC0A8;
  --mc-rose:   #382A29;  --mc-rose-ink:  #E29A94;
  --mc-gold:   #362E1E;  --mc-gold-ink:  #D9B061;
  --mc-lilac:  #2E2937;  --mc-lilac-ink: #AFA0D6;
}
.fold-post .fold-body{ background: transparent; }

/* ---------------- 标题栏 ---------------- */
.fold-post > summary{
  padding: 15px 16px;
  color: var(--mc-ink);
}
.fold-post > summary > span:first-child,
.fold-post > summary{ font-weight: 800; }
.fold-post > summary span{ color: var(--mc-ink-2); }
.fold-acts{ display: inline-flex; align-items: center; gap: 7px; margin-left: auto; }
.fold-act{
  border-radius: 12px !important;
  background: var(--mc-brown) !important;
  border: 1px solid var(--mc-brown) !important;
  color: #FFF8EE !important;
  font-weight: 700;
  transition: transform .15s, background .15s, box-shadow .15s;
}
[data-theme="dark"] .fold-act{ color: #241F1A !important; }
@media (hover: hover){
  .fold-act:hover{ transform: translateY(-1px); background: var(--mc-brown-2) !important; box-shadow: 0 8px 16px -8px rgba(107,90,74,.7); }
}
/* 「编辑」按钮：低调描边款，跟主按钮区分 */
.fold-act-plain{
  background: transparent !important;
  border: 1px solid var(--mc-line) !important;
  color: var(--mc-ink-2) !important;
}
@media (hover: hover){
  .fold-act-plain:hover{ background: var(--mc-card) !important; color: var(--mc-ink) !important; border-color: var(--mc-ink-3) !important; }
}
.fold-act-plain.is-on{
  background: var(--mc-brown) !important;
  border-color: var(--mc-brown) !important;
  color: #FFF8EE !important;
}
/* 深色模式：--mc-brown 是浅色，文字得反过来用深色才看得清 */
[data-theme="dark"] .fold-act-plain.is-on{ color: #241F1A !important; }
.fold-act-plain svg{ width: 13px; height: 13px; }

/* ---------------- 记录卡 ---------------- */
.fold-post .post-row{
  background: var(--mc-card) !important;
  border: 1px solid var(--mc-line) !important;
  border-radius: 18px !important;
  box-shadow: 0 2px 8px -4px rgba(90,76,62,.18) !important;
  padding: 14px 14px 15px;
}
.fold-post .post-no{
  background: var(--mc-brown) !important;
  color: #FFF8EE !important;
  box-shadow: none !important;
}
[data-theme="dark"] .fold-post .post-no{ color: #241F1A !important; }
/* 平台：只读态是一块浅色牌，编辑态才是下拉 */
.fold-post .post-plat{
  background: #F1EAE0 !important;
  border: 1px solid var(--mc-line) !important;
  color: var(--mc-ink) !important;
  border-radius: 12px !important;
  font-weight: 700;
  padding: 7px 12px;
}
[data-theme="dark"] .fold-post .post-plat{ background: #342D26 !important; }
.fold-post .post-plat.is-text{ padding-right: 12px; }

/* ---------------- 链接行 ---------------- */
.fold-post .post-link-row{
  background: #F4EEE5 !important;
  border: 1px dashed var(--mc-line) !important;
  border-radius: 13px !important;
  padding: 9px 11px;
  margin-bottom: 12px;
}
[data-theme="dark"] .fold-post .post-link-row{ background: #2A241E !important; }
.fold-post .post-link-ic{ font-size: 13px; opacity: .75; }
/* 超链接：完整显示、点开就是原文 */
.fold-post .post-link-text{
  flex: 1; min-width: 0;
  font-size: 12.5px; line-height: 1.5;
  color: var(--mc-ink);
  text-decoration: none;
  word-break: break-all;
  border-bottom: 1px solid transparent;
  transition: color .15s, border-color .15s;
}
.fold-post .post-link-text:hover{ color: var(--mc-brown); border-bottom-color: var(--mc-ink-3); }
.fold-post .post-link-text.is-empty{ color: var(--mc-ink-3); }
/* 复制小按钮 */
.fold-post .post-link-copy{
  flex: 0 0 auto; width: 26px; height: 26px;
  display: grid; place-items: center; padding: 0;
  border: 0; border-radius: 8px; background: transparent;
  color: var(--mc-ink-3); cursor: pointer;
  transition: background .15s, color .15s;
}
.fold-post .post-link-copy svg{ width: 14px; height: 14px; }
@media (hover: hover){
  .fold-post .post-link-copy:hover{ background: rgba(107,90,74,.12); color: var(--mc-brown); }
}
.fold-post .post-link-pin{
  flex: 0 0 auto;
  background: #EADFCF !important;
  color: var(--mc-ink-2) !important;
  border-radius: 8px !important;
  padding: 3px 9px;
  font-weight: 700;
}
[data-theme="dark"] .fold-post .post-link-pin{ background: #3A322A !important; }

/* ---------------- 四块数据：莫兰迪色块 + 大字 ---------------- */
.fold-post .pf-grid{ gap: 10px; }
.fold-post .pf-cell{
  border-radius: 14px !important;
  border: 1px solid transparent !important;
  padding: 11px 12px 12px;
  gap: 4px;
}
.fold-post .pf-cell.tone-teal { background: var(--mc-teal)  !important; }
.fold-post .pf-cell.tone-rose { background: var(--mc-rose)  !important; }
.fold-post .pf-cell.tone-gold { background: var(--mc-gold)  !important; }
.fold-post .pf-cell.tone-lilac{ background: var(--mc-lilac) !important; }
.fold-post .pf-cell-ic{ font-size: 15px; }
.fold-post .pf-cell-lab{
  color: var(--mc-ink) !important;
  font-weight: 700;
  font-size: 12px;
}
/* 标签颜色跟着色块走 */
.fold-post .pf-cell.tone-teal  .pf-cell-lab{ color: var(--mc-teal-ink) !important; }
.fold-post .pf-cell.tone-rose  .pf-cell-lab{ color: var(--mc-rose-ink) !important; }
.fold-post .pf-cell.tone-gold  .pf-cell-lab{ color: var(--mc-gold-ink) !important; }
.fold-post .pf-cell.tone-lilac .pf-cell-lab{ color: var(--mc-lilac-ink) !important; }

/* 只读态的大数字 */
.fold-post .pf-cell-num{
  font-size: 26px; font-weight: 800; line-height: 1.15;
  letter-spacing: -.5px;
  color: var(--mc-ink);
  font-variant-numeric: tabular-nums;
}
.fold-post .pf-cell.tone-teal  .pf-cell-num{ color: var(--mc-teal-ink); }
.fold-post .pf-cell.tone-rose  .pf-cell-num{ color: var(--mc-rose-ink); }
.fold-post .pf-cell.tone-gold  .pf-cell-num{ color: var(--mc-gold-ink); }
.fold-post .pf-cell.tone-lilac .pf-cell-num{ color: var(--mc-lilac-ink); }

/* V7.23：只读态四块压成一条。
   2×2 四个 26px 大数字块加起来将近 160px 高，而这四个数九成是手填或
   截图识别进来的**快照**（小红书不对外给浏览/收藏，抓一次就过期），
   占掉半屏不值得。现在并成一行四列的小格子，一眼能扫完；
   点「编辑」仍是 2×2（要输入、要拖顺序），改完点「完成」缩回一条。 */
/* 四个数一个都没填：不摆一排横杠，明说「这条只留了链接」 */
.fold-post .pf-none{
  margin: 0; padding: 8px 10px; border-radius: 12px;
  background: var(--panel-2); color: var(--text-3);
  font-size: 11.5px; line-height: 1.55;
}

.fold-post .post-row:not(.is-editing) .pf-grid{
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}
.fold-post .post-row:not(.is-editing) .pf-cell{
  padding: 7px 8px 8px; gap: 0; border-radius: 12px !important;
}
.fold-post .post-row:not(.is-editing) .pf-cell-top{ gap: 4px; }
.fold-post .post-row:not(.is-editing) .pf-cell-ic{ font-size: 12px; }
.fold-post .post-row:not(.is-editing) .pf-cell-lab{ font-size: 10.5px; letter-spacing: 0; }
.fold-post .post-row:not(.is-editing) .pf-grab{ display: none; }
.fold-post .post-row:not(.is-editing) .pf-cell-num{ font-size: 16px; line-height: 1.3; letter-spacing: -.2px; }
.fold-post .post-row.is-editing .pf-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 360px){
  .fold-post .post-row:not(.is-editing) .pf-cell-lab{ font-size: 10px; }
  .fold-post .post-row:not(.is-editing) .pf-cell-num{ font-size: 15px; }
}

/* 编辑态的输入框：白色，聚焦时一圈淡棕 */
.fold-post .pf-cell .pf-input{
  background: #FFFFFF !important;
  border: 1px solid var(--mc-line) !important;
  border-radius: 10px !important;
  font-size: 17px !important;
  font-weight: 700;
  color: var(--mc-ink);
  padding: 7px 10px !important;
}
[data-theme="dark"] .fold-post .pf-cell .pf-input{ background: #211C18 !important; }
.fold-post .pf-cell .pf-input:focus{
  border-color: var(--mc-brown) !important;
  box-shadow: 0 0 0 3px rgba(107,90,74,.16) !important;
}

/* ---------------- 拖拽把手：低调六点 ---------------- */
.fold-post .pf-grab{
  width: 22px !important; height: 22px !important;
  flex: 0 0 22px !important;
  border-radius: 7px !important;
  background: transparent !important;
  border: 0 !important;
  color: var(--mc-ink-3) !important;
  opacity: .55;
  box-shadow: none !important;
  transition: opacity .15s, background .15s, color .15s, transform .15s;
}
.fold-post .pf-grab svg{ width: 13px !important; height: 13px !important; }
@media (hover: hover){
  .fold-post .pf-grab:hover{
    opacity: 1;
    background: rgba(107,90,74,.14) !important;
    color: var(--mc-brown) !important;
    transform: scale(1.08);
  }
}
.fold-post .pf-grab:active{ color: #FFF8EE !important; background: var(--mc-brown) !important; }

/* ---------------- 底部按钮：2×2 网格 ---------------- */
.fold-post .post-acts{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 9px;
  margin-top: 12px;
}
.fold-post .post-acts .btn{
  width: 100%;
  height: 42px;
  border-radius: 12px !important;
  font-weight: 700;
}
.fold-post .post-acts .btn-ghost{
  background: var(--mc-card) !important;
  border: 1px solid var(--mc-line) !important;
  color: var(--mc-ink) !important;
}
@media (hover: hover){
  .fold-post .post-acts .btn-ghost:hover{ border-color: var(--mc-ink-3) !important; background: #FFFFFF !important; }
}
.fold-post .post-acts .btn-primary{
  background: var(--mc-brown) !important;
  border-color: var(--mc-brown) !important;
  color: #FFF8EE !important;
  box-shadow: none !important;
}
[data-theme="dark"] .fold-post .post-acts .btn-primary{ color: #241F1A !important; }
@media (hover: hover){
  .fold-post .post-acts .btn-primary:hover{ background: var(--mc-brown-2) !important; }
}

/* ---------------- V4.8：拖动时的目标格高亮 ----------------
   只读态下四个色块没有输入框，不给反馈用户会以为「没反应」。
   命中哪个格，哪个格就亮起来（虚线描边 + 微微抬起）。 */
.dnd-src{ opacity: .45 !important; }
.dnd-target{
  outline: 2px dashed var(--brand) !important;
  outline-offset: 3px;
  border-radius: 14px;
  /* V5.2：原来这里是无无限循环的描边呼吸动画，拖动时每帧重绘一整张
     卡片（渐变 + 大阴影），中低端手机直接掉帧。改成静态描边。 */
}
@keyframes dndPulse{
  0%, 100%{ outline-color: var(--brand); }
  50%{ outline-color: color-mix(in srgb, var(--brand) 45%, transparent); }
}
[data-theme="dark"] .dnd-target{
  outline-color: var(--brand) !important;
}
/* 拖动中的影子：更清楚地表示「我正拿着这一块」
   V5.2：位置用 translate3d + CSS 变量，避免每帧改 left/top 触发重排 */
.dnd-clone{
  transform: translate3d(var(--dx, 0px), var(--dy, 0px), 0) rotate(-2deg) scale(1.04) !important;
  box-shadow: 0 22px 44px -16px rgba(var(--brand-rgb),.6) !important;
  outline: 2px solid var(--brand) !important;
  outline-offset: 2px;
}
/* 影子里的把手别跟着高亮 / 别接受点击 */
.dnd-clone .card-grip{ opacity: .28 !important; }

/* ============================================================
   V4.9（2026-12-02）
   ① 「复制到 Excel」从标题栏挪到记录卡右上角（按用户标注的箭头位置）
      —— 标题栏因此不再被按钮挤到换行
   ② 「复制全部」保留在底部按钮区，避免功能丢失
   ③ 平台账号区：数字不再用等宽变体（0 会变成带斜杠的窄体），
      主页链接不再「域名…末6位」中间截断，改完整显示
   ============================================================ */

/* 记录卡右上角的「复制到 Excel」图标按钮 */
.post-xls{
  background: transparent;
  border: 0; color: var(--mc-ink-3);
  transition: background .15s, color .15s, transform .15s;
}
.post-xls svg{ width: 14px; height: 14px; }
@media (hover: hover){
  .post-xls:hover{ background: rgba(107,90,74,.13); color: var(--mc-brown); }
}
.post-xls:active{ transform: scale(.94); }
[data-theme="dark"] .post-xls{ color: var(--mc-ink-3); }
[data-theme="dark"] .post-xls:hover{ background: rgba(255,255,255,.1); color: var(--mc-brown-2); }

/* 底部按钮区：加一个「复制全部」 */
.fold-post .post-acts .btn-xls{
  background: transparent !important;
  border: 1px dashed var(--mc-line) !important;
  color: var(--mc-ink-2) !important;
}
@media (hover: hover){
  .fold-post .post-acts .btn-xls:hover{ border-color: var(--mc-ink-3) !important; color: var(--mc-ink) !important; }
}

/* ============================================================
   V5.0（2026-12-02）
   ① 发布记录面板标题栏不再挤：副标题独立成一格，可换行/隐藏
   ② 编辑态链接行改为上下结构（输入框独占一行，看得全）
      「固定」标签在编辑态变成「清空」按钮 —— 一键清链接
   ③ 四个数据图标从 emoji 换成内联 SVG：
      emoji 在 Windows / Mac / 手机上是三套字体渲染，同一个 👁
      在电脑上是扁眼睛、在手机上是蓝眼睛，跟中文完全不搭
   ============================================================ */

/* ---------------- ① 标题栏不挤 ---------------- */
.fold-post > summary{
  flex-wrap: wrap;
  row-gap: 2px;
  column-gap: 10px;
}
/* 标题本身占位，副标题另起一格，不再把标题挤成两行 */
.fold-post > summary > .fold-sub{
  flex: 0 1 auto;
  order: 3;
  width: 100%;
  font-size: 11px;
  font-weight: 500;
  color: var(--mc-ink-3) !important;
  letter-spacing: .2px;
}
.fold-post > summary > .fold-acts{
  order: 2;
  margin-left: auto;
  flex: 0 0 auto;
}
/* 窄屏干脆不显示副标题（它只是说明文，不是信息） */
@media (max-width: 460px){
  .fold-post > summary > .fold-sub{ display: none; }
}

/* ---------------- ② 编辑态链接行 ---------------- */
.fold-post .post-link-row.is-edit{
  display: block;              /* 不再横排 */
  padding: 8px 10px 10px;
}
.post-link-edit-top{
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 6px;
}
.post-link-edit-lab{
  font-size: 11.5px; font-weight: 700;
  color: var(--mc-ink-2);
}
/* 「清空」按钮：编辑态才出现，替代只读态的「固定」标签 */
.post-link-clear{
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 9px;
  border: 1px solid var(--mc-line);
  border-radius: 8px;
  background: transparent;
  color: var(--mc-ink-3);
  font-size: 11.5px; font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.post-link-clear svg{ width: 12px; height: 12px; }
@media (hover: hover){
  .post-link-clear:hover{
    background: var(--mc-rose); color: var(--mc-rose-ink); border-color: var(--mc-rose-ink);
  }
}
.post-link-clear:active{ transform: scale(.96); }
/* 编辑态的链接输入框：独占整行，链接再长也看得全 */
.fold-post .post-link-row.is-edit .pf-link{
  width: 100%;
  font-size: 12.5px;
  line-height: 1.5;
  white-space: normal;
}

/* ---------------- ③ 图标：内联 SVG ---------------- */
.pf-cell-ic,
.post-link-ic{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.pf-cell-ic svg{ width: 16px; height: 16px; display: block; }
.post-link-ic svg{ width: 14px; height: 14px; display: block; }
/* 四个色块的图标跟着各自色系的深色走，跟标签同色更协调 */
.fold-post .pf-cell.tone-teal  .pf-cell-ic{ color: var(--mc-teal-ink); }
.fold-post .pf-cell.tone-rose  .pf-cell-ic{ color: var(--mc-rose-ink); }
.fold-post .pf-cell.tone-gold  .pf-cell-ic{ color: var(--mc-gold-ink); }
.fold-post .pf-cell.tone-lilac .pf-cell-ic{ color: var(--mc-lilac-ink); }
.fold-post .post-link-ic{ color: var(--mc-ink-3); }

/* ---------------- V5.0 补充：品类图标 SVG 尺寸 ---------------- */
.loc-ico{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.loc-ico svg{ width: 17px; height: 17px; display: block; }
@media (max-width: 860px){
  .loc-ico svg{ width: 15px; height: 15px; }
}

/* ==================================================================
   V5.1 · ① 编辑接单的「更多」拆成独立窗口
   ② 接单记录卡片默认收起  ③ 日期 / 时间输入框统一
   ================================================================== */

/* ---------- ① 独立窗口 ---------- */
.modal-extra .modal-panel{ width: min(720px, calc(100vw - 32px)); }
.modal-extra .modal-body{ padding: 16px 20px 18px; }
/* 窗口头已经写了标题，组内那行小标题就不要再出现一次 */
.modal-extra .fgroup{ border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.modal-extra .fgroup > .fgroup-title{ display: none; }
.modal-extra .fgroup.is-open .fgroup-body{ animation: none; }
/* 发布记录：保留右上角「编辑」按钮，但去掉重复的标题行 */
.modal-extra #f-posts-fold{ border: 0 !important; background: transparent !important; border-radius: 0 !important; }
.modal-extra #f-posts-fold > summary{
  border: 0 !important; padding: 0 0 10px; justify-content: flex-end; min-height: 0;
  background: transparent !important;
}
.modal-extra #f-posts-fold > summary > span:first-child,
.modal-extra #f-posts-fold > summary .fold-sub{ display: none; }
.modal-extra #f-posts-fold > summary + .fold-body,
.modal-extra #f-posts-fold .fold-body{ padding: 0; }
.modal-extra .modal-foot .hint{ font-size: 11.5px; color: var(--text-3); }

/* ---------- ② 卡片默认收起 ---------- */
.o-fold{
  margin-left: auto;
  flex: 0 0 auto;
  width: 27px; height: 27px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid transparent; border-radius: 9px;
  background: transparent; color: var(--text-3);
  cursor: pointer; transition: background .16s, color .16s, border-color .16s;
  -webkit-tap-highlight-color: transparent;
}
.o-fold svg{ width: 15px; height: 15px; display: block; transition: transform .2s ease; }
.o-fold:hover{ background: var(--panel-2); border-color: var(--line); color: var(--text); }
.o-fold:active{ transform: scale(.94); }
/* 收起时箭头朝右（= 可展开），展开时朝下 */
.order.is-folded .o-fold svg{ transform: rotate(-90deg); }
.order.is-folded .o-sub{ display: none; }
.order.is-folded{ padding-bottom: 12px; }
@media (min-width: 861px){
  .order.is-folded .o-actions{ margin-top: 6px; }
}
@media (max-width: 860px){
  .order.is-folded{ padding: 12px 14px 11px 15px; }
  .order.is-folded .o-right{ margin-top: 6px; }
  .order.is-folded .o-actions{ margin-top: 9px; padding-top: 9px; }
}
/* 收起后金额那一档稍微提亮，卡片不显得空 */
.order.is-folded .o-amt{ font-size: 18px; }

/* ---------- ③ 日期 / 时间输入框 ---------- */
.field input[type="date"],
.field input[type="datetime-local"],
.field input[type="time"],
.field input[type="month"]{
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  height: 40px;
  padding: 0 12px;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
}
.field input[type="date"]:focus,
.field input[type="datetime-local"]:focus,
.field input[type="time"]:focus,
.field input[type="month"]:focus{
  border-color: var(--brand);
  background: var(--panel);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.field input[type="date"]::-webkit-date-and-time-value,
.field input[type="datetime-local"]::-webkit-date-and-time-value{
  text-align: left;
  margin: 0;
  min-height: 0;
}
.field input[type="date"]::-webkit-datetime-edit,
.field input[type="datetime-local"]::-webkit-datetime-edit{
  padding: 0;
  line-height: 38px;
}
.field input[type="date"]::-webkit-calendar-picker-indicator,
.field input[type="datetime-local"]::-webkit-calendar-picker-indicator{
  opacity: .42;
  cursor: pointer;
  margin-left: 4px;
  padding: 0;
}
.field input[type="date"]::-webkit-calendar-picker-indicator:hover,
.field input[type="datetime-local"]::-webkit-calendar-picker-indicator:hover{ opacity: .8; }
/* iOS：不设 16px 会触发自动放大，控件也会被撑成两倍高 */
@media (max-width: 860px){
  .field input[type="date"],
  .field input[type="datetime-local"],
  .field input[type="time"],
  .field input[type="month"]{
    height: 44px;
    font-size: var(--fs-form);
    border-radius: 12px;
    padding: 0 14px;
  }
  .field input[type="date"]::-webkit-datetime-edit,
  .field input[type="datetime-local"]::-webkit-datetime-edit{ line-height: 42px; }
}

/* 提醒窗口里的快捷按钮跟输入框贴紧一点 */
#remindQuick{ margin-top: 7px; flex-wrap: wrap; }

/* 独立窗口里 summary 的标题文字换成 .fold-title，删掉重复的标题行 */
.modal-extra #f-posts-fold > summary > .fold-title{ display: none; }
/* 手机端栅格折成一列后，字段间距只留一个来源（grid 的 row-gap）。
   之前这里给了 margin-bottom:12 + 下面 .field+.field 又给 margin-top:12，
   再叠上 row-gap:12 → 日期框和时间标签之间空出 36px，看着像「改完还有留白」。
   现在两处 margin 都归零，折叠后行距 = row-gap 12px，跟桌面两列并排时一致。 */
@media (max-width: 520px){
  .modal-extra .grid-2 > .field,
  .modal-extra .grid-3 > .field,
  .modal-extra .grid-4 > .field{ margin-bottom: 0; }
  .modal-extra .grid-2 > .field + .field,
  .modal-extra .grid-3 > .field + .field,
  .modal-extra .grid-4 > .field + .field{ margin-top: 0; }
  .modal-extra .field p.hint{ margin-bottom: 8px; }
}
/* 独立窗口里不需要「+ / −」那个展开标记 */
.modal-extra #f-posts-fold > summary::after{ content: none !important; display: none !important; }
/* 展开箭头跟着金额走：桌面上落在「待收」下方，手机上在金额行最右 */
.o-right .o-fold{ margin-left: auto; }
@media (min-width: 861px){ .o-right .o-fold{ margin-left: 0; margin-top: 2px; } }
/* 金额 + 「元」贴紧右对齐（加了箭头按钮后 flex 会把宽度算窄，这里显式排一下） */
.o-right .o-amt{
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 3px;
  width: max-content;
  max-width: 100%;
}
.o-right .o-amt small{ margin: 0; }
/* 「更多」菜单：条目带摘要，限制最大宽度，超了省略，别顶出面板 */
#popMenu{ max-width: min(380px, calc(100vw - 24px)); }
#popMenu .pm-item{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
@media (max-width: 520px){
  #popMenu{ max-width: calc(100vw - 24px); }
  #popMenu .pm-item{ font-size: 12.5px; }
}
/* 独立窗口里相邻的两块栅格之间留口气，否则第二排标签贴着上一排输入框 */
.modal-extra .grid-2 + .grid-2,
.modal-extra .grid-2 + .field,
.modal-extra .field + .grid-2,
.modal-extra .field + .field{ margin-top: 12px; }

/* ---------------- V5.2 · 拖拽手感 ----------------
   把手：iOS 长按不要弹「拷贝/查询」菜单，也不要选中文字，
   否则按住稍久就变成选字，拖动被系统抢走。 */
.card-grip{
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
/* 拖动过程中整页禁止选中，避免拖到文字上出现蓝色选区 */
body.dnd-active{ -webkit-user-select: none; user-select: none; }
body.dnd-active .order:hover{ transform: none !important; }

/* ==================================================================
   V5.3 · 提醒中心：未读标红 + 角标与列表同源
   ================================================================== */

/* 未读：左侧那根色条保持状态色（绿=已结款之外的进度），
   另加一层浅红底 + 标题前红点，扫一眼就知道哪条还没看。 */
.order.is-unread{
  border-color: color-mix(in srgb, var(--red) 26%, var(--line));
  background: color-mix(in srgb, var(--red) 3.5%, var(--panel));
}
.order.is-unread:hover{ border-color: color-mix(in srgb, var(--red) 42%, var(--line)); }
.unread-dot{
  flex: 0 0 7px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 15%, transparent);
}
.order.is-unread .o-title b{ font-weight: 750; }
.rm-unread{ color: var(--red) !important; font-weight: 700; }
.alert-bar b.rm-unread{ color: var(--red); }

/* 提示条上多了「全部已读」，手机上让它折行，别把文字挤成一条缝 */
@media (max-width: 640px){
  .alert-bar{ flex-wrap: wrap; gap: 9px 10px; padding: 12px 13px; align-items: flex-start; }
  .alert-bar p{ flex: 1 1 calc(100% - 22px); }
  .alert-bar .btn{ flex: 1 1 auto; }
  .alert-bar .dot{ margin-top: 6px; }
}

/* ============================================================
   V5.4 ① 单子类型标签 / 类型选择
   ============================================================ */
.type-tag{ font-weight: 650; letter-spacing: 0; }
.order .o-title .type-tag{ flex: 0 0 auto; }

/* 编辑接单：基础信息顶部四选一 */
.type-seg{ display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 2px; }
.type-chip{
  height: 42px; padding: 0 8px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text-2);
  font-size: 12.5px; font-weight: 650; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
  -webkit-tap-highlight-color: transparent;
}
.type-chip:hover{ border-color: var(--line-strong); }
.type-chip.on{
  border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 9%, transparent);
  font-weight: 750;
}
.type-hint{
  margin-top: 8px; padding: 8px 10px; border-radius: 10px;
  border: 1px solid var(--line); border-left: 3px solid var(--brand);
  background: var(--panel-2); color: var(--text-3);
  font-size: 11.5px; line-height: 1.65;
}

/* 到店准备第一步：四张类型卡 */
.prep-types{ display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 4px; }
.prep-type{
  position: relative; text-align: left; padding: 11px 11px 10px;
  border-radius: 14px; border: 1.5px solid var(--line); background: var(--panel-2);
  display: flex; flex-direction: column; gap: 3px; cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .15s, transform .12s;
  -webkit-tap-highlight-color: transparent;
}
.prep-type:active{ transform: scale(.985); }
.prep-type .pt-ic{
  width: 30px; height: 30px; border-radius: 9px; margin-bottom: 3px;
  display: grid; place-items: center; background: var(--panel); color: var(--text-2);
}
.prep-type .pt-ic svg{ width: 17px; height: 17px; }
.prep-type b{ font-size: 13px; font-weight: 750; color: var(--text); line-height: 1.35; }
.prep-type span{ font-size: 11.5px; color: var(--text-3); line-height: 1.45; }
.prep-type em{
  position: absolute; right: 9px; top: 9px; font-style: normal;
  font-size: 10px; color: var(--text-3); background: var(--bg-soft);
  padding: 2px 6px; border-radius: 99px;
}
.prep-type.on{ border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 9%, transparent); }
.prep-type.on b{ color: var(--brand-strong); }
.prep-type.on .pt-ic{ background: var(--brand); color: #fff; }
.prep-type.on em{ background: var(--panel); color: var(--brand-strong); }

/* 快速记一单：一行四个类型 chip */
.qc-types{ display: flex; gap: 7px; }
.qc-type{
  flex: 1 1 0; min-width: 0; height: 44px; padding: 0 4px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text-2);
  font-size: 12.5px; font-weight: 650; white-space: nowrap; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
}
.qc-type.on{ border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); font-weight: 750; }
.qc-type-tip{ margin-top: 7px; font-size: 11.5px; line-height: 1.5; color: var(--text-3); }

/* ============================================================
   V5.14 接单记录左滑：微信式操作条
   ------------------------------------------------------------
   V5.4 那版是「一个红色删除按钮滑进来盖住内容」——
   微信的做法不一样：内容整体左移，右侧露出并排的彩色按钮，
   条是卡片的一部分（不是浮在上面），所以点哪条一目了然。

   布局：卡片内容包在 .o-slide 里，左滑时整体 translateX(-72px)，
   露出 .o-swipe-acts（72px 宽 = V5.15 只剩「删除」一条）。
   ============================================================ */
/* V5.19：操作条现在有三条（216px），不裁剪的话会溢出到卡片外面，
   圆角也包不住它 —— 视觉上像是「红块贴到了屏幕边上」。
   做法：给操作条自己加圆角（左上/右上跟卡片一致），
   不用改 .order 的 overflow —— 那个会影响卡片展开/删除的塌陷动画。 */
.o-swipe-acts{
  border-top-right-radius: 19px; border-bottom-right-radius: 19px;
  overflow: hidden;
}
.order.is-swipeable{ touch-action: pan-y; }
.order.is-swipeable > *{ transition: transform .22s cubic-bezier(.2,.8,.25,1); }
.order.is-swipeable.is-swiping > *{ transition: none; }
.order.is-swipeable.is-swiping:hover{ transform: none; }
/* 已结款 / 已取消 的卡片整体降透明度，但滑出来的操作条要保持醒目 */
.order.is-done.is-swipeable, .order.is-cancel.is-swipeable{ opacity: 1; }
.order.is-done.is-swipeable > *:not(.o-swipe-acts), .order.is-cancel.is-swipeable > *:not(.o-swipe-acts){ opacity: .68; }
.order.is-swipeable > .o-swipe-acts{ opacity: 1; }

/* 操作条锚在卡片右缘，初始整体推到卡外；滑动时随 --sx 一起滑回来。
   （若把它写成 right:-72px 再跟着同一个 --sx 走，按钮要到最后几像素才露脸，
   那是错的 —— 微信是「按钮跟着手指从右缘滑入、内容同时左移」。） */
.o-swipe-acts{
  position: absolute; top: 0; bottom: 0; right: 0; width: 216px;
  display: flex; z-index: 2;
  transform: translateX(calc(216px + var(--sx, 0px)));
}
/* 内容整体左移，让出右侧 216px 给操作条 —— 和微信一致 */
.order.is-swipeable > *:not(.o-swipe-acts){ transform: translateX(var(--sx, 0px)); }
.o-swipe-acts button{
  flex: 1 1 0; min-width: 0; border: 0; padding: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  color: #fff; font-family: inherit; font-size: 12px; font-weight: 700;
  letter-spacing: .3px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.o-swipe-acts button svg{ width: 17px; height: 17px; }
.o-swipe-acts button:active{ filter: brightness(.92); }
/* V5.19：三条 —— 回填链接（浅蓝）/ 不显示（灰）/ 删除（红）。
   颜色深浅是刻意的：删除最重、放在最右，滑动时先露出来的是最轻的那条。 */
.sa-pb{ background: #3E7BFA; }
.sa-hide{ background: #7A8496; }
.sa-del{ background: #E5453B; }
.o-swipe-acts button[disabled]:active{ filter: none; }

/* 删除动效：卡片塌下去 + 淡出 + 红光一闪，然后才真正从列表里消失。
   高度是先量好写死再收到 0，不然 grid 卡片没法过渡。 */
.order.is-removing{
  overflow: hidden; pointer-events: none;
  transition: height .28s cubic-bezier(.3,.9,.3,1), margin .28s,
              opacity .24s ease, transform .28s ease, padding .28s;
  opacity: 0;
  transform: translateX(-18px) scale(.985);
  padding-top: 0; padding-bottom: 0;
}
.order.is-removing::after{
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: var(--red); opacity: 0; pointer-events: none;
  animation: del-flash .28s ease forwards;
}
@keyframes del-flash{
  0%{ opacity: .18; }
  100%{ opacity: 0; }
}
@media (prefers-reduced-motion: reduce){
  .order.is-removing{ transition: opacity .12s linear; transform: none; }
  .order.is-removing::after{ animation: none; }
}

/* ============================================================
   V5.4 ③ 日期 / 时间选择器
   ============================================================ */
.dp-input{ cursor: pointer; caret-color: transparent; -webkit-tap-highlight-color: transparent; }
.field .dp-input{
  height: 40px; padding: 0 38px 0 12px; font-size: 13.5px;
  border-radius: 11px; font-variant-numeric: tabular-nums;
  background-repeat: no-repeat; background-position: right 12px center; background-size: 17px;
}
.qc-input.dp-input{
  padding-right: 38px; font-variant-numeric: tabular-nums;
  background-repeat: no-repeat; background-position: right 13px center; background-size: 18px;
}
/* 注意：.field input[readonly] 和 .field input 都用 background 简写 + !important
   把图标冲掉了，这里必须同样用 !important 写在后面，才能把日历/时钟补回来 */
input.dp-input[data-dp="date"], input.dp-input[data-dp="datetime"], input.dp-input[data-dp="month"]{
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%239A958B'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Crect%20x='3'%20y='5'%20width='18'%20height='16'%20rx='3'/%3E%3Cpath%20d='M8%203v4M16%203v4M3%2011h18'/%3E%3C/svg%3E") !important;
  background-position: right 13px center !important;
  background-repeat: no-repeat !important;
  background-size: 17px 17px !important;
}
input.dp-input[data-dp="time"]{
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='none'%20stroke='%239A958B'%20stroke-width='1.8'%20stroke-linecap='round'%20stroke-linejoin='round'%3E%3Ccircle%20cx='12'%20cy='12'%20r='9'/%3E%3Cpath%20d='M12%207v5l3.2%202'/%3E%3C/svg%3E") !important;
  background-position: right 13px center !important;
  background-repeat: no-repeat !important;
  background-size: 17px 17px !important;
}
/* 只读是为了拦住系统键盘，不是禁用：别套用「灰掉」那套只读样式 */
.field input.dp-input[readonly]{
  background-color: color-mix(in srgb, var(--brand) 4%, var(--panel-2)) !important;
  color: var(--text) !important;
  -webkit-text-fill-color: var(--text);
  opacity: 1;
  cursor: pointer;
}
.field input.dp-input[data-empty="1"]{ color: var(--text-3) !important; -webkit-text-fill-color: var(--text-3); }

.dp-layer{ position: fixed; inset: 0; z-index: 9990; display: none; }
.dp-layer.open{ display: block; }
.dp-mask{
  position: absolute; inset: 0; background: rgba(24,22,19,.36);
  animation: dpFade .18s ease; -webkit-tap-highlight-color: transparent;
}
.dp-panel{
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 352px; max-width: calc(100vw - 32px); max-height: calc(100vh - 48px); overflow: auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-lg); padding: 6px 16px 14px;
  animation: dpPop .18s cubic-bezier(.2,.9,.3,1);
}
.dp-grab{ display: none; }
.dp-top{ display: flex; align-items: center; gap: 10px; padding: 8px 0 9px; }
.dp-top b{ flex: 1; font-size: 15px; font-weight: 800; letter-spacing: -.2px; }
.dp-x{
  width: 30px; height: 30px; border: 0; border-radius: 9px; background: transparent;
  color: var(--text-3); display: grid; place-items: center; cursor: pointer;
}
.dp-x svg{ width: 16px; height: 16px; }
.dp-x:hover{ background: var(--bg-soft); color: var(--text); }

.dp-quick{ display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.dp-qchip{
  height: 30px; padding: 0 11px; border-radius: 99px;
  border: 1px solid var(--line); background: var(--panel-2); color: var(--text-2);
  font-size: 12.5px; font-weight: 650; cursor: pointer;
}
.dp-qchip:hover{ border-color: var(--line-strong); }
.dp-qchip.on{
  border-color: color-mix(in srgb, var(--brand) 42%, transparent);
  background: var(--brand-soft); color: var(--brand-strong);
}

.dp-cal-head{ display: flex; align-items: center; gap: 6px; height: 38px; }
.dp-nav{
  width: 34px; height: 34px; flex: 0 0 34px; border: 0; border-radius: 10px;
  background: transparent; color: var(--text-2); font-size: 21px; line-height: 1;
  cursor: pointer; display: grid; place-items: center; padding-bottom: 2px;
}
.dp-nav:hover{ background: var(--bg-soft); color: var(--text); }
.dp-month{
  flex: 1; height: 34px; border: 0; border-radius: 10px; background: transparent;
  color: var(--text); font-size: 14.5px; font-weight: 750; letter-spacing: -.2px; cursor: pointer;
}
.dp-month:hover{ background: var(--bg-soft); }
.dp-ymtitle{ flex: 1; text-align: center; font-size: 14.5px; font-weight: 750; }

.dp-week, .dp-grid{ display: grid; grid-template-columns: repeat(7, minmax(0,1fr)); gap: 2px; }
.dp-week span{
  text-align: center; padding: 4px 0 6px; font-size: 11px; font-weight: 600; color: var(--text-3);
}
.dp-cell{
  height: 40px; border: 0; border-radius: 12px; background: transparent;
  color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer;
  font-variant-numeric: tabular-nums; position: relative;
  transition: background .12s, color .12s;
}
.dp-cell:hover{ background: var(--bg-soft); }
.dp-cell.is-out{ color: color-mix(in srgb, var(--text-3) 55%, transparent); }
.dp-cell.is-today{ color: var(--brand-strong); font-weight: 750; }
.dp-cell.is-today::after{
  content: ''; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px;
  margin-left: -2px; border-radius: 50%; background: var(--brand);
}
.dp-cell.is-sel{
  background: var(--brand); color: #fff;
  box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--brand) 80%, transparent);
}
.dp-cell.is-sel::after{ display: none; }

.dp-mgrid{ display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; padding: 4px 0 8px; }
.dp-mcell{
  height: 50px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text); font-size: 13.5px; font-weight: 650; cursor: pointer;
}
.dp-mcell:hover{ border-color: var(--line-strong); background: var(--bg-soft); }
.dp-mcell.is-today{ color: var(--brand-strong); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.dp-mcell.is-sel{ background: var(--brand); border-color: var(--brand); color: #fff; }

.dp-time-chips{ display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: 5px; margin: 2px 0 4px; }
.dp-tchip{
  height: 30px; padding: 0 2px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text-2); font-size: 12.5px; font-weight: 650;
  font-variant-numeric: tabular-nums; cursor: pointer;
}
.dp-tchip.on{ background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 42%, transparent); color: var(--brand-strong); }

.dp-wheels{
  position: relative; display: flex; align-items: center; justify-content: center;
  gap: 4px; height: 200px; width: min(236px, 100%); margin: 0 auto;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 26%, #000 74%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 26%, #000 74%, transparent);
}
.dp-band{
  position: absolute; left: 50%; top: 80px; width: 182px; height: 40px;
  transform: translateX(-50%); border-radius: 12px;
  background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 16%, transparent);
  pointer-events: none;
}
.dp-col{
  position: relative; z-index: 1; width: 76px; height: 200px; overflow-y: auto;
  scroll-snap-type: y mandatory; scrollbar-width: none; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.dp-col::-webkit-scrollbar{ display: none; }
.dp-col-pad{ height: 80px; }
.dp-item{
  height: 40px; display: flex; align-items: center; justify-content: center;
  font-size: 21px; font-weight: 700; color: var(--text);
  font-variant-numeric: tabular-nums; scroll-snap-align: center;
}
.dp-colon{ font-size: 20px; font-weight: 800; color: var(--text-3); }

.dp-preview{
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 4px 0 2px; font-size: 12.5px; color: var(--text-2);
}
.dp-preview b{ font-size: 13px; font-weight: 750; color: var(--text); }

.dp-foot{
  display: flex; align-items: center; gap: 8px;
  margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line);
}
.dp-clear{
  height: 36px; padding: 0 12px; border: 0; border-radius: 10px;
  background: transparent; color: var(--text-3); font-size: 13px; font-weight: 600; cursor: pointer;
}
.dp-clear:hover{ background: var(--red-soft); color: var(--red); }
.dp-today{
  height: 36px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel-2); color: var(--text-2); font-size: 13px; font-weight: 650; cursor: pointer;
}
.dp-today:hover{ border-color: var(--line-strong); }
.dp-ok{
  height: 36px; padding: 0 20px; border: 0; border-radius: 10px;
  background: var(--brand); color: #fff; font-size: 13.5px; font-weight: 750; cursor: pointer;
  box-shadow: 0 8px 18px -12px color-mix(in srgb, var(--brand) 90%, transparent);
}
.dp-ok:hover{ background: var(--brand-strong); }

@keyframes dpFade{ from{ opacity: 0 } }
@keyframes dpPop{ from{ opacity: 0; transform: translate(-50%,-48%) scale(.97) } }
@keyframes dpUp{ from{ transform: translateY(26px); opacity: .55 } }

@media (max-width: 860px){
  .dp-panel{
    left: 0; right: 0; top: auto; bottom: 0; transform: none;
    width: auto; max-width: none; max-height: 92vh;
    border-radius: 22px 22px 0 0; padding: 2px 16px calc(14px + env(safe-area-inset-bottom));
    animation: dpUp .24s cubic-bezier(.2,.9,.3,1);
  }
  .dp-grab{
    display: block; width: 38px; height: 4px; border-radius: 99px;
    background: var(--line-strong); margin: 7px auto 1px;
  }
  .dp-cell{ height: 44px; font-size: 15px; }
  .dp-mcell{ height: 54px; font-size: 14px; }
  .dp-qchip, .dp-tchip{ height: 32px; }
  .dp-clear, .dp-today, .dp-ok{ height: 40px; }
  /* iOS：小于 16px 会触发自动放大，只读框也一样 */
  .field .dp-input{ height: 44px; font-size: var(--fs-form); border-radius: 12px; padding: 0 40px 0 14px; background-position: right 14px center; }
  .qc-input.dp-input{ font-size: var(--fs-form); }
}
@media (prefers-reduced-motion: reduce){
  .dp-mask, .dp-panel{ animation: none; }
}

/* ============================================================
   V5.9（2026-12-03）
   ① 表单输入格字号全项目统一，并且**可调**（设置 → 表单字号 小/标准/大）
      手机默认 15px（原来一刀切 16px，长地址看着挤），桌面 14.5px
   ② 门店地址回归「一整行」：标签行去掉「定位 / 导航」两个按钮
      —— 挤是一回事，那两个按钮点下去菜单会被同一次点击关掉，等于是坏的
   ③ 地址下面加一行城市提示：异地单写明「按哪座城市找店」
   ============================================================ */
:root{ --fs-form: 15px; }
html[data-fs="small"]{ --fs-form: 14px; }
html[data-fs="large"]{ --fs-form: 16px; }
@media (min-width: 769px){
  :root{ --fs-form: 14.5px; }
  html[data-fs="small"]{ --fs-form: 13.5px; }
  html[data-fs="large"]{ --fs-form: 15.5px; }
}

.field input, .field select, .field textarea,
.qc-input, .pf-input, .addr-area, .num-body textarea{ font-size: var(--fs-form); }
#formModal .qc-input{ font-size: var(--fs-form); }
/* V6.1：桌面端也按「回复正文」的行距走，多行框 1.7、单行 1.5 */
.field input, .field select, .qc-input, .pf-input{ line-height: 1.5; }
.field textarea, .num-body textarea{ line-height: 1.7; }

/* 地址：两行铺开，长地址一眼看全 */
.field textarea.addr-area{
  min-height: 64px; line-height: 1.7; resize: none;
  padding: 10px 13px !important;
}
textarea.qc-input.qc-area{
  height: auto !important; min-height: 64px; line-height: 1.7; resize: none;
  padding: 11px 12px !important;
}

/* 城市提示：一行小字，不占地方；异地单换成琥珀色，提醒「按那边找店」 */
.addr-meta{
  display: block; margin-top: 6px;
  font-size: 11.5px; line-height: 1.5; color: var(--text-3);
}
.addr-meta.is-away{ color: var(--amber-strong, #a1620a); }

@media (max-width: 768px){
  .field textarea.addr-area{ min-height: 68px; }
  textarea.qc-input.qc-area{ min-height: 66px; }
  .addr-meta{ font-size: 12px; }
}

/* 快速记单：日期 / 时间这一行从内联样式收回来，窄屏才能改成两行 */
.qc-date-row{ display: flex; gap: 9px; }
.qc-date-row #qcDate{ flex: 1 1 auto; min-width: 0; }
.qc-date-row #qcTime{ flex: 0 0 42%; min-width: 0; }

/* 小屏（≤380）：四个类型改 2×2、日期和时间各占一行、底部按钮收一收。
   不改的话就只剩「一路往右缩」，最后一个字被切掉（实探·图 / 发布时 / 周）。 */
@media (max-width: 380px){
  #qcType{ display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
  .qc-date-row{ flex-wrap: wrap; gap: 8px; }
  .qc-date-row #qcDate, .qc-date-row #qcTime{ flex: 1 0 100%; }
  #quickModal .modal-foot{ gap: 6px; padding: 11px 12px; }
  #quickModal .modal-foot .btn{ padding: 0 11px; font-size: 13px; }
  .qc-type{ font-size: 12px; }
  .qc-day-chips{ display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .qc-day-chips .qc-chip{ padding: 0 4px; font-size: 12px; }
}

/* ---------------- 出稿要求：多行输入 + 语音 ---------------- */
.brief-wrap{ position: relative; }
.brief-wrap textarea{
  width: 100%; min-height: 78px; padding: 10px 46px 10px 12px;
  border-radius: 11px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text);
  font-size: var(--fs-form, 15px); line-height: 1.65; resize: vertical;
}
.brief-wrap textarea:focus{ outline: none; border-color: var(--brand); }
.brief-mic{
  position: absolute; right: 8px; bottom: 8px;
  width: 34px; height: 34px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--panel-2, var(--panel)); color: var(--text-2);
  display: grid; place-items: center; cursor: pointer;
  transition: background .16s, color .16s, border-color .16s, transform .16s;
  -webkit-tap-highlight-color: transparent;
}
.brief-mic svg{ width: 17px; height: 17px; }
.brief-mic:active{ transform: scale(.94); }
.brief-mic.is-rec{
  background: var(--brand); border-color: var(--brand); color: #fff;
  animation: micPulse 1.1s ease-in-out infinite;
}
@keyframes micPulse{
  0%, 100%{ box-shadow: 0 0 0 0 rgba(var(--brand-rgb), .45); }
  60%{ box-shadow: 0 0 0 7px rgba(var(--brand-rgb), 0); }
}
@media (prefers-reduced-motion: reduce){
  .brief-mic.is-rec{ animation: none; }
}

/* ---------------- 我的出稿规则（设置页） ---------------- */
.ai-rules{
  flex: 1 1 100%; width: 100%; box-sizing: border-box;
  margin-top: 4px; padding: 11px 12px 10px;
  border-radius: 14px; border: 1px dashed var(--line);
  background: var(--panel-2, rgba(0,0,0,.015));
  display: flex; flex-direction: column; gap: 9px;
}
.ai-rules-head{ display: flex; flex-direction: column; gap: 2px; }
.ai-rules-head b{ font-size: 13px; font-weight: 700; }
.ai-rules-head span{ font-size: 10.5px; line-height: 1.6; color: var(--text-3); }
.ai-rules .brief-wrap textarea{ min-height: 84px; background: var(--panel); }
.ai-rules-foot{ display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ai-rules-state{ font-size: 10.5px; color: var(--text-3); }
.ai-rules-state.is-on{ color: var(--brand); font-weight: 600; }
.ai-rules-btns{ display: flex; gap: 6px; margin-left: auto; }

/* ---- V5.16：设置页里「我的出稿规则」「我的口味画像」可折叠 ---- */
.ai-rules.is-foldable{ padding: 0; overflow: hidden; }
.ai-rules.is-foldable .fold-head{
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 11px 13px; margin: 0;
  background: none; border: 0; border-radius: 0;
  font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.ai-rules.is-foldable .fold-head:hover{ background: rgba(232,93,74,.04); }
.ai-rules.is-foldable .fh-l{ display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ai-rules.is-foldable .fold-head b{ font-size: 13px; font-weight: 700; }
.ai-rules.is-foldable .fh-sum{ font-size: 10.5px; color: var(--text-3); line-height: 1.5; }
.ai-rules.is-foldable .fh-chev{
  flex: 0 0 auto; width: 16px; height: 16px; color: var(--text-3);
  transition: transform .2s ease;
}
.ai-rules.is-foldable.is-open .fh-chev{ transform: rotate(180deg); }
.ai-rules.is-foldable .fold-body{ padding: 0 13px 12px; }
.ai-rules.is-foldable .fold-tip{
  margin: 0 0 9px; font-size: 10.5px; line-height: 1.6; color: var(--text-3);
}
.chip-mini{
  height: 26px; padding: 0 10px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text-2);
  font-family: inherit; font-size: 11.5px; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.chip-mini:hover{ border-color: var(--brand); color: var(--brand); }
.chip-mini:active{ transform: scale(.97); }

/* ---------------- 文档转 PDF 的等待态 ---------------- */
.fv-loading{
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 46px 16px; text-align: center;
}
.fv-loading b{ font-size: 14.5px; color: var(--text); font-weight: 700; }
.fv-loading em{ font-size: 11.5px; font-style: normal; color: var(--text-3); line-height: 1.7; max-width: 320px; }
.fv-spin{
  width: 26px; height: 26px; border-radius: 50%;
  border: 2.5px solid var(--line); border-top-color: var(--brand);
  animation: fvSpin .8s linear infinite;
}
@keyframes fvSpin{ to{ transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce){
  .fv-spin{ animation-duration: 2.4s; }
}

/* ============================================================
   V5.13
   ① iOS Safari 聚焦放大：输入框字号 <16px 时系统会自动放大整页，
      这是 Safari 的默认行为，不是页面 bug，但体感很像 bug。
      统一把「会弹键盘的控件」提到 16px，就不再放大。
   ② 月份筛选：原生 <select> 的下拉列表由系统绘制，改不了样式
      （iOS 是滚轮、安卓是系统蓝条），换成自己画的底部面板。
   ③ 出稿「独家细节」卡：把用户亲历的事实按格子收进来，
      这才是稿子不雷同的来源。
   ============================================================ */

/* ---- ① 移动端输入框字号 ----
   V6.1 改：原来为了躲 iOS 聚焦缩放，把所有输入框硬顶到 16px，结果
   接单里每个格子里的字都比正文大一号，显得又粗又挤。现在按
   「DeepSeek 回复」的观感统一成 15px / 行高 1.7 / 常规字重 ——
   字号小一档，行距放开，看起来是同一套排版。
   代价：iOS Safari 聚焦 <16px 的输入框时会轻微放大一次（系统行为）。
   index.html 的 viewport 已加 maximum-scale=1，安卓 / 微信内不再放大。 */
@media (hover: none) and (pointer: coarse), (max-width: 768px){
  :root{ --fs-safe: 15px; }
  html[data-fs="large"]{ --fs-safe: 16px; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):not([type="color"]),
  textarea,
  select{
    font-size: var(--fs-safe) !important;
  }
  /* 单行框行高收一点（不撑高），多行框放开到 1.7，读起来像回复正文 */
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
  select{
    line-height: 1.5;
  }
  textarea{ line-height: 1.7; }
}

/* ---- ② 月份筛选 ---- */
.month-btn{
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 12px 0 13px;
  border-radius: 12px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text);
  font-size: 13px; font-weight: 650; font-family: inherit;
  max-width: 148px; cursor: pointer;
  transition: border-color .16s, background .16s;
}
.month-btn span{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.month-btn .mb-chev{ width: 13px; height: 13px; color: var(--text-3); flex: none; transition: transform .2s; }
.month-btn.is-on{ border-color: var(--brand); background: var(--brand-soft); color: var(--brand-strong); }
.month-btn.is-on .mb-chev{ color: var(--brand); }
.month-btn:active{ transform: scale(.97); }

.mp-sheet{ position: fixed; inset: 0; z-index: 320; display: none; }
.mp-sheet.is-open{ display: block; }
.mp-bd{ position: absolute; inset: 0; background: rgba(20,18,16,.38); animation: mpFade .18s ease both; }
.mp-panel{
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--panel); border-radius: 20px 20px 0 0;
  padding: 6px 0 max(10px, env(safe-area-inset-bottom));
  box-shadow: 0 -8px 30px rgba(20,18,16,.16);
  animation: mpUp .24s cubic-bezier(.22,.9,.3,1) both;
  max-height: 64vh; display: flex; flex-direction: column;
}
@media (min-width: 640px){
  .mp-panel{ left: 50%; right: auto; width: 380px; transform: translateX(-50%);
    bottom: auto; top: 50%; margin-top: -180px; border-radius: 20px; }
}
.mp-grab{ width: 38px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 8px auto 4px; }
.mp-title{ padding: 6px 20px 8px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.mp-list{ overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 8px 6px; }
.mp-list .mp-item{
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; height: 48px; padding: 0 12px; border: 0; border-radius: 12px;
  background: transparent; font-family: inherit; font-size: 15px; font-weight: 600;
  color: var(--text); text-align: left; cursor: pointer;
}
.mp-list .mp-item:active{ background: var(--panel-2); }
.mp-list .mp-item.on{ color: var(--brand); }
.mp-list .mp-item.on .mp-tick{ opacity: 1; }
.mp-list .mp-tick{ width: 18px; height: 18px; opacity: 0; color: var(--brand); flex: none; }
.mp-list .mp-item .mp-n{ font-size: 11.5px; font-weight: 600; color: var(--text-3); margin-left: auto; margin-right: 8px; }
@keyframes mpUp{ from{ transform: translateY(100%); } to{ transform: translateY(0); } }
@keyframes mpFade{ from{ opacity: 0; } to{ opacity: 1; } }
@media (min-width: 640px){
  @keyframes mpUp{ from{ opacity: 0; transform: translateX(-50%) translateY(12px) scale(.98); }
    to{ opacity: 1; transform: translateX(-50%) translateY(0) scale(1); } }
}

/* ---- 结款对账清单（V5.13 起；V5.22 整份清单搬进顶部下拉面板） ----
   这一段只剩「面板里的内容」：分组标题、一行一单、说明、空态/异常态。
   面板本身（遮罩、滑入、头部、滚动）在文件末尾的 V5.22 段。 */
.recon-sec{
  display: block; font-size: 10.5px; font-weight: 750; letter-spacing: .06em;
  color: var(--text-3); margin: 12px 0 2px;
}
.recon-sec:first-child{ margin-top: 2px; }

.recon-row{ display: flex; align-items: center; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.recon-row:last-of-type{ border-bottom: 0; }
.rr-l{ flex: 1; min-width: 0; }
.rr-l b{ display: block; font-size: 13.5px; font-weight: 700; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-l em{ font-style: normal; font-size: 11.5px; color: var(--text-2); }
.recon-row.is-late .rr-l em{ color: var(--red); font-weight: 650; }
.recon-tip{ margin: 10px 0 2px; font-size: 11px; color: var(--text-3); line-height: 1.65; }

/* 空态 / 异常态：给一句人话，别留白 */
.recon-empty{ display: flex; flex-direction: column; gap: 6px; padding: 20px 2px 18px; }
.recon-empty b{ font-size: 13.5px; font-weight: 750; color: var(--text); }
.recon-empty span{ font-size: 11.5px; color: var(--text-2); line-height: 1.7; }
.recon-empty .btn{ align-self: flex-start; margin-top: 4px; }
.recon-empty.is-err b{ color: var(--red); }

/* 已结款的日期小签 */
.tag.paid-day{
  background: var(--green-soft); color: var(--green);
  border: 1px solid rgba(5,150,105,.22); font-size: 10.5px; font-weight: 700;
  padding: 2px 6px; margin-left: 2px;
}
/* V5.40：只有约定结款日、没有实际到账日 —— 灰色，别和真实结款日混为一谈 */
.tag.paid-day.is-due{
  background: var(--gray-soft); color: var(--text-3);
  border-color: var(--line-strong);
}

/* ---- 成片整理（V5.13） ---- */
.media-tools{
  margin-top: 10px; padding: 11px 12px; border: 1px dashed var(--line-strong);
  border-radius: 13px; background: var(--panel-2);
}
.mt-head{ display: flex; align-items: baseline; gap: 8px; margin-bottom: 9px; }
.mt-head b{ font-size: 12.5px; font-weight: 750; color: var(--text); }
.mt-head span{ font-size: 11px; color: var(--text-3); }
.mt-btns{ display: flex; flex-wrap: wrap; gap: 8px; }
.mt-btns .btn:disabled{ opacity: .45; }
.mt-tip{ margin: 9px 0 0; font-size: 11px; line-height: 1.75; color: var(--text-3); }
.mt-tip b{ color: var(--text-2); font-weight: 700; }

/* 细节格的紧凑版（放在最后，覆盖前面的桌面规则） */
@media (max-width: 768px){
}

/* ============================================================
   V5.14 口味画像卡片
   ============================================================ */
.taste-box{ margin-top: 12px; }
.taste-empty{
  margin: 0; padding: 11px 13px; border: 1px dashed var(--line-strong);
  border-radius: 12px; background: var(--panel-2);
  font-size: 12px; line-height: 1.75; color: var(--text-2);
}
.taste-empty b{ color: var(--text); font-weight: 700; }
.taste-row{
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 13px; border-top: 1px solid var(--line);
}
.taste-row:first-of-type{ border-top: 0; }
.taste-row em{
  flex: 0 0 54px; font-style: normal; font-size: 11.5px; font-weight: 650;
  color: var(--text-3); line-height: 1.9; padding-top: 3px;
}
.taste-chips{ display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.taste-chip{
  display: inline-block; max-width: 100%;
  padding: 3px 9px; border-radius: 999px;
  background: var(--brand-soft); border: 1px solid rgba(232,93,74,.22);
  color: var(--brand-strong);
  font-size: 11.5px; font-weight: 650; line-height: 1.6;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.taste-note{ margin: 9px 0 0; padding: 0 13px; font-size: 11px; color: var(--text-3); line-height: 1.7; }

/* ============================================================
   自绘下拉框（V5.15）
   原生 select 由系统画（下拉列表是系统蓝条 / iOS 滚轮），
   跟站内调子不搭，而且弹层高度不可控。这里自己画一个。
   ============================================================ */

/* 藏起原生 select —— 它只负责存值，画面交给旁边的按钮。
   不能用 display:none，部分浏览器会跳过 focus 与无障碍树。 */
select.ds-native{
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  opacity: 0; pointer-events: none;
}
/* 它是 absolute 的，得有个定位祖先，不然会跑到页面左上角去 */
.field{ position: relative; }

.ds-btn{
  display: flex; align-items: center; gap: 8px; width: 100%;
  min-height: 44px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); color: var(--text);
  font-family: inherit; font-size: 15px; text-align: left; cursor: pointer;
  transition: border-color .15s, box-shadow .15s;
}
.ds-btn:hover{ border-color: var(--line-strong); }
.ds-btn:focus-visible{ outline: 0; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.ds-btn-ico{
  flex: none; width: 22px; height: 22px; border-radius: 7px;
  display: grid; place-items: center; background: var(--panel-2);
  color: var(--text-2); font-size: 11px; font-weight: 750; font-style: normal;
}
.ds-btn-txt{
  flex: 1 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ds-chev{ flex: none; width: 16px; height: 16px; color: var(--text-3); }

/* 浮层：手机从底部升起，宽屏居中 */
.ds-layer{ position: fixed; inset: 0; z-index: 9995; display: none; }
.ds-layer.is-open{ display: block; }
.ds-bd{ position: absolute; inset: 0; background: rgba(20,18,16,.38); animation: mpFade .18s ease both; }
.ds-panel{
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 68vh; display: flex; flex-direction: column;
  background: var(--panel); border-radius: 20px 20px 0 0;
  padding: 6px 0 max(10px, env(safe-area-inset-bottom));
  box-shadow: 0 -8px 30px rgba(20,18,16,.16);
  animation: mpUp .24s cubic-bezier(.22,.9,.3,1) both;
}
@media (min-width: 640px){
  .ds-panel{
    left: 50%; right: auto; width: 380px; transform: translateX(-50%);
    bottom: auto; top: 50%; margin-top: -180px; border-radius: 20px;
  }
}
.ds-grab{ width: 38px; height: 4px; border-radius: 2px; background: var(--line-strong); margin: 8px auto 4px; }
.ds-title{ padding: 6px 20px 8px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.ds-list{ overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 8px 6px; }

.ds-item{
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 46px; padding: 8px 12px;
  border: 0; border-radius: 12px; background: transparent;
  font-family: inherit; color: var(--text); text-align: left; cursor: pointer;
}
.ds-item:active{ background: var(--panel-2); }
.ds-item.on{ background: var(--brand-soft); }
.ds-item.is-dis{ opacity: .4; cursor: default; }
.ds-ico{
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center; background: var(--panel-2);
  color: var(--text-2); font-size: 11.5px; font-weight: 750; font-style: normal;
}
.ds-item.on .ds-ico{ background: var(--panel); color: var(--brand-strong); }
.ds-txt{ flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ds-txt b{ font-size: 14.5px; font-weight: 650; }
.ds-item.on .ds-txt b{ color: var(--brand-strong); }
.ds-txt em{ font-style: normal; font-size: 11.5px; color: var(--text-3); line-height: 1.45; }
.ds-tick{ flex: none; width: 18px; height: 18px; color: var(--brand); opacity: 0; }
.ds-item.on .ds-tick{ opacity: 1; }

/* 表单里的 select 换掉之后，按钮要跟同排的输入框一样高 */
.field .ds-btn{ font-size: var(--fs-safe, 15px); }

/* ============================================================
   对话式改稿（V5.15）
   「换一版」是重新赌一次；这里是照我说的改 —— 像跟人聊天。
   ============================================================ */
.cp-refine{
  margin-top: 11px; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--panel-2);
}
.cr-head{ display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.cr-lab{ font-size: 12px; font-weight: 700; color: var(--text); }
.cr-tip{ font-size: 11px; color: var(--text-3); }
.cr-log{ max-height: 132px; overflow-y: auto; -webkit-overflow-scrolling: touch; margin-bottom: 8px; }
.cr-empty{ margin: 0; font-size: 11.5px; line-height: 1.65; color: var(--text-3); }
.cr-turn{ padding: 6px 0; border-top: 1px dashed var(--line); }
.cr-turn:first-child{ border-top: 0; }
.cr-me{
  display: inline-block; font-size: 10px; font-weight: 750; color: var(--brand-strong);
  background: var(--brand-soft); border-radius: 999px; padding: 1px 7px; margin-bottom: 3px;
}
.cr-ask{ margin: 0; font-size: 12px; line-height: 1.6; color: var(--text-2); }
.cr-row{ display: flex; gap: 7px; align-items: stretch; }
.cr-row input{
  flex: 1 1 auto; min-width: 0; height: 38px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--panel); color: var(--text);
  font-family: inherit; font-size: 14px; outline: 0;
}
.cr-row input:focus{ border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.cr-send{
  flex: none; height: 38px; padding: 0 13px; border-radius: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700;
}
.cr-send svg{ width: 14px; height: 14px; }


/* ============================================================
   V5.22：顶部下拉对账（概览不再吸顶）
   ------------------------------------------------------------
   ① 概览卡恢复成普通卡片：滚动就走，不再 sticky，也没有 is-pinned。
   ② 工作台最上面加一根「下拉绳」(.pull-rope)：一段渐隐的线 + 把手 +
      状态文案（几单未结 / 都结清了）。它是唯一的入口提示。
   ③ 从页面顶部往下拉时，面板 .pull-panel 从屏幕上方滑下来 ——
      跟微信首页下拉出小程序一个路数。--pull 是手指位移，面板
      translateY(-100% + --pull) 直接跟着走，拉多少露多少；
      松手过 56px 才真的打开，否则弹回去。
   ============================================================ */

/* ---- 下拉绳 ---- */
/* V7.22：绳子只留「线 + 把手」，下面那行状态字删了，高度跟着收到 34px */
.pull-rope{
  position: relative; display: block; width: 100%; height: 34px;
  margin: -2px 0 4px; padding: 0; border: 0; background: transparent;
  font-family: inherit; cursor: grab; -webkit-tap-highlight-color: transparent;
  /* V5.36：下拉带里用鼠标往下拖是手势，不是选字 —— 不然绳子上的文案会被刷蓝 */
  user-select: none; -webkit-user-select: none;
}
.pull-rope:active{ cursor: grabbing; }
.pr-cord{
  position: absolute; top: 0; left: 50%; width: 2px; height: 11px;
  margin-left: -1px; border-radius: 2px;
  background: linear-gradient(180deg, rgba(217,119,6,.1), rgba(217,119,6,.62));
  transform-origin: top center;
  transform: scaleY(calc(1 + var(--pull-r, 0) * 1.6));
  transition: transform .2s ease;
}
/* V7.44：把手从「24×5 的小胶囊」换成一颗 22px 的圆盘，里面装现在的天色 ——
   白天橙底太阳、入夜靛底月牙。它本来就是「往下拉一下」的把手，
   挂个天色比一根黄条更能说明「这是可以拉的」。
   top 11 + 22 = 33，仍在 .pull-rope 的 34px 高度里，不会顶到下面的卡。 */
.pr-bar{
  position: absolute; top: 11px; left: 50%; width: 22px; height: 22px;
  margin-left: -11px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, #F5B45E, #E08A2E);
  color: #FFF8EC;
  box-shadow: 0 2px 7px -2px rgba(190,110,40,.55);
  transform: translateY(min(calc(var(--pull-r, 0) * 20px), 20px));
  transition: transform .2s ease, background .3s ease;
}
.pr-bar svg{ width: 14px; height: 14px; }
.pr-bar.is-moon{
  background: linear-gradient(145deg, #565B85, #2A2D49);
  color: #FFE7A8;
  box-shadow: 0 2px 8px -2px rgba(24,26,48,.55);
}
body.is-pulling .pr-cord,
body.is-pulling .pr-bar{ transition: none; }
/* 状态文案已删除（只留绳子本身的颜色） */
.pr-txt{ display: none; }
/* 对账状态照样盖过天色：绿=都结清了、红=读不出来。形状仍是圆盘，图标跟着变白。 */
.pull-rope.is-clear .pr-bar{ background: linear-gradient(145deg, #7FE9C0, var(--green)); color: #F2FFFA; }
.pull-rope.is-err .pr-bar{ background: linear-gradient(145deg, #FCA5A5, var(--red)); color: #FFF6F6; }
.pull-rope:focus-visible{ outline: none; }
.pull-rope:focus-visible .pr-bar{ box-shadow: 0 0 0 3px var(--brand-soft); }
[data-theme="dark"] .pr-cord{ background: linear-gradient(180deg, rgba(240,180,90,0), rgba(240,180,90,.5)); }
[data-theme="dark"] .pr-bar{ box-shadow: 0 2px 8px -2px rgba(0,0,0,.7); }
[data-theme="dark"] .pr-bar.is-moon{ background: linear-gradient(145deg, #3E4266, #212338); }

/* ---- 面板：遮罩 + 从顶部滑下的那张纸 ---- */
.pull-layer{ position: fixed; inset: 0; z-index: 90; pointer-events: none; }
.pull-layer.is-open{ pointer-events: auto; }
.pull-scrim{
  position: absolute; inset: 0; background: rgba(30,18,12,.46);
  opacity: 0; transition: opacity .26s ease;
}
.pull-layer.is-open .pull-scrim{ opacity: 1; }
/* 拉到一半时遮罩也跟着淡入，不然面板浮在亮底上像贴纸 */
body.is-pulling .pull-scrim{ opacity: min(calc(var(--pull-r, 0) * .62), .62); transition: none; }

.pull-panel{
  position: absolute; left: 0; right: 0; top: 0; margin: 0 auto;
  width: 100%; max-width: 720px;
  max-height: min(78vh, 660px);
  display: flex; flex-direction: column;
  padding-top: env(safe-area-inset-top);
  background: var(--panel);
  border-radius: 0 0 22px 22px;
  box-shadow: 0 30px 60px -26px rgba(70,35,15,.58);
  /* 收起时必须把 top 那段偏移也一起减掉：translateY(-100%) 只按自身高度上移，
     宽屏下 top:76px 会正好把面板底边留在屏幕里 76px（"更新于 …"那一条尾巴）。 */
  transform: translateY(calc(-100% - var(--pull-top, 0px)));
  transition: transform .3s cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}
/* 下拉过程中：面板跟着手指走，不加过渡才跟手 */
body.is-pulling .pull-panel{
  transform: translateY(calc(-100% - var(--pull-top, 0px) + var(--pull, 0px)));
  transition: none;
}
.pull-panel.is-open{ transform: translateY(0); }
/* 上推收起时跟手：这一下不能有过渡，否则像在拽橡皮筋 */
.pull-panel.is-dragging{ transition: none; }
/* 下拉对账只属于工作台：别的页面整层都不出现 */
body:not(.is-dash) .pull-layer{ display: none !important; }
.pull-panel.is-err{ box-shadow: 0 30px 60px -26px rgba(70,35,15,.58), inset 0 3px 0 rgba(220,38,38,.5); }
.pull-panel.is-clear{ box-shadow: 0 30px 60px -26px rgba(70,35,15,.58), inset 0 3px 0 rgba(5,150,105,.5); }

.pull-head{
  position: relative; display: flex; align-items: flex-start; gap: 10px;
  padding: 20px 16px 10px; cursor: grab; touch-action: none;
  user-select: none; -webkit-user-select: none;
}
.pull-head:active{ cursor: grabbing; }
.pull-grip{
  position: absolute; top: 8px; left: 50%; width: 36px; height: 4px;
  margin-left: -18px; border-radius: 999px; background: rgba(120,90,70,.22);
}
[data-theme="dark"] .pull-grip{ background: rgba(255,255,255,.18); }
.ph-main{ flex: 1; min-width: 0; }
.ph-main h2{ font-size: 17px; font-weight: 800; color: var(--text); letter-spacing: -.2px; }
.ph-main p{ margin-top: 2px; font-size: 11.5px; color: var(--text-2); line-height: 1.5; }
.pull-x{
  flex: none; width: 32px; height: 32px; margin-top: -2px;
  border: 0; border-radius: 10px; background: var(--bg-soft);
  color: var(--text-2); display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .15s, color .15s;
}
.pull-x svg{ width: 15px; height: 15px; }
.pull-x:hover{ background: var(--line); color: var(--text); }

.pull-body{
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 0 16px 4px; -webkit-overflow-scrolling: touch;
}

.pull-foot{
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 16px calc(11px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 10.5px; color: var(--text-3);
}
.pull-foot span:last-child{ text-align: right; }

/* 面板开着时锁住背景；「记一单」也退场（只动透明度，不碰 transform） */
body.pull-open{ overflow: hidden; }
body.pull-open #fabBtn{
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease;
}
#fabBtn{ transition: opacity .2s ease; }

/* 宽屏下手机那套「贴顶整幅」会显得像切了一半：改成浮在中间的纸。
   --pull-top 必须和 top 同步：收起的位移要减掉这一段，否则面板底边会留在屏内。 */
@media (min-width: 720px){
  .pull-panel{
    /* 留出顶栏，别把「工作台 / 新增接单」整条盖掉 */
    top: 76px; --pull-top: 76px; border-radius: 20px;
    max-height: min(72vh, 600px);
    box-shadow: 0 34px 70px -30px rgba(60,30,15,.6), 0 2px 6px -4px rgba(60,30,15,.3);
  }
}

@media (prefers-reduced-motion: reduce){
  .pull-panel, .pull-scrim, .pr-cord, .pr-bar{ transition: none !important; }
}

/* ============================================================
   V5.24：把「工作台跟着下拉一起动」按死
   ------------------------------------------------------------
   三件事，缺一不可：
   ① 浏览器自己的下拉刷新 / 边缘回弹必须关掉（overscroll-behavior）。
      Chrome 安卓的下拉刷新、iOS 的回弹都会把整屏内容平移，用户看到的就是
      「整个工作台被手指一起下拉」，跟我们的面板抢同一个手势。
      只加在滚动容器上：手机是 html/body，#content 在桌面端才是滚动容器。
   ② 拖动过程中不许选中文字：鼠标从正文往下拖会顺带把整页文字选成蓝底，
      视觉上像整页被拽起来。
   ③ 拖动时给抓取手势，明确「现在归我管」。
   ============================================================ */
html, body{ overscroll-behavior-y: contain; }
.content{ overscroll-behavior-y: contain; }
body.is-pulling{
  -webkit-user-select: none; user-select: none;
  cursor: grabbing;
}
body.is-pulling .content{ cursor: grabbing; }
body.is-pulling a,
body.is-pulling button{ cursor: grabbing; }

/* 对账面板是模态的：背景挂 inert 时连鼠标都别想碰到。
   （支持 inert 的浏览器本来就不可点，这条是给老浏览器兜底。） */
[inert]{ pointer-events: none; }

/* ============================================================
   V5.27：接单记录表头吸顶 · 「已隐藏的单子」折叠条排版
   ------------------------------------------------------------
   ① 搜索 / 月份 / 导出 / 状态分组原来跟着列表一起滚走，翻到第二十单时
      已经不知道自己在哪个筛选里，想换条件得一路滑回顶部。现在整段 sticky
      在顶上，单子从它下面过。
   ② 「已隐藏的单子」那条：.ai-rules-head 是 flex-direction:column，
      而 .fold-head 只写了 display / align-items，没写方向 —— 方向被基类
      带着走成竖排，于是标题、副标题、箭头全居中叠成一坨，像块空占位。
   ============================================================ */
.orders-head{
  position: sticky;
  top: 0;                    /* 桌面：#content 自己滚，贴住内容区顶边 */
  z-index: 24;               /* 低于顶栏(30)，高于卡片；对账面板(90)仍在最上 */
  /* 上留白放在表头自己身上：sticky 对齐的是**内容盒**边缘，
     .content 的 padding-top 会让表头停在内边距下面，那 12px 里卡片会从缝里过 -->
     所以接单记录这一页把 content 的上内边距清零，留白由这里补。 */
  padding: 12px 0;
  background: var(--bg);
}
/* 内容区左右有内边距，卡片会从那两条缝里露出来 —— 补一条只有横向的底色。
   用伪元素而不是 box-shadow + clip-path：clip-path 会把下面的阴影一起剪掉。 */
.orders-head::before{
  content: ''; position: absolute; z-index: -1;
  top: 0; bottom: 0; left: -40px; right: -40px;
  background: var(--bg);
}
/* 真吸住了才给一道淡阴影；静止时不多一根线 */
.orders-head::after{
  content: ''; position: absolute; left: -40px; right: -40px; top: 100%;
  height: 14px; pointer-events: none; opacity: 0;
  background: linear-gradient(rgba(27,26,24,.13), rgba(27,26,24,0));
  transition: opacity .18s ease;
}
[data-theme="dark"] .orders-head::after{
  background: linear-gradient(rgba(0,0,0,.42), rgba(0,0,0,0));
}
.orders-head.is-stuck::after{ opacity: 1; }
.orders-head .filters{ margin-bottom: 10px; }
.orders-head .seg-stats{ margin-bottom: 0; }

@media (max-width: 860px){
  /* 手机上整页在滚，表头停在顶栏下沿；顶栏高度由 JS 量进 --tb-h */
  .orders-head{ top: var(--tb-h, 52px); }
}
/* 上内边距交给表头（见上面注释）：不然吸顶时上面会漏出一条，卡片从缝里钻过去 */
body[data-pg="orders"] .content{ padding-top: 0; }
@media (max-width: 768px){
  .orders-head{ padding-top: 10px; }
}

/* 折叠头：基类 .ai-rules-head 是竖排，.fold-head 漏了方向 */
.ai-rules.is-foldable .fold-head{ flex-direction: row; }
/* 「已隐藏」跟着列表走：和上一张卡片留口气，别像贴上去的 */
.hid-block{ margin-top: 10px; }
.hid-block .fold-head{ padding: 10px 13px; }

/* ============================================================
   V5.28：卡片标题与正文的左边缘 · 顶栏右边缘
   ------------------------------------------------------------
   ① 卡片的头和身不是一套内边距：
        普通卡 .card-head        → 左右 14（theme 早期）
        可折叠 .card-head.cfd    → 左右 18（为了拖动把手 -4px 抵消）
        卡身 .card-body          → 左右 16（后来统一成 16 的那一版）
      结果标题的装饰小图标比正文左/右各差 2px，同一页里两种卡片之间差 4px，
      看着就是「每张卡的标题都差一点」。这里把头也收到 16，和身子对齐。
      把手 26px 带 -4px 外边距，仍落在 12px 起、图标在 17px —— 与正文同一条线。
   ② 桌面端 #content 自己滚，右侧滚动条在内容盒里占 9px；顶栏不在滚动容器里，
      于是「新增接单」比卡片多探出一条。--sbw 由 setWidthVars() 量出来，
      顶栏补上同样的右内边距（手机上内容区不滚，--sbw=0，仍是 12px）。
   ============================================================ */
.card-head,
.card-head.cfd{ padding-left: 16px; padding-right: 16px; }
/* 把手默认带 button 的 1px 6px 内边距，图标被推到 19px；去掉后 14px 的图标
   在 24px 按钮里居中，正好落在正文那条 17px 的线上。 */
.card-head.cfd > .card-grip{ padding: 0; }

@media (min-width: 861px){
  /* 常驻槽位：短页面也不让滚动条忽有忽无，否则换页时顶栏按钮会左右跳一下 */
  .content{ scrollbar-gutter: stable; }
  .topbar{ padding-right: calc(14px + var(--sbw, 0px)); }
}

/* ============================================================
   V5.30：品类自动分配的那一行小字
   ------------------------------------------------------------
   位置在品类下拉正下方，一行 12px：判断中 / AI 判断结果 + 撤销 /
   低置信的「可能是 XX」+ 就填这个 / 失败的「先手动选」+ 重试。
   注意 [hidden] 必须显式写死 display:none —— 这一条 lesson 在
   V5.23（找回密码第二步）和 V5.27（已隐藏的单子）上各踩过一次：
   display:flex 会把 [hidden] 的默认样式顶掉。
   ============================================================ */
.cat-ai{
  display: flex; align-items: center; gap: 10px;
  margin-top: 6px; min-height: 18px;
  font-size: 12px; line-height: 1.45; color: var(--text-3);
}
.cat-ai[hidden]{ display: none !important; }
.cat-ai > span{ flex: 1 1 auto; min-width: 0; }
.cat-ai-b{
  flex: 0 0 auto; border: 0; background: none; padding: 0;
  font: inherit; font-weight: 500; color: var(--brand);
  cursor: pointer; text-decoration: underline; text-underline-offset: 2px;
}
.cat-ai-b:hover{ color: var(--brand-strong); }
.cat-ai.is-ok > span{ color: var(--green); }
.cat-ai.is-suggest > span{ color: var(--text-2); }
.cat-ai.is-warn > span,
.cat-ai.is-run > span{ color: var(--text-3); }

/* ============================================================
   V6.1：AI 写手面板
   ------------------------------------------------------------
   ① 尺寸收小，不再铺满整屏（要更大的话点右上角「缩小」拖动的小窗
      反而更顺手；这里只留一个不压迫的常规尺寸）
   ② 正文按 DeepSeek 的观感走：15px / 行高 1.75 / 常规字重，
      输入框与气泡同一套排版，不再又粗又挤
   ③ 新增小窗态（.is-mini）：同一份 DOM 收成右下角可拖动的小卡片
   ============================================================ */
.ai-panel{
  display: flex; flex-direction: column;
  width: min(430px, calc(100vw - 56px));
  height: min(560px, 76vh);
  padding: 0; overflow: hidden;
}
.ai-head{ flex: 0 0 auto; align-items: center; padding: 14px 14px 12px 16px; }
.ai-head > div{ min-width: 0; flex: 1; }
.ai-head h2{ font-size: 15.5px; font-weight: 650; letter-spacing: .2px; }
.ai-head p{
  margin-top: 2px; font-size: 11.5px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ai-head .icon-btn{ width: 32px; height: 32px; }

/* ---- 消息区 ---- */
.ai-msgs{
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 16px 16px 8px; display: flex; flex-direction: column; gap: 14px;
  background: var(--bg);
}
.aim{ max-width: 88%; display: flex; flex-direction: column; gap: 4px; }
.aim.is-me{ align-self: flex-end; align-items: flex-end; }
.aim.is-ai{ align-self: flex-start; align-items: flex-start; }
.aim-who{
  font-size: 10.5px; font-weight: 600; color: var(--text-3);
  letter-spacing: .04em;
}
.aim-b{
  padding: 11px 14px; border-radius: 14px;
  /* DeepSeek 回复的字形：15px、行高 1.75、常规字重 */
  font-size: 14.5px; line-height: 1.78; font-weight: 400; color: var(--text);
  background: var(--panel); border: 1px solid var(--line);
  word-break: break-word; white-space: normal;
}
.aim.is-me .aim-b{
  background: var(--brand-soft, var(--blue-soft));
  border-color: transparent; color: var(--text);
  border-bottom-right-radius: 5px;
}
.aim.is-ai .aim-b{
  /* AI 的回复不做卡片，直接铺在背景上 —— DeepSeek 就是这个观感 */
  background: transparent; border-color: transparent;
  border-radius: 0; padding: 0 2px;
}
.aim.is-err .aim-b{ background: var(--red-soft, #fdeceb); border-color: transparent; color: var(--red, #c0392b); }
.aim-acts{ display: flex; gap: 12px; padding: 0 3px; }
.aim-acts button{
  border: 0; background: none; padding: 0; cursor: pointer;
  font-family: inherit; font-size: 11.5px; font-weight: 500; color: var(--text-3);
}
.aim-acts button:hover{ color: var(--brand-strong, var(--blue)); }

/* ---- 空态 ---- */
.aim-empty{
  margin: 0; padding: 26px 4px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.aim-empty b{ font-size: 14.5px; font-weight: 600; color: var(--text); }
.aim-empty p{ font-size: 13px; line-height: 1.8; color: var(--text-3); }
.aim-setup{
  align-self: flex-start; margin-top: 2px;
  border: 1px solid var(--line); background: var(--panel); border-radius: 10px;
  padding: 8px 13px; font-family: inherit; font-size: 12.5px; color: var(--brand);
  cursor: pointer;
}

/* ---- 输入区 ---- */
.ai-compose{
  flex: 0 0 auto; padding: 10px 12px 12px;
  border-top: 1px solid var(--line); background: var(--panel);
}
.ai-attach{
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 8px; padding: 7px 10px; border-radius: 10px;
  background: var(--blue-soft, var(--panel-2));
  font-size: 11.5px; color: var(--text-2);
}
.ai-attach button{
  margin-left: auto; border: 0; background: none; padding: 0;
  font-family: inherit; font-size: 11.5px; color: var(--text-3);
  cursor: pointer; text-decoration: underline;
}
#aiInput{
  display: block; width: 100%; min-height: 46px; max-height: 180px;
  padding: 12px 14px; border-radius: 12px; resize: none;
  border: 1px solid var(--line); background: var(--panel-2);
  /* 跟回复同一套：15px / 1.75 / 400，不再加粗也不挤 */
  font-family: inherit; font-size: 15px; line-height: 1.75; font-weight: 400; color: var(--text);
  outline: none;
}
#aiInput::placeholder{ color: var(--text-3); font-weight: 400; }
#aiInput:focus{ border-color: var(--brand, var(--blue)); background: var(--panel); }
#aiInput:disabled{ opacity: .6; }
.ai-bar{ display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.ai-bar .grow{ flex: 1; }

/* ---- 小窗态 ----
   .modal 平时是 fixed 全屏 + 遮罩；小窗时把遮罩去掉、事件穿透，
   只让面板本身可点，于是能一边看订单一边聊。 */
.modal.is-mini{ background: transparent; pointer-events: none; z-index: 9000 !important; }
.modal.is-mini .modal-backdrop{ display: none; }
.modal.is-mini .ai-panel{
  position: fixed; top: auto; left: auto; right: 14px; bottom: 14px;
  transform: none;
  width: min(340px, calc(100vw - 24px));
  height: min(440px, 64dvh);
  pointer-events: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 44px rgba(24, 22, 20, .26);
  animation: none;
}
.modal.is-mini .ai-head{ cursor: grab; touch-action: none; padding: 11px 10px 10px 14px; }
.modal.is-mini .ai-head:active{ cursor: grabbing; }
.modal.is-mini .ai-head h2{ font-size: 14px; }
.modal.is-mini .ai-msgs{ padding: 12px 12px 4px; gap: 10px; }
.modal.is-mini .aim{ max-width: 92%; }
.modal.is-mini .aim-b{ font-size: 13.5px; line-height: 1.7; padding: 9px 12px; }
.modal.is-mini .ai-compose{ padding: 8px 10px 10px; }
.modal.is-mini #aiInput{ font-size: 14px; min-height: 40px; padding: 9px 12px; }
.modal.is-mini .ai-bar{ margin-top: 7px; }
.modal.is-mini .aim-empty{ display: flex; margin: auto 0; padding: 0 4px; gap: 7px; }
.modal.is-mini .aim-empty b{ font-size: 13.5px; }
.modal.is-mini .aim-empty p{ font-size: 12.5px; line-height: 1.7; }
.modal.is-mini .aim-empty p:nth-of-type(2){ display: none; }

@media (max-width: 640px){
  .ai-panel{ width: calc(100vw - 28px); height: min(68dvh, 560px); border-radius: 20px; }
  .aim{ max-width: 92%; }
  .modal.is-mini .ai-panel{ width: min(340px, calc(100vw - 24px)); height: min(400px, 56dvh); border-radius: 16px; }
}

/* ============================================================
   V6.7：登录过场换成「手绘糖被一笔画出来」
   ------------------------------------------------------------
   素材与版式取自用户给的 lollipop-sketch：纸底 + 手绘糖 + 星星。
   比之前那张写实糖图更贴这套界面的纸质调子。

   结构：
     #drIntro            满屏纸底（底色 + SVG 噪点 + 上方柔白）
       .intro-stage      糖 + 星星的定位容器，淡出时整块上移虚化
         .intro-burst    收笔瞬间的暖光
         .intro-lolli    SVG（糖）/ 高光
         .intro-spark×4  四颗手绘星星
       .intro-copy       标题 + 手绘下划线 + 副标题

   糖面怎么「画」出来：靠 intro.js 里那条 SVG mask 螺旋揭开，
   这里只负责收笔后的 pop / 暖光 / 高光扫过 / 文案浮入。
   ============================================================ */
#drIntro{
  position: fixed; inset: 0; z-index: 10050;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px 18px 34px;
  /* 纸底：底色 + 噪点（feTurbulence 现生成，不用额外拉图）+ 上方柔白 */
  background-color: #f8f4ed;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='.055'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(60% 46% at 50% 40%,
      rgba(255, 255, 255, .55) 0%, rgba(255, 255, 255, 0) 62%);
  background-size: 160px 160px, auto;
  opacity: 1;
  transition: opacity .36s ease;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
#drIntro.is-out{ opacity: 0; }
/* 淡出：整块略放大 + 上移 + 虚化，像被收进工作台 */
#drIntro.is-out .intro-stage{
  transform: scale(1.045) translateY(-8px);
  filter: blur(6px);
  opacity: 0;
}

#drIntro .intro-stage{
  position: relative;
  /* 手机上由 86vw 决定，桌面/平板上限抬到 440px，别在宽屏里显得太小 */
  width: min(86vw, 52vh, 440px);
  transition: transform .44s cubic-bezier(.3,.7,.4,1),
              opacity .32s ease, filter .4s ease;
  will-change: transform, opacity;
}
#drIntro .intro-lolli{ position: relative; width: 100%; }
#drIntro .intro-lolli svg{ display: block; width: 100%; height: auto; overflow: visible; }
#drIntro .intro-final{ opacity: 0; transition: opacity .22s ease; }
#drIntro .intro-final.is-shown{ opacity: 1; }
#drIntro .intro-lolli.is-pop{ animation: dr-lolli-pop .26s cubic-bezier(.34,1.4,.64,1); }
@keyframes dr-lolli-pop{
  0%   { transform: scale(1); }
  45%  { transform: scale(1.032); }
  100% { transform: scale(1); }
}

/* 收笔瞬间的暖光 */
#drIntro .intro-burst{
  position: absolute; left: 50%; top: 46.1%;
  width: 128%; aspect-ratio: 1;
  transform: translate(-50%, -50%) scale(.55);
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 254, 249, .9) 0%,
    rgba(252, 250, 244, .35) 46%,
    rgba(252, 250, 244, 0) 70%);
  opacity: 0;
  filter: blur(4px);
  pointer-events: none;
}
#drIntro .intro-burst.is-on{ animation: dr-burst .28s ease-out both; }
@keyframes dr-burst{
  0%   { opacity: 0;  transform: translate(-50%, -50%) scale(.55); }
  30%  { opacity: .8; }
  100% { opacity: 0;  transform: translate(-50%, -50%) scale(1.14); }
}

/* 糖面上的高光扫过 */
#drIntro .intro-shine{
  position: absolute; left: 49%; top: 46.1%;
  width: 65.84%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  overflow: hidden;
  pointer-events: none;
}
#drIntro .intro-shine::before{
  content: "";
  position: absolute; inset: -25%;
  background: linear-gradient(115deg, transparent 41%, rgba(255,255,255,.22) 50%, transparent 59%);
  transform: translateX(-72%);
  opacity: 0;
}
#drIntro.is-done .intro-shine::before{
  animation: dr-sweep .34s cubic-bezier(.3,.5,.4,1) .02s both;
}
@keyframes dr-sweep{
  0%   { transform: translateX(-72%); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateX(72%); opacity: 0; }
}

/* 四颗手绘星星（位置按参考稿的百分比，跟着舞台缩放） */
#drIntro .intro-spark{
  position: absolute;
  width: 4%; height: auto; aspect-ratio: 1;
  color: #3a352e;
  opacity: 0;
  pointer-events: none;
}
#drIntro .s1{ left: 41.5%; top: 6.4%; width: 3.95%; }
#drIntro .s2{ left: 74%;   top: 7.8%; width: 5%;    color: #2f2b26; }
#drIntro .s3{ right: 7.8%; top: 51.5%; width: 3.3%; color: #4a453e; }
#drIntro .s4{ left: 9.6%;  top: 69.1%; width: 3.05%; color: #554f47; }

#drIntro.is-done .intro-spark{
  animation: dr-spark-pop .24s cubic-bezier(.34,1.56,.64,1) forwards,
             dr-spark-twinkle 3.4s ease-in-out .4s infinite;
}
#drIntro.is-done .s2{ animation-delay: .03s, .43s; }
#drIntro.is-done .s3{ animation-delay: .06s, .46s; }
#drIntro.is-done .s4{ animation-delay: .09s, .49s; }
@keyframes dr-spark-pop{
  from { opacity: 0;   transform: scale(.3) rotate(-24deg); }
  to   { opacity: .95; transform: scale(1) rotate(0deg); }
}
@keyframes dr-spark-twinkle{
  0%, 100% { opacity: .95; transform: scale(1); }
  50%      { opacity: .5;  transform: scale(.86); }
}

/* 文案 */
#drIntro .intro-copy{
  margin-top: 2px;
  text-align: center;
  font-family: "PingFang SC", "HarmonyOS Sans SC", "MiSans",
               "Source Han Sans SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
#drIntro .intro-copy b{
  display: block;
  padding-left: 3px;
  font-size: 20px; font-weight: 600; letter-spacing: 3px;
  color: #2e2a24;
}
#drIntro .intro-copy .scribble{
  display: block;
  width: 104px; height: 10px;
  margin: 7px auto 0;
  color: rgba(46, 42, 36, .72);
}
#drIntro .intro-copy .scribble path{
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset .34s ease .12s;
}
#drIntro.is-done .intro-copy .scribble path{ stroke-dashoffset: 0; }
#drIntro .intro-copy span{
  display: block;
  margin-top: 9px;
  padding-left: 2px;
  font-size: 12.5px; font-weight: 400; letter-spacing: 2px;
  color: #857b6e;
}
#drIntro .intro-copy b,
#drIntro .intro-copy span{
  opacity: 0;
  transform: translateY(12px);
  filter: blur(5px);
  transition: opacity .3s ease,
              transform .32s cubic-bezier(.22,.61,.36,1),
              filter .3s ease;
}
#drIntro.is-done .intro-copy b{
  opacity: 1; transform: translateY(0); filter: blur(0); transition-delay: .03s;
}
#drIntro.is-done .intro-copy span{
  opacity: 1; transform: translateY(0); filter: blur(0); transition-delay: .09s;
}

/* 系统开了「减弱动效」：全都别动，直接给成品 */
#drIntro.is-static .intro-copy b,
#drIntro.is-static .intro-copy span{
  opacity: 1; transform: none; filter: none;
}
#drIntro.is-static .intro-spark{ opacity: .95; animation: none; }
#drIntro.is-static .intro-copy .scribble path{ stroke-dashoffset: 0; }
#drIntro.is-static .intro-shine::before{ display: none; }

/* 矮屏（横屏手机 / 小窗）把糖收小一点，别把文案挤出去 */
@media (max-height: 620px){
  #drIntro .intro-stage{ width: min(70vw, 46vh, 300px); }
}

/* ============================================================
   V6.8：收藏打卡的完成态
   ------------------------------------------------------------
   原来「待打卡」和「已全部完成」长得一模一样 —— .is-ok / .is-todo
   在样式表里根本没有对应规则，只有文案变了。打完卡的人看不出自己
   已经做完了，还得读那行小字确认。
   现在完成态给三样东西：绿底渐变（一眼看出成了）、右上角一枚
   「已完成」印章（手写体的感觉，和整体纸感对得上）、进场上浮一下。
   ============================================================ */
.visit-big.collect-big{ position: relative; overflow: hidden; }
.visit-big.collect-big.is-ok{
  background:
    radial-gradient(120% 120% at 8% 0%, rgba(255,255,255,.9) 0%, rgba(255,255,255,0) 46%),
    linear-gradient(135deg,
      color-mix(in srgb, var(--green) 17%, var(--panel)) 0%,
      color-mix(in srgb, var(--green) 9%, #ffffff) 52%,
      var(--green-soft, #e8f7ee) 100%);
  border-color: color-mix(in srgb, var(--green) 46%, transparent);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--green) 9%, transparent),
    0 1px 0 rgba(255,255,255,.75) inset,
    0 12px 22px -16px color-mix(in srgb, var(--green) 85%, transparent);
  animation: cb-ok-in .46s cubic-bezier(.34,1.32,.5,1) both;
}
/* 完成态那颗印章式对勾：实心绿底 + 白勾，比描边圈更「像盖上去的」 */
.visit-big.collect-big.is-ok svg.vb-badge{
  filter: drop-shadow(0 3px 6px color-mix(in srgb, var(--green) 45%, transparent));
}
.visit-big.collect-big.is-ok::after{
  /* 打完卡扫过一道光，像盖完章吹一下 */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.55) 50%, transparent 62%);
  transform: translateX(-110%);
  animation: cb-sheen .9s .12s ease-out both;
  pointer-events: none;
}
.visit-big.collect-big.is-ok svg{ color: var(--green, #1a7f45); }
.visit-big.collect-big.is-ok b{ color: var(--green, #1a7f45); }
.visit-big.collect-big.is-ok b{ letter-spacing: .01em; }
.visit-big.collect-big.is-ok span{ color: color-mix(in srgb, var(--green) 62%, var(--text-3)); }
@keyframes cb-ok-in{
  0%   { transform: translateY(3px) scale(.985); opacity: .6; }
  100% { transform: none; opacity: 1; }
}
@keyframes cb-sheen{
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(110%); }
}
.visit-big .vb-stamp{
  position: absolute; right: 9px; top: 8px;
  font-style: normal; font-size: 9.5px; font-weight: 800; letter-spacing: .1em;
  color: var(--green, #1a7f45);
  border: 1.5px solid currentColor; border-radius: 5px;
  padding: 1.5px 4px 1px 4px;
  transform: rotate(-7deg);
  opacity: .9;
  background: rgba(255,255,255,.72);
  pointer-events: none;
}

/* 打卡面板：全部完成时的横幅 */
.collect-done{
  position: relative;
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 13px; padding: 12px 13px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--green-soft, #e8f7ee), color-mix(in srgb, var(--green) 9%, #fff));
  border: 1px solid color-mix(in srgb, var(--green) 26%, transparent);
  overflow: hidden;
  animation: cb-ok-in .42s cubic-bezier(.34,1.32,.5,1) both;
}
.collect-done .cd-check{
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--green, #1a7f45); color: #fff;
  box-shadow: 0 4px 10px -6px color-mix(in srgb, var(--green) 80%, transparent);
}
.collect-done .cd-check svg{ width: 14px; height: 14px; }
.collect-done .cd-main{ display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.collect-done .cd-main b{ font-size: 13.5px; font-weight: 750; color: var(--green, #1a7f45); letter-spacing: .02em; }
.collect-done .cd-main span{ font-size: 11.5px; color: color-mix(in srgb, var(--green) 52%, var(--text-3)); }
.collect-done .cd-star{
  position: absolute; font-style: normal; font-size: 11px;
  color: color-mix(in srgb, var(--green) 55%, transparent);
  animation: cd-twinkle 2.6s ease-in-out infinite;
}
.collect-done .cd-star{ right: 14px; top: 12px; }
.collect-done .cd-star.s2{ right: 30px; top: 26px; font-size: 8px; animation-delay: .5s; }
@keyframes cd-twinkle{
  0%, 100% { opacity: .35; transform: scale(.9) rotate(0deg); }
  50%      { opacity: .9;  transform: scale(1.15) rotate(12deg); }
}

/* 打卡面板：每个平台一行，左边一个勾选框 */
.collect-row .collect-plat{
  display: flex; align-items: center; gap: 10px;
  width: 100%; height: 52px; padding: 0 12px;
  border-radius: 12px; font-size: 13.5px;
}
.collect-plat .cp-box{
  width: 22px; height: 22px; flex: 0 0 22px; border-radius: 7px;
  border: 1.6px solid var(--line-strong);
  display: grid; place-items: center;
  color: transparent; transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.collect-plat .cp-box svg{ width: 13px; height: 13px; }
.collect-plat b{ font-weight: 620; }
.collect-plat .cp-state{ margin-left: auto; font-size: 11.5px; color: var(--text-3); }
.collect-plat.on .cp-box{
  background: var(--green, #1a7f45); border-color: var(--green, #1a7f45); color: #fff;
}
.collect-plat.on b{ color: var(--green, #1a7f45); }
.collect-plat.on .cp-state{ color: color-mix(in srgb, var(--green) 58%, var(--text-3)); }

/* V6.8：档案页昵称下方那行数据 ID */
.pf-head .pf-uid{
  display: block;
  margin: 2px 0 0;
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--text-3);
  opacity: .72;
}

/* ============================================================
   V6.8：排期日历右上角的「导出全部日程」
   ------------------------------------------------------------
   工作台那张「快捷操作」卡撤了，导出入口挪到语义更对的地方 ——
   日历页。图标是「日历 + 向下箭头」：日历框是这里的主角，
   箭头说明方向（往外导成 .ics），线宽跟全站图标一致（1.85）。
   ============================================================ */
.cal-head-right{
  display: flex; align-items: center; gap: 10px; margin-left: auto;
}
.cal-ics{
  width: 34px; height: 34px; flex: 0 0 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--text-2);
  display: grid; place-items: center;
  transition: color .16s ease, border-color .16s ease, background .16s ease, transform .12s ease;
}
.cal-ics svg{ width: 17px; height: 17px; }
.cal-ics:hover{
  color: var(--brand);
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  background: color-mix(in srgb, var(--brand) 8%, var(--panel));
}
.cal-ics:active{ transform: translateY(1px); }
@media (max-width: 640px){
  .cal-head-right{ gap: 8px; }
  .cal-head-right .sub{ font-size: 11.5px; }
}

/* ============================================================
   V6.11：这轮的五处界面调整
   ============================================================ */

/* --- 1. 数据管理：只剩一颗「清理缓存」，其余收进折叠线 --- */
.data-more-toggle{
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 11px 4px 11px 2px;
  border: 0; border-top: 1px dashed var(--line);
  background: transparent; color: var(--text-3);
  font: 600 12px/1 inherit; font-family: inherit; letter-spacing: .02em;
  cursor: pointer; text-align: left;
}
.data-more-toggle:hover{ color: var(--brand-strong); }
.data-more-toggle .cfd-chev{ width: 15px; height: 15px; transition: transform .2s ease; }
.data-more-toggle[aria-expanded="true"] .cfd-chev{ transform: rotate(180deg); }
.data-more{
  display: flex; flex-direction: column; gap: 8px;
  padding-top: 2px;
  animation: dm-in .18s ease both;
}
.data-more[hidden]{ display: none !important; }
@keyframes dm-in{ from{ opacity: 0; transform: translateY(-3px); } }

/* --- 2. 金额三栏联动：输入框加一点「跟着走」的提示感 --- */
.money-row.is-follow input{ background: color-mix(in srgb, var(--brand) 4%, var(--panel-2)); }

/* --- 3. 卡片上的状态标签：看起来能点 --- */
.tag.tag-pick{
  border: 0; font-family: inherit; cursor: pointer;
  -webkit-appearance: none; appearance: none;
  padding: 0 7px; line-height: 1.7;
  transition: transform .12s ease, filter .16s ease;
}
.tag.tag-pick:hover{ filter: brightness(.97); }
.tag.tag-pick:active{ transform: scale(.95); }
.tag.tag-pick::after{
  content: ""; display: inline-block;
  width: 5px; height: 5px; margin-left: 4px; vertical-align: 1px;
  border-right: 1.4px solid currentColor; border-bottom: 1.4px solid currentColor;
  transform: rotate(45deg); opacity: .55;
}

/* 状态选择列表 */
.sp-list{ display: flex; flex-direction: column; gap: 6px; }
.sp-item{
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--panel-2);
  font-family: inherit; text-align: left; cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.sp-item b{ font-size: 13.5px; font-weight: 620; color: var(--text); }
.sp-item span{ margin-left: auto; font-size: 11px; color: var(--text-3); }
.sp-item .sp-dot{
  width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px;
  background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 16%, transparent);
}
.sp-item.is-on{
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  background: color-mix(in srgb, var(--brand) 7%, var(--panel));
}
.sp-item.is-on b{ color: var(--brand-strong); }
.sp-item.is-on span{ color: var(--brand-strong); font-weight: 600; }

/* --- 5. 排期日历：头部两行 + 正方形日期格 --- */
.cal-top{ display: block; padding-bottom: 12px; }
.cal-row1{ display: flex; align-items: center; gap: 6px; min-width: 0; }
.cal-row1 .cal-title{ flex: 0 0 auto; min-width: 0; }
.cal-acts{ margin-left: auto; display: flex; align-items: center; gap: 8px; }
.cal-row2{ margin-top: 9px; display: flex; align-items: center; gap: 8px; }
.cal-sum{
  font-size: 12px; font-weight: 600; color: var(--text-3);
  font-feature-settings: "tnum";
}
.cal-dots .cd-num{
  width: auto; height: auto; background: none;
  font-style: normal; font-size: 9px; font-weight: 800;
  line-height: 1; color: var(--text-3);
}

@media (max-width: 640px){
  /* 日期格改正方形：之前是 44×58 的竖条，一个月看上去像一排排书签 */
  .cal-grid{ gap: 5px; }
  .cal-cell{
    aspect-ratio: 1 / 1;
    min-height: 0;
    padding: 5px 3px;
    border-radius: 10px;
    align-items: center;
    justify-content: center;
    gap: 3px;
  }
  .cal-cell .dn{ font-size: 12.5px; line-height: 1; }
  .cal-evs{ display: none; }
  .cal-dots{
    display: flex; gap: 3px; align-items: center; justify-content: center;
    height: auto; min-height: 5px; flex-wrap: nowrap;
  }
  .cal-dots i{ width: 5px; height: 5px; }
  .cal-dots .cd-num{ font-size: 8.5px; }
  .cal-head-right .sub{ display: none; }
  .cal-row1 .cal-title{ font-size: 15.5px; }
}

/* ============================================================
   V7.2（2026-12-04）· 排期日历「当日议程」重排
   ------------------------------------------------------------
   截图里的问题：时间/状态是左边一块被拉满整行高度的底色，
   字挤在左上角；一天里只要有一条没填时间，这一列整列都不渲染，
   于是同一天的条目左边起点、内容宽度全不一样，换个屏宽再变一次。

   这一版：
     ① 时间列固定 56px，徽标只占一行高、字在徽标里居中；
        没填时间也保留这一列（写「待定」/「已完成」）—— 对齐不再随内容变。
     ② 条目改成独立卡片，内容从左往右一条基线：店名 → 状态·区域 → 操作。
     ③ 整段议程套一个居中列（max-width + margin:auto），
        360 / 390 / 414 / 平板 / 桌面都居中在同一个轴上。
     ④ 桌面端也显示（以前只给手机），信息密度跟着一起提上来。
   ============================================================ */
.cal-agenda{
  display: block;
  width: 100%;
  margin: 20px auto 0;
  padding-top: 16px;
  border-top: 1px dashed color-mix(in srgb, var(--line) 80%, transparent);
}
/* 分隔线拉满整行（与上面的月份栅格同宽），
   里面的内容再收成一条居中的窄列 —— 宽屏上不会出现「一条短横线吊在中间」。 */
.cal-agenda > *{ max-width: 720px; margin-left: auto; margin-right: auto; }
.agenda-head{
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 10px; margin: 0 0 10px;
}
.agenda-head b{ font-size: 15px; font-weight: 750; color: var(--text); letter-spacing: .2px; }
.agenda-head span{ font-size: 12px; font-weight: 600; color: var(--text-3); }

.agenda-list{ display: flex; flex-direction: column; gap: 8px; }

.agenda-item{
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  column-gap: 12px;
  align-items: start;
  margin: 0;
  padding: 11px 13px;
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent) !important;
  border-radius: 14px !important;
  background: var(--panel) !important;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.agenda-item:last-child{ border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent) !important; }
@media (hover: hover){
  .agenda-item:hover{ border-color: color-mix(in srgb, var(--brand) 30%, var(--line)) !important; box-shadow: var(--shadow-sm); }
}
.agenda-item.is-done{ opacity: .68; }

/* 时间 / 状态徽标：固定尺寸、字在框里居中，不再被整行拉长 */
.agenda-time{
  align-self: start;
  display: flex; align-items: center; justify-content: center;
  width: 56px; min-height: 24px; padding: 4px 2px;
  border-radius: 8px !important;
  background: color-mix(in srgb, var(--brand) 9%, var(--panel)) !important;
  color: var(--brand-strong);
  font-size: 11.5px; font-weight: 700; line-height: 1.15;
  letter-spacing: 0; text-align: center; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.agenda-time.is-tbd{
  background: var(--panel-2) !important;
  color: var(--text-3);
  font-weight: 600; letter-spacing: 0; opacity: 1;
}

.agenda-main{ min-width: 0; display: block; }
.agenda-main b{
  display: block; font-size: 14.5px; font-weight: 700; line-height: 1.32;
  color: var(--text);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.agenda-item.is-done .agenda-main b{ text-decoration: line-through; text-decoration-thickness: 1px; }
.agenda-main span.agenda-meta{
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-3); margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.agenda-meta i{
  width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%;
  background: var(--c, var(--brand)); display: block;
}
.agenda-btns{
  display: flex; gap: 8px; margin-top: 9px; flex-wrap: wrap;
  justify-content: flex-start;
}
.agenda-btns .btn{ min-height: 30px; padding: 4px 12px; font-size: 12.5px; }

/* 右侧金额：宽屏用来压住右边的空白，窄屏收进副标题里 */
.agenda-side{
  grid-column: 3; align-self: start;
  padding-left: 6px;
  text-align: right;
}
.agenda-side b{
  display: block; font-size: 14px; font-weight: 800; line-height: 1.32;
  color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.agenda-meta .agenda-amt-in{ display: none; }
@media (max-width: 559px){
  .agenda-item{ grid-template-columns: 56px minmax(0, 1fr); }
  .agenda-side{ display: none; }
  .agenda-meta .agenda-amt-in{
    display: inline; margin-left: 6px;
    font-weight: 700; color: var(--text-2);
  }
}

.cal-agenda .agenda-new{
  width: 100%; margin-top: 10px; min-height: 42px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
}
.cal-agenda .more-btn{ border-top: 0; }

.agenda-empty{
  text-align: center; padding: 26px 12px 20px;
  color: var(--text-3); font-size: 13px;
  border: 1px dashed color-mix(in srgb, var(--line) 85%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--panel) 60%, transparent);
}
.agenda-empty em{
  display: block; margin-top: 5px; font-style: normal;
  font-size: 11.5px; color: var(--text-3); opacity: .85;
}

/* 窄屏：留白收紧，但时间列宽度不变 —— 对齐逻辑与宽屏完全一致 */
@media (max-width: 640px){
  .cal-agenda{ margin-top: 16px; padding-top: 14px; }
  .agenda-item{ padding: 10px 11px; column-gap: 10px; border-radius: 13px !important; }
  .agenda-time{ width: 56px; }
}

/* ============================================================
   V7.2（2026-12-04）· 「关键信息告知单」（只读）
   ------------------------------------------------------------
   点卡片/日程块进来看到的是这张单据，不是表单：
   抬头是「哪家店 / 什么阶段 / 多少钱」，往下按
   什么时候 → 去哪儿 → 到店做什么 → 钱怎么算 → 出稿发布 排层级。
   只读：没有输入框、没有保存键、也没有编辑入口。
   ============================================================ */
.brief-panel{ width: min(560px, calc(100vw - 32px)); }
/* V7.6：原先把「只读」单独摆在标题和关闭键之间 —— 它跟着整个两行抬头垂直居中，
   看着像夹在标题和 × 中间的一颗孤立按钮，跟「关键信息」也不像一回事。
   现在它贴在标题右肩（标题自带的小标），右侧只留 ×，位置一眼能对上。 */
.brief-head{ align-items: flex-start; }
.brief-head .mh-main{ min-width: 0; }
.brief-head #briefTitle{
  display: flex; align-items: center; gap: 8px;
  flex-wrap: wrap;
}
.brief-head .mh-close{ align-self: flex-start; margin-top: -1px; }
/* V7.8：这颗小标从「只读」换成「更多」—— 位置不动（标题右肩），
   它现在是个开关：点一下展开这一单的其余信息，再点一下收起。 */
.brief-more{
  position: relative;
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 2px;
  height: 20px; padding: 0 6px;
  border: 0; border-radius: 7px;
  background: var(--brand-soft);
  font-family: inherit; font-size: 10.5px; font-weight: 700; letter-spacing: .4px; line-height: 1;
  color: var(--brand-strong);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .14s ease, color .14s ease;
}
.brief-more svg{
  width: 11px; height: 11px;
  transition: transform .18s ease;
}
.brief-more:hover{ background: color-mix(in srgb, var(--brand) 16%, var(--brand-soft)); }
/* 视觉只有 20 高，但手指按得准的范围放到 32 —— 小标不能小到点不着 */
.brief-more::after{ content: ''; position: absolute; inset: -6px -5px; }
.brief-more[aria-expanded="true"]{ background: color-mix(in srgb, var(--brand) 22%, var(--brand-soft)); }
.brief-more[aria-expanded="true"] svg{ transform: rotate(180deg); }
.brief-more:active{ transform: scale(.96); }
.brief-more:focus-visible{ outline: 2px solid var(--brand); outline-offset: 1px; }
.brief-body{
  padding: 14px 16px 18px;
  background: var(--bg-soft);
  overscroll-behavior: contain;
}
.brief-foot .hint{ font-size: 11.5px; color: var(--text-3); }

/* ---- 抬头 ---- */
.brief-hero{
  position: relative;
  padding: 15px 15px 14px 17px;
  border-radius: 18px;
  /* 不用 --hero-a/--hero-b：那两个变量在深色主题里没被覆盖，
     照搬会得到一块白底 + 白字（店名直接看不见）。
     这里直接按品牌色给 panel 上色，深浅两套主题都成立。 */
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--brand) 8%, var(--panel)),
    color-mix(in srgb, var(--brand) 2%, var(--panel)));
  border: 1px solid color-mix(in srgb, var(--brand) 16%, var(--line));
  overflow: hidden;
}
.brief-hero::before{
  content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--st, var(--brand));
  opacity: .85;
}
.bh-row{ display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.bh-name{
  margin: 0; font-size: 18.5px; font-weight: 800; line-height: 1.3;
  letter-spacing: .2px; color: var(--text); word-break: break-word;
}
.bh-star{ color: var(--amber); font-style: normal; margin-left: 5px; font-size: 14px; vertical-align: 1px; }
.bh-meta{ margin: 6px 0 0; font-size: 12.5px; color: var(--text-3); line-height: 1.5; }
.bh-money{ display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.bh-money.is-single{ grid-template-columns: 1fr; }
.bhm{
  padding: 8px 10px; border-radius: 12px;
  background: color-mix(in srgb, var(--panel) 76%, transparent);
  border: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}
.bhm span{ display: block; font-size: 11px; font-weight: 600; color: var(--text-3); }
.bhm b{
  display: block; margin-top: 3px;
  font-size: 16px; font-weight: 800; color: var(--text);
  font-variant-numeric: tabular-nums;
}
.bhm b.is-due{ color: var(--amber); }
.bhm b.is-ok{ color: var(--green); }
.bhm b.is-na{ color: var(--text-3); font-weight: 700; }

/* ---- 分区 ---- */
.brief-sec{
  margin-top: 12px;
  padding: 13px 14px 12px;
  background: var(--panel);
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 16px;
}
.bs-head{
  display: flex; align-items: center; gap: 8px;
  margin: 0 0 9px; padding: 0;
  font-size: 13px; font-weight: 750; letter-spacing: .2px; color: var(--text);
}
.bs-ico{
  width: 20px; height: 20px; flex: 0 0 20px;
  display: grid; place-items: center;
  border-radius: 7px;
  font-style: normal; font-size: 11px; font-weight: 800;
  color: var(--brand-strong); background: var(--brand-soft);
}
.ico-place{ color: var(--blue); background: var(--blue-soft); }
.ico-visit{ color: var(--amber); background: var(--amber-soft); }
.ico-money{ color: var(--green); background: var(--green-soft); }
.ico-copy{ color: var(--purple); background: var(--purple-soft); }
.ico-note{ color: var(--text-2); background: var(--gray-soft); }

/* ---- 行：标签左、内容右，像一张单据 ---- */
.bs-rows{ margin: 0; display: flex; flex-direction: column; }
.br-row{
  display: flex; align-items: flex-start; gap: 12px;
  padding: 7px 0;
  border-top: 1px dashed color-mix(in srgb, var(--line) 62%, transparent);
}
.br-row:first-child{ border-top: 0; padding-top: 1px; }
.br-row:last-child{ padding-bottom: 0; }
.br-row dt{
  flex: 0 0 66px; margin: 0;
  font-size: 12px; font-weight: 600; line-height: 1.7; color: var(--text-3);
}
.br-row dd{
  flex: 1; min-width: 0; margin: 0;
  font-size: 13.5px; font-weight: 600; line-height: 1.7;
  color: var(--text); text-align: right; word-break: break-word;
}
.br-row dd .br-soft{ margin-left: 6px; }
.br-soft{ font-style: normal; font-weight: 500; color: var(--text-3); }
.br-ok{ font-style: normal; font-weight: 700; color: var(--green); }
.br-row dd b.is-due{ color: var(--amber); }

/* 地址单独一块：左边标签，下面整行地址 + 操作 */
/* 长文本（地址 / 禁用词 / 重点提醒）改成上下排：右对齐的整句话很难读 */
.br-row.br-place,
.br-row.br-stack{ flex-direction: column; gap: 7px; }
.br-row.br-place dt,
.br-row.br-stack dt{ flex: none; }
.br-row.br-place dd,
.br-row.br-stack dd{ width: 100%; text-align: left; }
.br-row.br-stack dd{ font-weight: 600; line-height: 1.65; }
.br-addr{ display: block; font-size: 13.5px; font-weight: 600; line-height: 1.6; }
.br-addr em{
  display: inline-block; margin-left: 6px;
  font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--text-3);
  padding: 1px 6px; border-radius: 6px; background: var(--panel-2);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.br-acts{ display: flex; gap: 6px; margin-top: 9px; flex-wrap: wrap; }
.br-acts .btn{ min-height: 30px; padding: 4px 12px; font-size: 12.5px; }

/* ---- 必拍清单 ---- */
.br-note{ margin-top: 10px; padding-top: 10px; border-top: 1px dashed color-mix(in srgb, var(--line) 62%, transparent); }
/* 这一节里没有别的行、只有清单时，不要再画一条分隔线 */
.bs-rows > .br-note:first-child{ margin-top: 0; padding-top: 0; border-top: 0; }
.br-note-h{ display: flex; align-items: center; justify-content: space-between; margin-bottom: 7px; }
.br-note-h b{ font-size: 12px; font-weight: 700; color: var(--text-2); }
.br-note-h span{ font-size: 11.5px; font-weight: 700; color: var(--text-3); font-variant-numeric: tabular-nums; }
.br-check{ list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.br-check li{
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; line-height: 1.55; color: var(--text-2);
}
.br-check li i{
  width: 16px; height: 16px; flex: 0 0 16px; margin-top: 2px;
  display: grid; place-items: center;
  border-radius: 5px; border: 1.5px solid var(--line-strong);
  font-style: normal; font-size: 10.5px; font-weight: 800; color: #fff;
}
.br-check li.is-on i{ background: var(--green); border-color: var(--green); }
.br-check li.is-on{ color: var(--text-3); }

/* ---- 话题 / 备注 ---- */
.br-chips{ display: flex; flex-wrap: wrap; gap: 6px; }
.br-chip{
  max-width: 100%; padding: 5px 9px;
  font-size: 12px; font-weight: 600; color: var(--text-2);
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  cursor: pointer;
}
.br-free{ margin: 0; font-size: 13px; line-height: 1.75; color: var(--text-2); }

@media (max-width: 768px){
  /* V7.3：别再铺满整屏。全站其他弹窗（编辑接单等）两侧都留 16px，
     只有这张贴死在屏幕边上，看着像另一个 App 的页面。
     这里跟它们对齐：左右各留 16px 白边，圆角与阴影也就都露得出来。 */
  .brief-panel{ width: calc(100vw - 32px); max-width: 560px; }
  .brief-body{ padding: 12px 13px 16px; }
  .brief-sec{ padding: 12px 12px 11px; }
  .br-row dt{ flex: 0 0 62px; }
  .bh-name{ font-size: 17.5px; }
  .brief-head{ padding: 16px 16px 10px; }
  .brief-foot{ padding: 11px 16px; }
}

/* --- V7.2：日历头部第二行的「回到本月」 ---
   第一行在 360/390 上放不下 4 个元素，最后一个会被裁掉半个。
   现在它落在统计那一行右侧，第一行只留「‹ 月份 › + 导出」。 */
.cal-row1{ flex-wrap: nowrap; }
.cal-row1 .cal-title{ overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-row2 .cal-today-btn{ margin-left: auto; flex: 0 0 auto; }
@media (max-width: 480px){
  .cal-row2{ margin-top: 8px; }
  .cal-row2 .cal-today-btn{ min-height: 34px; padding: 4px 12px; font-size: 12.5px; }
  .cal-row1{ gap: 4px; }
}

/* ============================================================
   V7.3（2026-12-04）· 费用区：探店金额 + 只读的「已收」
   ------------------------------------------------------------
   原来 4 个输入框挤一行，其中「已收金额」是个谁都能随手改的数字 ——
   改完既没有日期也没法核对，月底对账时和实际到账永远差一截。
   现在已收不是输入框，是一行结果：金额 + 还差多少，右边给「登记收款」。
   ============================================================ */
.paid-line{
  display: flex; align-items: center; gap: 10px;
  margin-top: 10px; padding: 10px 12px;
  border: 1px dashed color-mix(in srgb, var(--line) 90%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--panel-2) 55%, transparent);
}
.pl-main{ display: flex; align-items: baseline; gap: 8px; min-width: 0; flex: 1; flex-wrap: wrap; }
.pl-lbl{ font-size: 12.5px; font-weight: 600; color: var(--text-3); }
.pl-main b{
  font-size: 17px; font-weight: 800; line-height: 1.2;
  color: var(--green); font-variant-numeric: tabular-nums;
  letter-spacing: -.2px;
}
.pl-main b.is-zero{ color: var(--text-3); font-weight: 700; }
.pl-main em{
  font-style: normal; font-size: 12px; font-weight: 600;
  color: var(--text-3);
  padding: 1px 7px; border-radius: 20px;
  background: var(--panel); border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
}
.pl-main em.is-due{ color: var(--amber); border-color: color-mix(in srgb, var(--amber) 26%, var(--line)); background: var(--amber-soft); }
.paid-line .btn{ flex: 0 0 auto; }
@media (max-width: 480px){
  .paid-line{ padding: 9px 10px; gap: 8px; }
  .pl-main b{ font-size: 16px; }
}

/* ---- 登记收款弹窗 ---- */
.modal-sm .pay-panel{ width: min(420px, calc(100vw - 32px)); }
.pay-amt input{
  font-size: 24px !important; font-weight: 800 !important;
  height: 56px; letter-spacing: -.3px; font-variant-numeric: tabular-nums;
  text-align: left; padding-left: 14px;
}
.pay-quick{ display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }
.pay-quick button{
  flex: 0 0 auto; min-height: 34px; padding: 5px 11px;
  font-size: 12.5px; font-weight: 650; color: var(--text-2);
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 10px; cursor: pointer;
  transition: border-color .15s ease, color .15s ease;
}
.pay-quick button:hover{ border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); color: var(--brand-strong); }
.pay-hint{ margin: 10px 0 0; font-size: 12px; line-height: 1.6; color: var(--text-3); }
.pay-log{ margin-top: 12px; }
.plog-head{
  font-size: 11.5px; font-weight: 700; letter-spacing: .4px;
  color: var(--text-3); margin-bottom: 6px;
}
.plog-row{
  display: flex; align-items: center; gap: 10px;
  padding: 8px 2px;
  border-top: 1px dashed color-mix(in srgb, var(--line) 70%, transparent);
}
.plog-row:first-of-type{ border-top: 0; }
.plog-d{ font-size: 12.5px; color: var(--text-3); flex: 1; min-width: 0; }
.plog-a{ font-size: 14px; font-weight: 750; color: var(--text); font-variant-numeric: tabular-nums; }
.plog-x{
  width: 26px; height: 26px; flex: 0 0 26px;
  display: grid; place-items: center;
  border: 0; border-radius: 8px; background: transparent;
  color: var(--text-3); cursor: pointer;
}
.plog-x svg{ width: 14px; height: 14px; }
.plog-x:hover{ background: var(--red-soft); color: var(--red); }

/* 告知单里两笔以上的收款明细 */
.br-pays{
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 9px; padding-top: 9px;
  border-top: 1px dashed color-mix(in srgb, var(--line) 62%, transparent);
}
.br-pays span{
  display: inline-flex; align-items: baseline; gap: 6px;
  padding: 3px 8px; border-radius: 8px;
  font-size: 11.5px; color: var(--text-3);
  background: var(--panel-2); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent);
}
.br-pays b{ font-size: 12.5px; font-weight: 750; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* ============================================================
   V7.4（2026-12-04）· 导出 / 导入报名表 → 顶栏图标
   ------------------------------------------------------------
   这两颗按钮一年点不了几次，却占着筛选行 150px：
   手机上「全部月份」被迫独占一行，搜索框又得另起一行，
   三行控件里有两行是给这两颗低频按钮让的位置。
   现在它们收成顶栏右侧的两颗图标（只在接单记录页出现），
   筛选行只剩「搜索框 + 月份」，360 宽也能挤在一行里。

   图标语义：导出＝箭头向下落进托盘，导入＝箭头向上从托盘出来，
   形状同源、方向相反，扫一眼不会认错。文字说明留给 title / aria-label。
   ============================================================ */

/* 默认不占位：这两颗只属于接单记录 */
#topExport, #topImport{ display: none; }
body[data-pg="orders"] #topExport,
body[data-pg="orders"] #topImport{ display: inline-flex; }

.top-act{
  width: 36px; height: 36px; flex: 0 0 36px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0; cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--text-2);
  -webkit-tap-highlight-color: transparent;
  transition: border-color .16s ease, color .16s ease, background .16s ease, transform .1s ease;
}
.top-act svg{ width: 18px; height: 18px; display: block; }
@media (hover: hover){
  .top-act:hover{
    border-color: color-mix(in srgb, var(--brand) 38%, var(--line));
    color: var(--brand-strong);
    background: color-mix(in srgb, var(--brand) 6%, var(--panel));
  }
}
.top-act:active{ transform: scale(.95); }
.top-act:focus-visible{ outline: 2px solid var(--brand); outline-offset: 2px; }

/* 手机端顶栏那颗「新增接单」是收起来的，这两颗跟着长到 38（手指更好点） */
@media (max-width: 860px){
  .top-act{ width: 38px; height: 38px; flex-basis: 38px; }
  .top-act svg{ width: 19px; height: 19px; }
  .topbar-right #topImport{ margin-right: 2px; }
}

/* 筛选行：搜索框和月份挤一行（styles.css 里手机端把搜索框写成 flex:1 0 100%，
   那是给「搜索 / 月份 / 导出 / 导入」四件套排两行用的，现在不需要了） */
@media (max-width: 768px){
  .orders-head .filters{ flex-wrap: nowrap; gap: 8px; }
  .orders-head .filters .search-box{ flex: 1 1 0; min-width: 0; height: 40px; }
  .orders-head .filters .month-btn{ flex: 0 0 auto; height: 40px; max-width: none; }
}
@media (max-width: 360px){
  .orders-head .filters{ gap: 6px; }
  .orders-head .filters .month-btn{ padding: 0 9px 0 10px; font-size: 12.5px; }
}

/* ============================================================
   V7.5（2026-12-04）· 浮层菜单（导航到这家店 / 更多操作）
   ------------------------------------------------------------
   截图里那份菜单的问题：
     ① 四行纯文字，字形一样长，点之前得逐行读才知道哪行是地图、哪行是复制；
     ② 行距松、字轻，看着像一张没排过版的列表；
     ③ 从点击点往下弹，正压在刚点的那排按钮上，想改主意还得先关掉。
   这一版：图标 + 名称 + 「打开外链」小箭头；抬头写清「导航到 · 哪家店」；
   行高 40、圆角 10、hover 走品牌色；下方放不下就往上弹。
   ============================================================ */
#popMenu{
  min-width: 198px;
  padding: 6px;
  border-radius: 15px;
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  background: var(--panel);
  /* 三层：近处一层贴地的细影、中间一层扩散、外面一圈极淡的描边 —— 比单层大阴影干净 */
  box-shadow: 0 16px 40px -18px color-mix(in srgb, #2b1a14 42%, transparent),
              0 4px 14px -8px color-mix(in srgb, #2b1a14 22%, transparent),
              0 0 0 .5px color-mix(in srgb, #2b1a14 6%, transparent);
  transform-origin: top left;
  animation: pm-in .13s ease-out;
}
[data-theme="dark"] #popMenu{
  box-shadow: 0 18px 44px -16px rgba(0,0,0,.72),
              0 4px 14px -6px rgba(0,0,0,.5),
              0 0 0 .5px rgba(255,255,255,.06);
}
#popMenu.is-up{ transform-origin: bottom left; }
@keyframes pm-in{
  from{ opacity: 0; transform: translateY(-3px) scale(.975); }
}

/* ---- 抬头：给哪家店导航 ---- */
#popMenu .pm-head{
  display: flex; align-items: baseline; gap: 6px;
  padding: 4px 10px 8px; margin-bottom: 3px;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
}
#popMenu .pm-head em{
  flex: none; font-style: normal;
  font-size: 10.5px; font-weight: 700; letter-spacing: .6px;
  color: var(--text-3);
}
#popMenu .pm-head b{
  min-width: 0; font-size: 12.5px; font-weight: 700; line-height: 1.35;
  color: var(--text-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---- 条目：图标 / 名称 / 外链箭头 ---- */
#popMenu .pm-item{
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 40px; padding: 0 10px;
  border: 0; border-radius: 10px; background: transparent;
  font-family: inherit; font-size: 13.5px; font-weight: 600; line-height: 1.2;
  color: var(--text); text-align: left; cursor: pointer;
  white-space: normal; overflow: visible; text-overflow: clip;
  -webkit-tap-highlight-color: transparent;
  transition: background .14s ease, color .14s ease;
}
#popMenu .pm-t{
  flex: 1; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#popMenu .pm-ico{
  width: 20px; height: 20px; flex: 0 0 20px;
  display: grid; place-items: center;
  color: var(--text-3);
  transition: color .14s ease;
}
#popMenu .pm-ico svg{ width: 18px; height: 18px; display: block; }
#popMenu .pm-go{
  width: 15px; height: 15px; flex: 0 0 15px;
  color: var(--text-3); opacity: .72;
  transition: opacity .14s ease, color .14s ease;
}
@media (hover: hover){
  #popMenu .pm-item:hover{ background: color-mix(in srgb, var(--brand) 9%, transparent); color: var(--brand-strong); }
  #popMenu .pm-item:hover .pm-ico{ color: var(--brand); }
  #popMenu .pm-item:hover .pm-go{ color: var(--brand); opacity: .9; }
}
#popMenu .pm-item:active{ background: color-mix(in srgb, var(--brand) 14%, transparent); }
#popMenu .pm-item:focus-visible{ outline: 2px solid var(--brand); outline-offset: -2px; }

/* 分隔线：细一档、别把两组切得太生硬 */
#popMenu .pm-div{
  height: 1px; margin: 5px 10px;
  background: color-mix(in srgb, var(--line) 62%, transparent);
}

/* 不含图标的菜单（编辑表单里的「更多操作」）保持原来的轻量感：
   那里每行都带摘要、字长，加粗反而吵 */
#popMenu:not(.has-ico) .pm-item{
  min-height: 38px; font-size: 13px; font-weight: 500; color: var(--text-2);
}
@media (hover: hover){
  #popMenu:not(.has-ico) .pm-item:hover{ color: var(--text); }
}

#popMenu .pm-danger, #popMenu .pm-danger .pm-ico{ color: var(--red); }
@media (hover: hover){
  #popMenu .pm-danger:hover{ background: color-mix(in srgb, var(--red) 9%, transparent); color: var(--red); }
  #popMenu .pm-danger:hover .pm-ico{ color: var(--red); }
}

/* 手机上手指更粗，行高和字号各放一档 */
@media (max-width: 520px){
  #popMenu{ min-width: 206px; }
  #popMenu .pm-item{ min-height: 42px; font-size: 13.8px; }
  #popMenu .pm-head b{ font-size: 12.5px; }
}

/* ============================================================
   V7.6（2026-12-04）· 编辑接单「更多」：两列卡片面板
   ------------------------------------------------------------
   截图里那份「更多」是七行等长的纯文字：
     成片与文案 · 7 个成片 · 已出稿 / 拍摄要求（BF）· 4 条核对项 / …
   一眼看过去是一段没排版的正文，七个入口还得逐行读到尾巴才知道区别。
   现在改成两列网格：一格一件事，图标 + 名称在上一行、状态在下一行，
   末行「查看 BF 文件」拉通一条 —— 它是动作，不是内容，语气也就不一样。
   ============================================================ */
#popMenu.has-tile{
  width: 340px; max-width: calc(100vw - 24px);
  padding: 8px;
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(0,1fr);
  gap: 7px;
  border-radius: 16px;
}
#popMenu.has-tile .pm-head,
#popMenu.has-tile .pm-div,
#popMenu.has-tile .pm-wide{ grid-column: 1 / -1; }

/* 抬头：主标题在上、说明在下，不再和店名挤一行 */
#popMenu .pm-head-tile{
  display: block;
  padding: 4px 5px 9px; margin-bottom: 1px;
}
#popMenu .pm-head-tile b{
  display: block; font-size: 13px; font-weight: 700; color: var(--text);
}
#popMenu .pm-head-tile em{
  display: block; margin-top: 2px;
  font-size: 11px; font-weight: 500; letter-spacing: 0; color: var(--text-3);
}

/* 一格：图标 + 名称 + 状态 */
#popMenu.has-tile .pm-item{
  display: grid;
  grid-template-columns: 26px minmax(0,1fr);
  grid-template-areas: "ico t" ". sub";
  column-gap: 9px; row-gap: 3px;
  min-height: 58px; padding: 9px 10px;
  align-content: center;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 12px;
  background: var(--panel-2);
  font-size: 12.5px; font-weight: 650;
  color: var(--text);
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
#popMenu.has-tile .pm-ico{
  grid-area: ico;
  width: 26px; height: 26px; flex: none;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-strong);
}
#popMenu.has-tile .pm-ico svg{ width: 16px; height: 16px; }
#popMenu.has-tile .pm-t{ grid-area: t; align-self: center; }
#popMenu.has-tile .pm-sub{
  grid-area: sub;
  font-size: 11px; font-weight: 500; letter-spacing: .1px;
  color: var(--text-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* 末行动作：拉通、描边而不是实底 —— 读起来是「去做一件事」 */
#popMenu.has-tile .pm-wide{
  display: flex; align-items: center; gap: 9px;
  min-height: 44px; padding: 0 11px;
  border-style: dashed;
  border-color: color-mix(in srgb, var(--line) 95%, transparent);
  background: transparent;
}
#popMenu.has-tile .pm-wide .pm-ico{
  width: 22px; height: 22px;
  background: transparent; color: var(--text-3);
}
#popMenu.has-tile .pm-wide .pm-ico svg{ width: 15px; height: 15px; }
#popMenu.has-tile .pm-wide .pm-t{ flex: 1; min-width: 0; font-size: 12.5px; font-weight: 600; }
#popMenu.has-tile .pm-wide .pm-sub{
  flex: none; grid-area: auto;
  font-size: 11px; color: var(--text-3);
}

@media (hover: hover){
  #popMenu.has-tile .pm-item:hover{
    background: color-mix(in srgb, var(--brand) 9%, var(--panel-2));
    border-color: color-mix(in srgb, var(--brand) 30%, transparent);
    color: var(--brand-strong);
  }
  #popMenu.has-tile .pm-item:hover .pm-ico{ background: color-mix(in srgb, var(--brand) 20%, var(--brand-soft)); }
  #popMenu.has-tile .pm-wide:hover .pm-ico{ background: transparent; }
}
#popMenu.has-tile .pm-item:active{ transform: scale(.985); }

/* 窄屏：两列各再收一点，160 宽也能放下「拍摄要求 BF」这种长名 */
@media (max-width: 380px){
  #popMenu.has-tile{ width: 100vw; max-width: calc(100vw - 20px); padding: 7px; gap: 6px; }
  #popMenu.has-tile .pm-item{ padding: 8px 9px; font-size: 12px; }
  #popMenu.has-tile .pm-wide .pm-t{ font-size: 12px; }
}

/* ============================================================
   V7.7 / V7.8（2026-12-04）· 告知单抬头：「更多」代替「只读」
   ------------------------------------------------------------
   原来它挂在编辑单工具栏（语音录入 / 粘贴识别 / 更多）；
   成片 / BF / 话题 / 发布记录 / 提醒讲的是「这一单还有什么」，
   是看的那一面，于是整颗搬到只读告知单的抬头：
   位置就在标题右肩（原来「只读」那颗小标的位置），点一下展开、再点收起。
   两只按钮并排时给 × 一点呼吸，别跟「更多」粘在一起。
   ============================================================ */
.brief-head{ gap: 6px; }
.brief-head .mh-close{ margin-left: 2px; }


/* ============================================================
   V7.9（2026-12-04）· 日历格子里的排期条：给条之间一点缝
   ------------------------------------------------------------
   自检时量到 .cal-evs 是 display:block、条之间 margin 0，
   同一天三条（探店 / 交稿 / 结款）上下紧贴，远远看是一整块条纹，
   最后一条的下圆角又被「+N」顶着，读起来像被裁掉一半。
   改成纵向 flex + 3px 缝，+N 再单独留一行。
   ============================================================ */
/* 只在桌面生效：手机上 .cal-evs 本来就是 display:none（只留日期格里的点），
   这里若不限定宽度会把那条规则盖掉，格子里冒出 2px 高的残条。 */
@media (min-width: 641px){
  .cal-evs{
    display: flex; flex-direction: column;
    gap: 3px; min-height: 0;
  }
  .cal-evs .cal-more{ margin-top: 1px; line-height: 1.25; }
}

/* ============================================================
   V7.11（2026-12-05）
   ① 平台账号行：把散着的五行收成「名字一行 / 数字一行 / 资料一小格」
   ② 一个平台可以放好几个号（同组多行 + 「再加一个」）
   ------------------------------------------------------------
   截图里的问题：编辑按钮像浮在右上角的方块；ID / 蒲公英 / 主页链接
   各占一行、各挂一个复制图标，右边一列疏疏落落；「昨天更新」被
   margin-left:auto 甩到最右，跟数字之间空出半行；蒲公英的标签还被
   截成「蒲公英 UI…」。信息一条没少，只是没有成组，眼睛得一行行捡。
   ============================================================ */

/* 组：一个平台一组，组与组之间一条虚线；组内多号只留一点缝 */
.plat-group + .plat-group{
  margin-top: 10px; padding-top: 14px;
  border-top: 1px dashed var(--line-strong);
}
.card[data-cf="xhs"] .plat{
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: flex-start;
  padding: 10px 0 11px;
  border-bottom: 0;
}
.plat-group .plat:first-child{ padding-top: 2px; }
.plat-group .plat + .plat{ padding-top: 9px; }

/* V7.23：头像去掉了（见 app.js 注释）。名字一行直接顶到左边，
   ID / 蒲公英 / 主页那块小格子跟着左对齐，整块像一张资料卡，
   而不是「一张头像 + 一列缩进去的字」。 */

/* 第一行：名字 + 平台标 + 两颗安静的小按钮 */
.plat .pn{ gap: 5px; align-items: center; }
.plat .pn-name{
  flex: 0 1 auto; min-width: 0;
  font-size: 13.5px; font-weight: 750; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.plat-tag{
  flex: 0 0 auto; margin-left: 0; padding: 1px 6px;
  font-size: 9.5px; font-weight: 750; border-radius: 999px;
  background: var(--bg-soft); color: var(--text-3);
}
/* 平台标按平台上色：红 / 黑 / 橙，扫一眼就知道是哪家 */
.plat-tag.t-xhs{ color: #E8283F; background: rgba(255,46,77,.11); }
.plat-tag.t-dy{ color: #1B1B23; background: rgba(22,24,35,.08); }
.plat-tag.t-dp{ color: #D97400; background: rgba(255,138,0,.14); }
[data-theme="dark"] .plat-tag.t-xhs{ color: #FF7A88; background: rgba(255,46,77,.18); }
[data-theme="dark"] .plat-tag.t-dy{ color: #E9E9EF; background: rgba(255,255,255,.13); }
[data-theme="dark"] .plat-tag.t-dp{ color: #FFAE4D; background: rgba(255,138,0,.18); }

.plat .pn-acts{ margin-left: auto; flex: 0 0 auto; display: flex; align-items: center; gap: 1px; }
/* 编辑：不再是带边框的方块，退成一行小字；没填过时是淡淡的品牌色小胶囊 */
.plat-edit{
  width: auto; margin: 0; padding: 0 5px; height: 21px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 7px; background: transparent;
  font-family: inherit; font-size: 11px; font-weight: 700;
  color: var(--text-3); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .15s, background .15s;
}
.plat-edit:active{ color: var(--brand-strong); background: var(--brand-soft); }
@media (hover: hover){
  .plat-edit:hover{ color: var(--brand-strong); background: var(--brand-soft); }
}
.plat.is-empty .plat-edit{
  color: var(--brand-strong); background: var(--brand-soft);
  padding: 0 9px; font-weight: 750;
}
.plat-del{
  width: 19px; height: 19px; padding: 0; flex: 0 0 19px;
  display: inline-grid; place-items: center;
  border: 0; border-radius: 6px; background: transparent;
  color: var(--text-3); opacity: .5; cursor: pointer;
  transition: opacity .15s, color .15s, background .15s;
}
.plat-del svg{ width: 11px; height: 11px; }
.plat-del:active{ opacity: 1; color: var(--red); background: var(--red-soft); }
@media (hover: hover){
  .plat-del:hover{ opacity: 1; color: var(--red); background: var(--red-soft); }
}

/* 第二行：粉丝 / 赞藏 / 更新时间挤在一行，更新时间只带一个细点，不再甩到最右 */
.plat-stat{
  margin-top: 3px; gap: 0 10px; font-size: 11.5px; color: var(--text-3);
}
.plat-stat > span + span{ padding-left: 0; }
.plat-stat > span + span::before{ display: none; }
.plat-stat b{ font-size: 12.5px; font-weight: 750; color: var(--text-2); }
.plat-stat .plat-time{
  margin-left: 0; font-size: 10.5px; color: var(--text-3); opacity: .85;
}
.plat-stat .plat-time::before{ content: '·'; margin-right: 5px; opacity: .7; }

/* 第三块：ID / 蒲公英 / 主页链接 —— 一块浅底小格子，标签定宽、值省略、图标收在同一列 */
.plat-facts{
  margin-top: 7px;
  padding: 2px 3px;
  border-radius: 11px;
  background: var(--bg-soft);
  display: flex; flex-direction: column;
}
[data-theme="dark"] .plat-facts{ background: rgba(255,255,255,.045); }
.pfact{
  display: flex; align-items: center; gap: 6px;
  width: 100%; min-height: 23px; padding: 1px 5px;
  border: 0; border-radius: 8px; background: transparent;
  font-family: inherit; font-size: 11.5px; color: var(--text-2);
  text-align: left; cursor: pointer; min-width: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s, color .15s;
}
.pfact:active{ background: var(--brand-soft); color: var(--brand-strong); }
.pfact-k{
  flex: 0 0 34px; font-size: 10.5px; font-weight: 650;
  color: var(--text-3); letter-spacing: .2px;
}
.pfact-v{
  flex: 1 1 auto; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pfact-mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 10.8px; letter-spacing: .1px;
}
.pfact.is-link{ cursor: default; }
.pfact.is-link .pfact-v{ color: var(--blue); text-decoration: none; cursor: pointer; }
.pfact.is-link .pfact-v:hover{ text-decoration: underline; }
.pfact .cp-btn, .pfact .cp-ico{ width: 18px; height: 18px; flex: 0 0 18px; }
.pfact .cp-ico{ display: inline-grid; place-items: center; color: var(--text-3); opacity: .65; }
.pfact .cp-btn svg, .pfact .cp-ico svg{ width: 11px; height: 11px; }

/* 没填过的平台：压成一行，不再摆三行「未填写」 */
.plat.is-empty .plat-tip{
  margin: 4px 0 0; font-size: 11px; line-height: 1.5;
  color: var(--text-3); opacity: .9;
}

/* 「再加一个」：以前是一条横跨整行的虚线，三个平台就是三条，看着像三张表单。
   现在收成左边一颗小胶囊 —— 点得到，但不占一条横带。 */
.plat-add{
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  width: auto; height: 28px; margin: 4px 0 0; padding: 0 11px 0 9px;
  border: 1px dashed var(--line-strong); border-radius: 99px;
  background: transparent; color: var(--text-3);
  font-family: inherit; font-size: 11px; font-weight: 650;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: color .15s, border-color .15s, background .15s;
}
.plat-add svg{ width: 11px; height: 11px; }
.plat-add:active{ color: var(--brand-strong); background: var(--brand-soft); border-color: transparent; }
@media (hover: hover){
  .plat-add:hover{ color: var(--brand-strong); border-color: color-mix(in srgb, var(--brand) 40%, transparent); }
}
@media (max-width: 360px){
  .plat .pn-name{ font-size: 13px; }
  .pfact-k{ flex-basis: 30px; }
  .plat-stat{ font-size: 11px; }
}

/* ============================================================
   V7.12（2026-12-05）· 悬浮按钮：白边 + 文案改成「我要接单」
   ------------------------------------------------------------
   兔子那颗球跟品牌色的胶囊贴在一起，边上又是白底页面，
   球看着像直接糊在背景上；加一圈 3px 白边，球和胶囊都像贴纸一样立起来。
   尺寸一点没动（球还是 46，胶囊还是 56 高）—— 白边是 box-shadow 画的，
   不占布局，v14.js 量出来的宽高也不会被带偏。
   ============================================================ */
#fabBtn{
  box-shadow:
    0 0 0 3px #fff,
    0 12px 26px -12px rgba(var(--brand-rgb), 1),
    inset 0 -2px 0 rgba(150, 50, 30, .18);
}
/* 拖动时只剩一层柔光 + 白边，别让两种阴影打架 */
#fabBtn.is-drag{
  box-shadow: 0 0 0 3px #fff, 0 14px 30px -10px rgba(var(--brand-rgb), .55);
}
/* 深色底：白边照旧，外圈光换成黑的，不然白边外面还有一圈亮雾 */
[data-theme="dark"] #fabBtn{
  box-shadow:
    0 0 0 3px #fff,
    0 14px 28px -10px rgba(0, 0, 0, .75),
    inset 0 -2px 0 rgba(150, 50, 30, .18);
}
[data-theme="dark"] #fabBtn.is-drag{
  box-shadow: 0 0 0 3px #fff, 0 16px 32px -12px rgba(0, 0, 0, .8);
}

/* ============================================================
   V7.13（2026-12-05）· 地址能重新搜
   ------------------------------------------------------------
   编辑老单时地址写错了只能逐字改；V7.14 起这颗「地图搜」挂在
   「探店店名」这一行的右上角——店名才是这单的锚，点开是一张搜索单，
   挑一条就把店名 + 地址 + 行政区一起填好。
   ============================================================ */
.fld-line{ display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fld-find{
  display: inline-flex; align-items: center; gap: 3px; flex: 0 0 auto;
  height: 21px; padding: 0 8px;
  border: 0; border-radius: 6px; cursor: pointer;
  background: var(--brand-soft); color: var(--brand-strong);
  font-family: inherit; font-size: 11px; font-weight: 750;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
.fld-find svg{ width: 11px; height: 11px; }
.fld-find:active{ background: color-mix(in srgb, var(--brand) 18%, transparent); }
/* 两列并排时（店名和品类在一行），右对齐的按钮会紧贴右边那列的标题，
   看着像是「品类」的按钮 —— 这种宽度下改成跟在标题文字后面。 */
@media (min-width: 521px){
  .grid-2 .field > .fld-line{ justify-content: flex-start; gap: 10px; }
}

.addr-search{ display: flex; gap: 8px; margin-bottom: 10px; }
.addr-search input{
  flex: 1; min-width: 0; height: 38px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 11px;
  background: var(--panel-2); color: var(--text);
  font-family: inherit; font-size: 14px; outline: 0;
  transition: border-color .15s, box-shadow .15s;
}
.addr-search input:focus{
  border-color: var(--brand); background: var(--panel);
  box-shadow: 0 0 0 3px var(--brand-soft);
}
.addr-results{ display: flex; flex-direction: column; gap: 6px; max-height: 46vh; overflow: auto; }
.addr-item{
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 10px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); cursor: pointer; text-align: left; font-family: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s, background .15s;
}
.addr-item:active{ background: var(--brand-soft); border-color: color-mix(in srgb, var(--brand) 34%, transparent); }
@media (hover: hover){ .addr-item:hover{ border-color: var(--line-strong); } }
.addr-item .ai-main{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.addr-item .ai-main b{
  font-size: 12.5px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.addr-item .ai-main em{
  font-style: normal; font-size: 10.8px; color: var(--text-3); line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.addr-item .ai-go{
  flex: 0 0 auto; font-size: 11px; font-weight: 750; color: var(--brand-strong);
  background: var(--brand-soft); padding: 3px 8px; border-radius: 99px;
}

/* ============================================================
   V7.15 / V7.17：店名边打边出的候选
   ------------------------------------------------------------
   候选是「长在页面里」的一块，排在「店名 / 品类」那行后面，跟着
   表单一起滚 —— 不用 fixed 浮层，是因为手机键盘弹起时浮层的位置
   会算错（真机上飞到了屏幕顶上，盖住表单）。
   类名一律 ss- 前缀：styles.css 里老的 .shop-sug / .sug-item 是
   早期地点搜索留下的，撞上会被它的内边距和行结构带歪。
   ============================================================ */
.ss-pop{
  display: flex; flex-direction: column; gap: 2px;
  margin: 8px 0 2px; padding: 4px 4px 5px;
  scroll-margin: 10px 0 14px;
  max-height: min(240px, 42vh); overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 24px -18px rgba(0, 0, 0, .35);
  -webkit-overflow-scrolling: touch;
}
.ss-pop[hidden]{ display: none; }
/* 店名和品类并排时，候选要占满一行，别挤成第三格 */
.grid-2 > .ss-pop{ grid-column: 1 / -1; }
.ss-item{
  display: flex; align-items: center; gap: 8px; width: 100%;
  padding: 8px 9px; border: 0; border-radius: 9px; background: transparent;
  text-align: left; font-family: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ss-item:active{ background: var(--brand-soft); }
@media (hover: hover){ .ss-item:hover{ background: var(--bg-soft); } }
.ss-item .ss-main{ flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ss-item .ss-main b{
  font-size: 12.5px; font-weight: 700; color: var(--text);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ss-item .ss-main em{
  font-style: normal; font-size: 10.8px; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ss-item .ss-go{
  flex: 0 0 auto; font-size: 10.5px; font-weight: 750; color: var(--brand-strong);
  background: var(--brand-soft); padding: 3px 7px; border-radius: 99px;
}
.ss-pop .ss-empty{ padding: 9px 10px; font-size: 11.5px; color: var(--text-3); line-height: 1.5; }

/* ============================================================
   V7.18：发布记录面板收一档尺寸
   ------------------------------------------------------------
   手机上一屏只放得下一条记录：链接框 92 高、每个数据格 90 高、
   底部按钮 42 高，整条记录 366，面板要 712 高还得往里滚。
   这里把四样各收一档（链接框 92→58、数据格 90→68、按钮 42→34），
   一条记录整块约 258 —— 一屏能看完一条，还能露出下一条的头。
   只调尺寸，配色和结构不动；drag 的 g2 网格逻辑也不受影响。
   ============================================================ */

/* 弹窗内边距：这条窗口里全是卡片，四周留 20 太松 */
#postsModal .modal-body{ padding: 12px 16px 14px; }

/* 记录卡 */
.fold-post .post-row{
  padding: 10px 11px 11px !important;
  border-radius: 15px !important;
  margin-bottom: 9px !important;
}
.fold-post .post-top{ margin-bottom: 7px; gap: 7px; }
.fold-post .post-no{ width: 20px; height: 20px; flex: 0 0 20px; font-size: 11px; }
.fold-post .post-plat{ padding: 4px 9px; font-size: 11.5px; border-radius: 10px !important; }

/* 链接行：标签行 + 输入框各收 6~8px */
.fold-post .post-link-row{ padding: 6px 9px; margin-bottom: 9px; border-radius: 11px !important; }
.fold-post .post-link-row.is-edit{ padding: 6px 9px 7px; }
.fold-post .post-link-edit-top{ margin-bottom: 2px; }
.fold-post .post-link-edit-lab{ font-size: 11px; }
.fold-post .post-link-clear{ padding: 2px 7px; font-size: 10.5px; gap: 3px; }
.fold-post .post-link-clear svg{ width: 10px; height: 10px; }
.fold-post .post-link-row.is-edit .pf-link{ padding: 3px 0 !important; font-size: 12.5px; }

/* 四块数据：90 → 68 */
.fold-post .pf-grid{ gap: 8px; }
.fold-post .pf-cell{ padding: 8px 9px 9px; gap: 3px; border-radius: 13px !important; }
.fold-post .pf-cell-top{ gap: 5px; }
.fold-post .pf-cell-ic svg{ width: 13px; height: 13px; }
.fold-post .pf-cell-lab{ font-size: 11px; }
.fold-post .pf-cell .pf-input{
  padding: 4px 9px !important;
  font-size: 15px !important;
  border-radius: 9px !important;
}
.fold-post .pf-cell .pf-input:focus{ box-shadow: 0 0 0 2.5px rgba(107,90,74,.16) !important; }
.fold-post .pf-cell .pf-grab{
  width: 18px !important; height: 18px !important; flex: 0 0 18px !important;
  border-radius: 6px !important;
}
.fold-post .pf-grab svg{ width: 11px !important; height: 11px !important; }
.fold-post .pf-cell-num{ font-size: 23px; }

/* 底部按钮：42 → 34，间距 9 → 7 */
.fold-post .post-acts{ gap: 7px; margin-top: 9px; }
.fold-post .post-acts .btn{ height: 34px; font-size: 12.5px; }

/* 折叠头：这窗的弹窗抬头已经写了「发布记录与数据 / 多平台链接与互动数据」，
   下面再来一遍是重复；改成一薄条「N 条记录 + 编辑」 */
.fold-post > summary{ padding: 8px 14px; min-height: 34px; }
.fold-post .fold-title{ font-size: 12px; letter-spacing: .2px; }

/* 折叠头这条原来是「只留右上角一个编辑按钮、标题整行隐藏」，左边空一大片。
   现在左边报条数、右边放按钮（:first-child 那条用了 display:none，这里放开） */
.modal-extra #f-posts-fold > summary{
  justify-content: space-between !important;
  padding: 0 0 8px !important;
}
.modal-extra #f-posts-fold > summary > span:first-child{
  display: inline-block;
  font-size: 12px; font-weight: 800; letter-spacing: .2px;
  color: var(--mc-ink-2);
}
/* select 跟着行高压：默认的 UA 高度会把这一行撑到 32 */
.fold-post .post-plat{ height: 26px; padding: 0 9px; line-height: 24px; }
/* .btn-sm 在触屏下被抬到 38，这里按本面板的尺寸压回 34 */
.fold-post .post-acts .btn{ height: 34px; min-height: 34px; padding: 0 8px; }

/* 5 个按钮排 2 列时，最后那个「复制全部到 Excel」会孤零零占半格、右边空一片；
   让它横跨整行，收成一个「整批动作」条 */
.fold-post .post-acts .btn-xls{ grid-column: 1 / -1; }

/* ============================================================
   V7.19：平台改成自绘小菜单
   ------------------------------------------------------------
   原生 <select> 在手机上弹的是一整块灰板（四行大字、左边勾、还压着
   半张卡片）。这里换成贴着胶囊下沿的小菜单：32 高一行、平台色小方块
   + 右侧勾，跟卡片同一套奶咖配色。菜单挂在 .post-row 里绝对定位，
   不走 fixed —— 键盘弹起时不会飞到屏幕顶上。
   ============================================================ */
.fold-post .post-row{ position: relative; }

/* 胶囊从 <select> 换成 <button>：宽度固定、文字与箭头各站一边 */
.fold-post .post-plat{
  display: inline-flex; align-items: center; justify-content: space-between; gap: 6px;
  min-width: 86px; padding: 0 8px 0 10px;
  font-family: inherit; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .15s, background .15s;
}
.fold-post .post-plat:active{ background: #EADFCF !important; }
.pp-caret{ width: 12px; height: 12px; flex: 0 0 12px; opacity: .55; }

/* 小菜单 */
.pp-menu{
  position: absolute; z-index: 40;
  display: flex; flex-direction: column; gap: 1px;
  min-width: 132px; padding: 4px;
  background: var(--mc-card);
  border: 1px solid var(--mc-line);
  border-radius: 12px;
  box-shadow: 0 16px 34px -18px rgba(70,58,46,.5), 0 2px 8px rgba(70,58,46,.06);
  animation: ppIn .13s ease;
}
@keyframes ppIn{ from{ opacity: 0; transform: translateY(-4px); } }
.pp-opt{
  display: flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 8px; border: 0; border-radius: 8px;
  background: transparent; color: var(--mc-ink);
  font-family: inherit; font-size: 12.5px; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.pp-opt:active{ background: #F1EAE0; }
@media (hover: hover){ .pp-opt:hover{ background: #F4EEE5; } }
[data-theme="dark"] .pp-opt:active,
[data-theme="dark"] .pp-opt:hover{ background: #3A322A; }
.pp-dot{
  width: 16px; height: 16px; flex: 0 0 16px; border-radius: 5px;
  display: grid; place-items: center;
  font-style: normal; font-size: 9.5px; font-weight: 800; color: #fff;
}
.pp-dot.p-xhs{ background: #E8283F; }
.pp-dot.p-douyin{ background: #1B1B23; }
.pp-dot.p-dianping{ background: #F58025; }
.pp-dot.p-wechat{ background: #07C160; }
.pp-check{
  margin-left: auto; width: 13px; height: 13px;
  color: var(--mc-brown); opacity: 0; transition: opacity .12s;
}
.pp-opt.is-on{ font-weight: 800; }
.pp-opt.is-on .pp-check{ opacity: 1; }

/* 菜单开着的时候，箭头翻过来 —— 不然胶囊看不出「已经展开」 */
.pp-caret{ transition: transform .15s ease; }
.fold-post .post-plat[aria-expanded="true"] .pp-caret{ transform: rotate(180deg); }
.fold-post .post-plat[aria-expanded="true"]{ border-color: var(--mc-ink-3) !important; }

/* ============================================================
   V7.20：设置页重排（分组行）
   ------------------------------------------------------------
   只借布局：卡片分组、行内「图标 + 名字 + 当前值 + 箭头」、
   内缩细线、底部一条独立的退出登录。配色仍是本项目的暖白 + 珊瑚。
   所有选择器都挂在 #setBody 下，不碰别处的 .st-* / .card。
   ============================================================ */
#setBody .st-page{ display: flex; flex-direction: column; gap: 11px; }
#setBody .st-card{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

#setBody .st-row{
  position: relative;
  display: flex; align-items: center; gap: 11px;
  width: 100%; min-height: 55px; padding: 13px 14px;
  margin: 0; border: 0; border-radius: 0;
  background: transparent; color: var(--text);
  font-family: inherit; font-size: 14.5px; font-weight: 650; line-height: 1.35;
  text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background .13s;
}
#setBody .st-row:active{ background: var(--bg-soft); }
@media (hover: hover){ #setBody .st-row:hover{ background: var(--panel-2); } }
#setBody .st-row.is-static,
#setBody .st-row.is-static:hover,
#setBody .st-row.is-static:active{ background: transparent; cursor: default; }

#setBody .st-ico{
  flex: 0 0 21px; width: 21px; height: 21px;
  display: grid; place-items: center; color: var(--text-2);
}
#setBody .st-ico svg{ width: 19px; height: 19px; }
#setBody .st-lab{
  flex: 1 1 auto; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
#setBody .st-val{
  flex: 0 0 auto; max-width: 48%;
  font-size: 12.5px; font-weight: 600; color: var(--text-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#setBody .st-chev{
  flex: 0 0 13px; width: 13px; height: 13px;
  color: var(--text-3); opacity: .75;
  transition: transform .18s ease;
}

/* 组内细线：从文字起点开始（跳过头像/图标那一段），跟参考图一致 */
#setBody .st-list > *:not(:first-child){ position: relative; }
#setBody .st-list > *:not(:first-child)::before{
  content: ''; position: absolute; top: 0; left: 46px; right: 0;
  height: 1px; background: var(--line);
}

/* 就地展开 */
#setBody .st-exp-body{ display: none; padding: 0 14px 15px; }
#setBody .st-exp.is-open .st-exp-body{ display: block; }
#setBody .st-exp.is-open > .st-row{ padding-bottom: 9px; }
#setBody .st-exp.is-open .st-chev.is-down{ transform: rotate(180deg); }
/* 选项条按自己的宽度排（不拉满）：两三个选项被拉成等分格，
   字会漂到 1/3、2/3 的位置，看着像一张表而不是一组按钮 */
#setBody .st-exp-body .cp-types{ display: inline-flex; width: auto; max-width: 100%; flex-wrap: wrap; }
#setBody .st-exp-body .cp-type{ flex: 0 0 auto; text-align: center; }
#setBody .st-note{
  margin: 9px 0 0; font-size: 11.6px; line-height: 1.72; color: var(--text-3);
}
#setBody .st-note-list{ margin: 3px 0 0; line-height: 1.95; }

/* 顶部档案卡 */
#setBody .st-me{ min-height: 78px; padding: 15px 14px; gap: 12px; }
#setBody .st-av{
  flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: var(--brand-grad-a); color: #fff;
  font-size: 17px; font-weight: 800; letter-spacing: .5px;
}
#setBody .st-av img{ width: 100%; height: 100%; object-fit: cover; display: block; }
#setBody .st-me-lab{ display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
#setBody .st-me-lab b{
  font-size: 16.5px; font-weight: 800; letter-spacing: .2px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
#setBody .st-me-lab em{
  font-style: normal; font-size: 11.8px; font-weight: 600; color: var(--text-3);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
#setBody .st-div{ height: 1px; margin-left: 70px; background: var(--line); }

/* 报价块：左边两行字 + 右边一颗胶囊（对应参考图的「体验版 / 升级套餐」） */
#setBody .st-plan{ display: flex; align-items: center; gap: 12px; padding: 13px 14px 15px; }
#setBody .st-plan-txt{ flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
#setBody .st-plan-txt b{ font-size: 13.5px; font-weight: 750; letter-spacing: .1px; }
#setBody .st-plan-txt em{ font-style: normal; font-size: 11.5px; line-height: 1.55; color: var(--text-3); }
#setBody .st-pill{
  flex: 0 0 auto; height: 32px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: 99px;
  background: var(--panel); color: var(--text);
  font-family: inherit; font-size: 12.5px; font-weight: 750;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .13s;
}
#setBody .st-pill:active{ background: var(--bg-soft); }
@media (hover: hover){ #setBody .st-pill:hover{ background: var(--panel-2); } }

/* 常驻城市：定位结果占主位，手填收进折叠 */
#setBody .st-city-auto{ display: flex; flex-direction: column; gap: 9px; }
#setBody .st-city-now{ display: flex; align-items: center; gap: 10px; }
#setBody .st-city-now b{
  flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 800; letter-spacing: .2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
#setBody .st-city-now .btn{ flex: 0 0 auto; height: 34px; min-height: 34px; }
/* 城市是怎么来的：系统定位 / 按接单记录 / 网络定位（可能不准）。
   用户被 IP 定到别的城市过一次，就会一直疑心这个字段 —— 干脆写明白。 */
#setBody .st-city-src{
  margin: -3px 0 0; font-size: 11px; line-height: 1.5; color: var(--text-3);
}
#setBody .st-city-src:empty{ display: none; }
/* 「网络定位落在广州，和你的单对不上 → 改用广州」：不闷着自己决定，
   把打架的两个结果都摆出来，想换一键换。 */
#setBody .st-city-alt{
  display: flex; align-items: center; gap: 8px;
  margin: -3px 0 0; padding: 7px 9px;
  border-radius: 10px; background: var(--panel-2);
  font-size: 11px; line-height: 1.45; color: var(--text-3);
}
#setBody .st-city-alt[hidden]{ display: none; }
#setBody .st-city-alt-t{ flex: 1 1 auto; min-width: 0; }
#setBody .st-city-swap{
  flex: 0 0 auto; height: 24px; padding: 0 9px;
  border: 1px solid var(--line); border-radius: 8px;
  background: transparent; color: var(--text-2);
  font-family: inherit; font-size: 11px; font-weight: 700;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
#setBody .st-city-swap:active{ background: var(--panel-3); }
#setBody .st-city-manual summary{
  font-size: 11.5px; color: var(--text-3); cursor: pointer;
  list-style: none; padding: 2px 0;
}
#setBody .st-city-manual summary::-webkit-details-marker{ display: none; }
#setBody .st-city-manual[open] summary{ margin-bottom: 7px; }
#setBody .st-city-manual summary::before{ content: '⌄ '; font-weight: 800; }
#setBody .st-city-manual[open] summary::before{ content: '⌃ '; }
#setBody .st-city-manual input{
  width: 100%; height: 38px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 11px;
  background: var(--panel-2); color: var(--text);
  font-family: inherit; font-size: 13px;
}

#setBody .st-pill.is-ghost{
  background: transparent; border-color: var(--line); color: var(--text-2); font-weight: 650;
}

/* 常驻城市 */
#setBody .st-city{ display: flex; gap: 8px; align-items: center; }
#setBody .st-city input{
  flex: 1 1 auto; min-width: 0; height: 38px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 11px;
  background: var(--panel-2); color: var(--text);
  font-family: inherit; font-size: 13px;
}
#setBody .st-city .btn{ flex: 0 0 auto; height: 38px; min-height: 38px; }

/* 账号行：状态文字 + 改密码，下面是说明与账号列表 */
#setBody .st-acct{ display: flex; align-items: center; gap: 10px; }
#setBody #authState{
  flex: 1 1 auto; min-width: 0;
  padding: 0; border: 0; background: none;
  font-size: 13.2px; font-weight: 750; line-height: 1.5;
}
#setBody #authState::before{
  content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px;
  border-radius: 50%; background: currentColor; opacity: .7; vertical-align: middle;
}
#setBody #authHint{ font-size: 11.6px; line-height: 1.7; }

/* 底部单独一条退出登录 */
#setBody .st-logout{
  width: 100%; min-height: 52px; margin-top: 1px;
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--panel); color: var(--red);
  font-family: inherit; font-size: 14.5px; font-weight: 750;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .13s;
}
#setBody .st-logout:active{ background: var(--red-soft); }

@media (max-width: 860px){
  #setBody .st-row{ min-height: 54px; padding: 13px 13px; }
  #setBody .st-list > *:not(:first-child)::before{ left: 45px; }
  #setBody .st-me{ padding: 14px 13px; }
  #setBody .st-plan{ padding: 12px 13px 14px; }
  #setBody .st-div{ margin-left: 69px; }
  #setBody .st-exp-body{ padding: 0 13px 14px; }
}

/* ============================================================
   V7.21（2026-12-05）· 「今日聚焦」卡头并进普通卡头那一套
   ------------------------------------------------------------
   .fc-head 还停在 styles.css 的 15px 18px 10px，V5.28 把头统一到
   16px 时只写了 .card-head —— 于是「今日聚焦」的拖动把手：
     左右各多 2px，又没吃到把手那 -4px 的抵消  →  整条比下面三张卡
     往右偏 6px；标题跟着偏 10px，第一张卡看着就「缩进去一格」。
   这里把 .fc-head 拉进同一套内边距 / 间距 / 把手外边距，顺手把
   标题字号和胡萝卜圆底补齐（之前它只有 13px 光杆胡萝卜，没有圆底）。
   ============================================================ */
.fc-head.cfd{ padding: 15px 16px 11px; gap: 10px; }
.fc-head.cfd > .card-grip{ margin-left: -4px; margin-right: -4px; padding: 0; }
.fc-head h3{ font-size: 14.5px; font-weight: 750; letter-spacing: .1px; }
.fc-head h3::before{
  width: 18px; height: 18px; margin-right: 7px; vertical-align: -4px;
  border-radius: 50%;
  background-color: color-mix(in srgb, var(--brand) 13%, transparent);
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}
@media (max-width: 420px){
  .fc-head.cfd{ gap: 8px; }
  /* 小屏标题 + 副标题改竖排，普通卡头是 2px；.fc-head.cfd .cfd-txt 那条
     （0,3,0）把 gap 又拉回 8px，副标题比别人的低 6px，把手也跟着往下沉 */
  .fc-head.cfd .cfd-txt{ gap: 2px; }
}

/* ---------------- 工作台天气条 ----------------
   一条安静的白卡：左边天气图标 + 温度，右边一句建议。
   点开在页面内展开三天，不另开窗口。 */
.wxbar{
  margin: 0 0 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 10px 24px -22px rgba(40,30,25,.5);
}
.wxbar[hidden]{ display: none; }
/* 还在取数据时的骨架：虚线、无阴影、灰字 —— 占位但不抢眼。
   取到就换真内容，三次都取不到就整条收起。 */
.wxbar.is-ghost{
  background: transparent; border-style: dashed;
  box-shadow: none;
}
.wxbar.is-ghost .wx-ico,
.wxbar.is-ghost .wx-main b{ color: var(--text-3); }
.wxbar.is-ghost .wx-main em{ color: var(--text-3); }
.wxbar.is-ghost > summary{ cursor: default; pointer-events: none; }
.wxbar > summary{
  display: flex; align-items: center; gap: 10px;
  padding: 10px 13px; cursor: pointer; list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.wxbar > summary::-webkit-details-marker{ display: none; }
.wx-ico{ flex: 0 0 26px; width: 26px; height: 26px; color: var(--brand); display: grid; place-items: center; }
.wx-ico svg{ width: 24px; height: 24px; }
.wx-main{ display: flex; align-items: baseline; gap: 7px; min-width: 0; }
.wx-main b{ font-size: 17px; font-weight: 800; letter-spacing: -.2px; }
.wx-main em{ font-style: normal; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-tip{
  margin-left: auto; flex: 0 0 auto;
  font-size: 11.5px; font-weight: 700; color: var(--brand-strong);
  background: var(--brand-soft); border-radius: 99px; padding: 3px 9px;
  white-space: nowrap;
}
.wx-chev{ flex: 0 0 14px; width: 14px; height: 14px; color: var(--text-3); transition: transform .18s; }
.wxbar[open] .wx-chev{ transform: rotate(180deg); }
.wx-days{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  padding: 0 13px 11px; border-top: 1px dashed var(--line); margin-top: -2px; padding-top: 10px;
}
.wx-day{
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--panel-2); border-radius: 11px; padding: 8px 4px;
}
.wx-day b{ font-size: 11.5px; color: var(--text-2); font-weight: 750; }
.wx-d-ico{ width: 20px; height: 20px; color: var(--brand); display: grid; place-items: center; }
.wx-d-ico svg{ width: 19px; height: 19px; }
.wx-d-t{ font-size: 13px; font-weight: 800; }
.wx-d-t i{ font-style: normal; font-size: 11px; font-weight: 600; color: var(--text-3); }
.wx-day em{ font-style: normal; font-size: 10.5px; color: var(--text-3); }
.wx-note{
  grid-column: 1 / -1; margin: 2px 0 0;
  font-size: 10px; color: var(--text-3); text-align: center;
}
@media (max-width: 860px){
  .wxbar{ margin-bottom: 10px; }
  .wx-main b{ font-size: 16px; }
}
