/* ==========================================================================
   微积分-OPC · 达人端 H5 设计令牌与响应式基线 v1（2026-11-13）
   适用范围：/m（达人端 H5 + 登录页）
   品牌 V2.0：唯一信号色 #22D3EE，极黑 #070708（改为纯色面，去掉旧蓝紫渐变）。
   绿/黄/红为功能语义色（成功/警告/错误），不作为品牌信号色。
   约束：不新增任何「必需」class，m/app.js 模板零改动；旧类名全部保留。
   ========================================================================== */

:root {
  --brand: #070708;
  --brand-2: #141a20;
  --signal: #22d3ee;
  --signal-deep: #0e7490;
  --signal-ink: #04222a;
  --ink: #161c24;
  --ink-soft: #66717f;
  --ink-faint: #8a94a6;
  --bg: #f4f6f8;
  --card: #ffffff;
  --line: #e3e8f0;
  --line-soft: #f0f2f6;
  --ok: #17864a;
  --warn: #b45309;
  --danger: #b3261e;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(7, 7, 8, .05);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }

/* --------------------------------------------------------------------------
   登录
   -------------------------------------------------------------------------- */
.login-body {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand);
  padding: 24px;
}
.login-card {
  width: 100%; max-width: 360px;
  background: var(--card); border-radius: 18px; padding: 28px 22px;
  box-shadow: 0 18px 40px rgba(7, 7, 8, .35);
}
.brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--signal); color: var(--signal-ink); font-weight: 700; flex: 0 0 auto;
}
.brand strong { display: block; font-size: 16px; }
.brand small { color: var(--ink-faint); font-size: 12px; }
.login-card h1 { font-size: 22px; margin: 0 0 4px; }
.login-card .sub { margin: 0 0 16px; color: var(--ink-faint); font-size: 13px; }
.login-card label { display: block; font-size: 13px; color: #4a5568; margin-bottom: 12px; }
.login-card input {
  width: 100%; margin-top: 6px; padding: 12px 14px;
  border: 1px solid #dde2ea; border-radius: 10px; font-size: 15px;
  max-width: 100%;
}
.dev-hint {
  background: #fff7e6; border: 1px solid #ffe0a3; color: #8a5a00;
  border-radius: 10px; padding: 10px 12px; font-size: 12px; margin-bottom: 14px;
}
.btn {
  border: 0; border-radius: 10px; padding: 12px 16px;
  font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit;
  line-height: 1.4;
}
.btn-primary { background: var(--signal); color: var(--signal-ink); width: 100%; }
.btn-primary:disabled { background: #bfeaf2; color: #4a6b74; }
.btn-ghost { background: #eef1f6; color: #34435c; }
.error { color: var(--danger); font-size: 13px; margin: 10px 0 0; }

/* --------------------------------------------------------------------------
   应用壳：顶栏 + 内容 + 底部 tabbar（安全区适配）
   -------------------------------------------------------------------------- */
.app { min-height: 100vh; padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap;
  padding: 16px 18px 10px;
  background: var(--brand); color: #fff;
}
.topbar strong { font-size: 17px; }
.topbar .user { font-size: 12px; opacity: .85; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.topbar .link-btn { background: none; border: 0; color: #cdd8f0; font-size: 12px; }

.view { padding: 14px; max-width: 680px; margin: 0 auto; min-width: 0; }
.view > * { min-width: 0; }

/* 会员卡 */
.member-card {
  background: var(--brand); color: #fff;
  border-radius: 18px; padding: 20px;
  box-shadow: 0 12px 26px rgba(7, 7, 8, .22);
  border: 1px solid rgba(34, 211, 238, .22);
}
.member-card.empty { background: #e8ecf5; color: #5a6478; box-shadow: none; border-color: transparent; }
.member-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.member-tier { font-size: 20px; font-weight: 700; color: var(--signal); }
.member-card.empty .member-tier { color: #5a6478; }
.member-days { font-size: 12px; background: rgba(255, 255, 255, .16); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.member-expiry { margin: 8px 0 16px; font-size: 12px; opacity: .85; }
.quota { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quota div { background: rgba(255, 255, 255, .1); border-radius: 12px; padding: 10px; text-align: center; min-width: 0; }
.quota strong { display: block; font-size: 20px; }
.quota span { font-size: 11px; opacity: .85; }

.panel { background: var(--card); border-radius: var(--radius-lg); padding: 16px; margin-top: 14px; box-shadow: var(--shadow); min-width: 0; }
.panel header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel h2 { font-size: 15px; margin: 0 0 4px; }
.panel header span { font-size: 12px; color: var(--ink-faint); }
.claim-list { list-style: none; margin: 10px 0 0; padding: 0; }
.claim-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--line-soft);
}
.claim-item:last-child { border-bottom: 0; }
.claim-item strong { display: block; font-size: 14px; }
.claim-item span { font-size: 12px; color: var(--ink-faint); }
.claim-item .btn { width: auto; padding: 8px 16px; font-size: 13px; flex-shrink: 0; }
.empty-line { padding: 18px 0; color: var(--ink-faint); font-size: 13px; text-align: center; }
.foot-hint { color: var(--ink-faint); font-size: 12px; line-height: 1.7; text-align: center; margin: 16px 4px; overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   任务 / 大厅 / 收益列表
   -------------------------------------------------------------------------- */
.tabs { display: flex; gap: 8px; margin-bottom: 10px; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  border: 0; background: #eef1f6; color: #55617a;
  padding: 7px 14px; border-radius: 999px; font-size: 13px;
  white-space: nowrap; flex: 0 0 auto;
}
.tab.active { background: var(--signal); color: var(--signal-ink); }
.task-list { list-style: none; margin: 0; padding: 0; }
.task-item {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 14px 2px; border-bottom: 1px solid var(--line-soft);
}
.task-item:last-child { border-bottom: 0; }
.task-main { min-width: 0; flex: 1 1 auto; }
.task-main strong { display: block; font-size: 14px; margin-bottom: 4px; overflow-wrap: anywhere; }
.task-main span { font-size: 12px; color: var(--ink-faint); }
.task-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; }
.budget { font-size: 13px; color: var(--warn); font-weight: 600; white-space: nowrap; }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.badge.pending { background: #fff2dd; color: #a86500; }
.badge.accepted { background: #e5f7ec; color: var(--ok); }
.badge.rejected { background: #f2f3f6; color: #7a8699; }
.badge.submitted { background: #e8f0ff; color: #2f6bff; }
.badge.revision { background: #fdecec; color: var(--danger); }
.badge.approved { background: #e5f7ec; color: var(--ok); }

.detail-list { margin: 12px 0; }
.detail-list div { display: flex; justify-content: space-between; gap: 10px; padding: 7px 0; font-size: 13px; }
.detail-list dt { color: var(--ink-faint); flex: 0 0 auto; }
.detail-list dd { margin: 0; font-weight: 500; min-width: 0; text-align: right; overflow-wrap: anywhere; }
.acceptance { background: #f7f9fc; border-radius: 12px; padding: 12px 14px; }
.acceptance h3 { margin: 0 0 6px; font-size: 13px; color: #55617a; }
.acceptance p { margin: 0; font-size: 13px; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.actions .btn { flex: 1 1 140px; width: auto; }
.reject-box { margin-top: 12px; }
.reject-box textarea {
  width: 100%; margin-top: 6px; padding: 10px 12px;
  border: 1px solid #dde2ea; border-radius: 10px; font-size: 14px; font-family: inherit; max-width: 100%;
}
.reject-note { background: #f2f3f6; color: #6b7588; border-radius: 10px; padding: 10px 12px; font-size: 13px; }

/* 底部导航 */
#tabbar {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; background: var(--card);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  z-index: 50;
}
.tabbar-item {
  flex: 1 1 0; min-width: 0; text-align: center; padding: 14px 2px;
  font-size: 14px; color: var(--ink-faint); text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tabbar-item.active { color: var(--signal-deep); font-weight: 600; }

.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%);
  background: rgba(7, 7, 8, .94); color: #fff;
  padding: 10px 18px; border-radius: 999px; font-size: 13px;
  max-width: calc(100% - 32px); text-align: center; z-index: 80;
}
.toast.err { background: rgba(179, 38, 30, .94); }
.toast.ok { background: rgba(23, 134, 74, .94); }

/* --------------------------------------------------------------------------
   提示 / 通知中心
   -------------------------------------------------------------------------- */
.notice {
  background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--signal-deep);
  border-radius: 12px; padding: 10px 12px; font-size: 13px; margin: 0 0 12px;
}
.notice.warn { background: #fffbeb; border-color: #fde68a; border-left-color: #d97706; }
.notice.err { background: #fff5f5; border-color: #ffd0d0; border-left-color: var(--danger); color: var(--danger); }
.notice strong { display: block; font-size: 13px; margin-bottom: 2px; }
.notice span { color: var(--ink-soft); font-size: 12px; overflow-wrap: anywhere; }
/* v24：课程安排这类「一行一条」的信息块，span 必须独占一行，否则会挤成一团 */
.notice-lines span { display: block; margin-top: 3px; }
.notice-lines span:first-of-type { margin-top: 2px; }

.bell { position: relative; background: rgba(255, 255, 255, .14); border: 0; color: #fff; font-size: 12px; padding: 4px 10px; border-radius: 8px; cursor: pointer; }
.badge-count {
  position: absolute; top: -6px; right: -6px; background: var(--danger); color: #fff;
  font-size: 10px; line-height: 1; min-width: 16px; height: 16px;
  border-radius: 8px; display: grid; place-items: center; padding: 0 4px;
}
.notif-panel {
  position: fixed; top: 56px; right: 12px;
  width: min(360px, calc(100% - 24px)); max-height: 70vh; overflow: auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 16px 40px rgba(7, 7, 8, .22); z-index: 60;
}
.notif-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); }
.notif-head strong { font-size: 14px; }
.notif-list { list-style: none; margin: 0; padding: 0; }
.notif-item { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); cursor: pointer; }
.notif-item.unread { background: #f2fbfd; }
.notif-item.high { border-left: 3px solid var(--danger); }
.notif-item.read { opacity: .6; }
.notif-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.notif-body { font-size: 12px; color: var(--ink-soft); margin: 4px 0; overflow-wrap: anywhere; }
.notif-time { font-size: 11px; color: var(--ink-faint); }
.notif-empty { padding: 22px; text-align: center; color: var(--ink-faint); font-size: 13px; }

/* --------------------------------------------------------------------------
   交付与验收
   -------------------------------------------------------------------------- */
a.link-btn { display: block; text-align: center; text-decoration: none; }
.deliver-task { font-size: 13px; color: #6b7588; margin: 6px 0 12px; overflow-wrap: anywhere; }
#deliver-form { margin-top: 14px; }
#deliver-form label { display: block; font-size: 13px; color: #4a5568; margin-bottom: 12px; }
#deliver-form input, #deliver-form textarea {
  width: 100%; margin-top: 6px; padding: 11px 12px;
  border: 1px solid #dde2ea; border-radius: 10px; font-size: 14px; font-family: inherit; max-width: 100%;
}
.versions { margin-top: 8px; }
.version { border-top: 1px solid var(--line-soft); padding: 12px 0; }
.version:first-child { border-top: 0; }
.version-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.version-head strong { font-size: 14px; }
.version-head span { font-size: 11px; color: var(--ink-faint); }
.version-summary { font-size: 13px; line-height: 1.6; margin: 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.work-link { display: block; font-size: 12px; color: var(--signal-deep); word-break: break-all; }
.review-box { margin-top: 10px; border-radius: 10px; padding: 10px 12px; font-size: 12px; }
.review-box.ok { background: #e9f8f0; color: var(--ok); }
.review-box.bad { background: #fdecec; color: var(--danger); }
.review-box strong { font-size: 13px; }
.review-box p { margin: 6px 0; color: #3c4657; line-height: 1.6; }
.review-box .reviewer { color: var(--ink-faint); }
.checklist { list-style: none; margin: 6px 0 0; padding: 0; }
.checklist li { font-size: 12px; line-height: 1.8; }
.checklist .pass { color: var(--ok); }
.checklist .fail { color: var(--danger); }
.waiting { font-size: 12px; color: var(--ink-faint); margin-top: 10px; }
.log-list { list-style: none; margin: 8px 0 0; padding: 0; }
.log-list li { padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
.log-list li:last-child { border-bottom: 0; }
.log-to { font-weight: 600; margin-right: 8px; }
.log-meta { color: var(--ink-faint); }
.log-note { display: block; color: #55617a; margin-top: 4px; overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   接单大厅 / 服务分与收益
   -------------------------------------------------------------------------- */
.pool-list { list-style: none; margin: 8px 0 0; padding: 0; }
.pool-item { border-top: 1px solid var(--line-soft); padding: 14px 0; }
.pool-item:first-child { border-top: 0; }
.pool-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pool-head strong { font-size: 15px; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.pool-head .budget { color: var(--warn); font-weight: 600; white-space: nowrap; }
.pool-meta { margin: 6px 0 0; font-size: 12px; color: var(--ink-faint); }
.pool-desc { margin: 8px 0 0; font-size: 13px; line-height: 1.6; color: #3c4657; white-space: pre-wrap; overflow-wrap: anywhere; }
.pool-acceptance { margin: 8px 0 0; font-size: 12px; line-height: 1.6; color: #55617a; background: #f7f8fb; border-radius: 8px; padding: 8px 10px; overflow-wrap: anywhere; }
.pool-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.pool-time { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.pool-take { width: auto; padding: 8px 22px; }
.empty-line { padding: 24px 0; text-align: center; font-size: 13px; color: var(--ink-faint); }
.foot-hint { margin: 12px 0 0; font-size: 11px; color: var(--ink-faint); }

.score-hero {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  background: #eaf9fc; border: 1px solid rgba(34, 211, 238, .28);
  border-radius: 12px; padding: 14px 16px; margin-top: 10px;
}
.score-hero strong { font-size: 30px; color: var(--signal-deep); line-height: 1; }
.score-hero span { font-size: 12px; color: #6b7790; }
.earn-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0 4px; }
.earn-metrics div { background: #f7f8fb; border-radius: 10px; padding: 10px 6px; text-align: center; min-width: 0; }
.earn-metrics strong { display: block; font-size: 16px; color: var(--ink); }
.earn-metrics span { display: block; margin-top: 4px; font-size: 11px; color: var(--ink-faint); }
.earning-list { list-style: none; margin: 8px 0 0; padding: 0; }
.earning-item { border-top: 1px solid var(--line-soft); padding: 14px 0; cursor: pointer; }
.earning-item:first-child { border-top: 0; }
.earning-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.earning-head strong { font-size: 15px; line-height: 1.4; min-width: 0; overflow-wrap: anywhere; }
.earning-head .budget { color: var(--warn); font-weight: 600; white-space: nowrap; }
.earning-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--ink-faint); }
.mutual-form { margin-top: 8px; }
.mutual-form label { display: block; font-size: 13px; color: #4a5568; margin-bottom: 10px; }
.mutual-form select, .mutual-form textarea {
  width: 100%; margin-top: 6px; padding: 10px 12px;
  border: 1px solid #dde2ea; border-radius: 10px; font-size: 14px; font-family: inherit; max-width: 100%;
}

/* v13：派单时限与直购 */
.deadline-live { color: var(--warn); font-weight: 500; }
.deadline-urgent { color: var(--danger); font-weight: 600; }
.deadline-passed { color: var(--danger); }
.dispatch-meta { display: block; margin-top: 4px; font-size: 11px; line-height: 1.5; color: var(--ink-faint); overflow-wrap: anywhere; }
.claim-item .btn { flex-shrink: 0; }
.pay-order { margin-left: 8px; padding: 2px 10px; font-size: 12px; }

/* --------------------------------------------------------------------------
   响应式断点
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .topbar { padding: 12px 14px 8px; }
  .view { padding: 12px; }
  .panel { padding: 14px; border-radius: 14px; }
  .member-card { padding: 16px; border-radius: 14px; }
  .member-tier { font-size: 18px; }
  .quota { gap: 6px; }
  .quota div { padding: 8px 4px; }
  .quota strong { font-size: 18px; }
  .earn-metrics strong { font-size: 15px; }
}

@media (max-width: 380px) {
  .topbar strong { font-size: 15px; }
  .tabbar-item { font-size: 12px; padding: 12px 2px; }
  .btn { font-size: 14px; padding: 11px 12px; }
  .actions .btn { flex: 1 1 100%; }
  .score-hero strong { font-size: 26px; }
  .notif-panel { top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   v17：我的认证（达人端）
   ========================================================================== */
.cert-list { list-style: none; margin: 0; padding: 0; }
.cert-item {
  padding: 12px 0; border-top: 1px solid var(--line-soft, #eef1f6);
  display: flex; flex-direction: column; gap: 4px; min-width: 0;
}
.cert-item:first-child { border-top: 0; padding-top: 4px; }
.cert-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.cert-head strong { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.cert-badge {
  display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px;
  background: rgba(34, 211, 238, .12); color: var(--signal-deep);
  font-size: 11px; font-weight: 600; white-space: nowrap;
}
.cert-no {
  font-size: 12px; color: var(--ink-soft);
  font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.cert-meta { font-size: 11px; color: var(--ink-faint); line-height: 1.5; overflow-wrap: anywhere; }
.log-to.bad { color: var(--danger, #d64545); }

/* ==========================================================================
   v18：履约信任闭环（沟通 / 附件 / 争议）
   ========================================================================== */
.chat-list {
  list-style: none; margin: 0; padding: 0; max-height: 320px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
}
.chat-item {
  background: var(--bg); border-radius: 10px; padding: 9px 12px; max-width: 88%;
  align-self: flex-start; min-width: 0;
}
.chat-item.mine { align-self: flex-end; background: rgba(34, 211, 238, .12); }
.chat-item.system {
  align-self: center; max-width: 100%; background: transparent;
  border: 1px dashed var(--line); color: var(--ink-faint);
}
.chat-meta {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 11px; color: var(--ink-faint); margin-bottom: 3px;
}
.chat-body { margin: 0; font-size: 13px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.chat-item.system .chat-body { font-size: 12px; color: var(--ink-faint); }
.chat-form { display: flex; gap: 8px; margin-top: 12px; }
.chat-form input { flex: 1 1 auto; min-width: 0; }
.chat-form .btn { flex: 0 0 auto; width: auto; padding-inline: 16px; }

.file-list { list-style: none; margin: 8px 0 0; padding: 0; }
.file-list li {
  display: flex; justify-content: space-between; gap: 10px; align-items: baseline;
  padding: 6px 0; border-bottom: 1px solid var(--line-soft, #eef1f6); font-size: 12px;
}
.file-list li:last-child { border-bottom: 0; }
.file-list a { color: var(--signal-deep); text-decoration: none; overflow-wrap: anywhere; min-width: 0; }
.file-list a:hover { text-decoration: underline; }
.file-size { color: var(--ink-faint); font-size: 11px; white-space: nowrap; }
.file-queue { list-style: none; margin: 6px 0 0; padding: 0; font-size: 12px; color: var(--ink-soft); }
.file-queue li { padding: 3px 0; overflow-wrap: anywhere; }
.block-title { font-size: 13px; margin: 16px 0 6px; color: var(--ink); }
.panel.dispute { border-left: 3px solid var(--signal); }
.evidence-pick {
  display: block; margin-top: 10px; font-size: 12px; color: var(--ink-soft);
}
.evidence-pick input[type="file"] { margin-top: 6px; font-size: 12px; }

/* ==========================================================================
   v19：暂停接单 / 恢复接单（M-10 / M-11）与接单偏好（M-07）
   ========================================================================== */
.pause-btn {
  background: rgba(34, 211, 238, .18); border: 1px solid rgba(34, 211, 238, .55);
  color: #c8f7ff; font-size: 12px; padding: 4px 10px; border-radius: 8px;
  cursor: pointer; white-space: nowrap;
}
.pause-btn:hover { background: rgba(34, 211, 238, .28); }
.pause-btn.paused {
  background: rgba(245, 158, 11, .2); border-color: rgba(245, 158, 11, .6); color: #ffe1a8;
}

/* 暂停中提示条 */
.paused-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: #fff7e6; border: 1px solid #f3d08a; color: #8a5a00;
  border-radius: var(--radius); padding: 10px 12px; margin-bottom: 12px; font-size: 12px;
}
.paused-banner strong { font-size: 13px; }
.paused-banner .btn { width: auto; padding-inline: 14px; margin-left: auto; }

/* 底部抽屉（暂停时长选择） */
.sheet-mask {
  position: fixed; inset: 0; z-index: 80; background: rgba(7, 7, 8, .5);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet {
  width: min(520px, 100%); background: var(--card); color: var(--ink);
  border-radius: 18px 18px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
  box-shadow: 0 -12px 40px rgba(7, 7, 8, .3);
}
.sheet h3 { margin: 0 0 6px; font-size: 16px; }
.sheet-hint { margin: 0 0 14px; font-size: 12px; color: var(--ink-soft); }
.sheet-hours { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip {
  background: var(--bg); border: 1px solid var(--line); color: var(--ink-soft);
  font-size: 12px; padding: 6px 12px; border-radius: 999px; cursor: pointer;
}
.chip.on { background: rgba(34, 211, 238, .16); border-color: var(--signal); color: var(--signal-deep); font-weight: 600; }
.sheet-actions { display: flex; gap: 10px; margin-top: 16px; }
.sheet-actions .btn { flex: 1 1 0; width: auto; }
.btn.ghost { background: var(--bg); color: var(--ink-soft); border: 1px solid var(--line); }

/* 接单偏好页 */
.pref-grid { display: grid; gap: 12px; }
.pref-row { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.pref-row:last-child { border-bottom: 0; }
.pref-row .pref-label { font-size: 13px; }
.pref-row .pref-label small { display: block; color: var(--ink-faint); font-size: 11px; font-weight: 400; }
.pref-row input[type="number"] { width: 96px; text-align: right; }
.cat-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.cat-picker .chip { user-select: none; }
.pref-note { font-size: 11px; color: var(--ink-faint); margin: 8px 0 0; }
.stat-strip { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.stat-strip > div {
  flex: 1 1 90px; background: var(--bg); border-radius: 10px; padding: 10px 12px; text-align: center;
}
.stat-strip strong { display: block; font-size: 18px; line-height: 1.2; }
.stat-strip span { font-size: 11px; color: var(--ink-faint); }

/* ==========================================================================
   v20：新增页面组件（合同正文弹层、徽标、日志备注）
   ========================================================================== */
.badge.ok { background: #e8f7f1; color: #0f7a5f; }
.badge.pending { background: #fff2dd; color: #a86500; }
.log-note { color: var(--ink-soft); margin-top: 3px; overflow-wrap: anywhere; }
.detail-list div span { color: var(--ink-faint); flex: 0 0 auto; font-size: 13px; }
.detail-list div strong { font-weight: 500; min-width: 0; text-align: right; overflow-wrap: anywhere; }

.msheet-mask {
  position: fixed; inset: 0; z-index: 80; background: rgba(7, 7, 8, .5);
  display: flex; align-items: flex-end; justify-content: center; overflow-y: auto;
}
.msheet {
  width: min(680px, 100%); background: var(--card); color: var(--ink);
  border-radius: 18px 18px 0 0; display: flex; flex-direction: column;
  max-height: calc(100vh - 40px);
  box-shadow: 0 -12px 40px rgba(7, 7, 8, .3);
}
.msheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.msheet-head h3 { margin: 0; font-size: 16px; }
.msheet-head p { margin: 4px 0 0; font-size: 12px; color: var(--ink-faint); }
.msheet-body { padding: 14px 16px calc(20px + env(safe-area-inset-bottom)); overflow: auto; }
.btn-sm { font-size: 12px; padding: 4px 10px; border-radius: 8px; }
