:root {
  --bg: #0e1120;
  --bg2: #151a2c;
  --bg3: #1c2338;
  --ink: #eef1f8;
  --muted: #9aa3bd;
  --rule: #2a3350;
  --accent: #7c9cff;
  --accent2: #f0b46a;
  --good: #56d6a0;
  --warn: #f2c14e;
  --bad: #ff7a7a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  background: radial-gradient(1200px 600px at 70% -10%, #1b2542 0%, var(--bg) 55%) no-repeat, var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100%;
}

body { padding-bottom: 84px; }

a { color: var(--accent); text-decoration: none; }
button { font-family: inherit; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(14, 17, 32, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(140deg, #2b3b6b, #6f8ff0);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 0 18px rgba(124, 156, 255, 0.35);
}
.brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand-txt strong { font-size: 15px; letter-spacing: 0.02em; }
.brand-txt small { color: var(--muted); font-size: 11px; letter-spacing: 0.08em; }

.top-actions { display: flex; align-items: center; gap: 6px; }
.user-chip {
  display: inline-flex;
  align-items: center;
  max-width: 104px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--bg2);
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.drawer-user { margin: 0 0 6px; font-size: 12px; }
.drawer-user small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.role-select {
  background: var(--bg2);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 9px;
  padding: 5px 6px;
  font-size: 12px;
  max-width: 96px;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--rule);
  background: var(--bg2);
  color: var(--ink);
  font-size: 16px;
  cursor: pointer;
}

button.chip { min-height: 36px; padding: 6px 12px; font-size: 12px; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  border: 1px solid var(--rule);
  color: var(--muted);
  white-space: nowrap;
}
.badge-rule { border-color: rgba(124, 156, 255, 0.4); color: #a9bcff; background: rgba(124, 156, 255, 0.08); }
.badge-p0 { color: #ffd2a1; border-color: rgba(240, 180, 106, 0.45); background: rgba(240, 180, 106, 0.1); }
.badge-p1 { color: #a9bcff; border-color: rgba(124, 156, 255, 0.35); background: rgba(124, 156, 255, 0.08); }
.badge-ok { color: var(--good); border-color: rgba(86, 214, 160, 0.45); background: rgba(86, 214, 160, 0.08); }
.badge-warn { color: var(--warn); border-color: rgba(242, 193, 78, 0.45); background: rgba(242, 193, 78, 0.08); }
.badge-bad { color: var(--bad); border-color: rgba(255, 122, 122, 0.45); background: rgba(255, 122, 122, 0.08); }

.demo-strip {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 6px 16px;
  font-size: 11px;
  color: #b9c3de;
  background: rgba(240, 180, 106, 0.08);
  border-bottom: 1px solid rgba(240, 180, 106, 0.16);
  overflow: hidden;
  white-space: nowrap;
}
.demo-strip .dot { opacity: 0.5; }

.view {
  max-width: 820px;
  margin: 0 auto;
  padding: 16px 16px 24px;
}

.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 22px 0 10px;
}
.section-title h2 { margin: 0; font-size: 16px; letter-spacing: 0.02em; }
.section-title small { color: var(--muted); font-size: 11px; }

.card {
  background: linear-gradient(160deg, rgba(30, 37, 61, 0.9), rgba(21, 26, 44, 0.95));
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}
.card.flat { background: var(--bg2); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.card-head h3 { margin: 0; font-size: 14px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid-4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

.hero { padding: 18px 16px; }
.hero h1 { margin: 0 0 4px; font-size: 20px; letter-spacing: 0.01em; }
.hero p { margin: 0; color: var(--muted); font-size: 13px; }

.kpi { background: var(--bg2); border: 1px solid var(--rule); border-radius: 12px; padding: 10px 12px; }
.kpi .kpi-label { color: var(--muted); font-size: 11px; }
.kpi .kpi-num { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-top: 2px; }
.kpi .kpi-num small { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 3px; }
.kpi .kpi-delta { font-size: 11px; margin-top: 2px; }
.good { color: var(--good); }
.bad { color: var(--bad); }
.warn { color: var(--warn); }
.accent { color: var(--accent); }
.accent2 { color: var(--accent2); }

.light {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: var(--bg2);
  font-size: 12px;
}
.light .lamp { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.light.green .lamp { background: var(--good); box-shadow: 0 0 10px rgba(86, 214, 160, 0.6); }
.light.yellow .lamp { background: var(--warn); box-shadow: 0 0 10px rgba(242, 193, 78, 0.6); }
.light.red .lamp { background: var(--bad); box-shadow: 0 0 10px rgba(255, 122, 122, 0.6); }
.light b { font-weight: 600; }
.light small { color: var(--muted); display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid var(--rule);
  background: var(--bg3);
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, #5f7fe8, #8aa6ff); border-color: transparent; color: #0d1226; font-weight: 700; }
.btn-ghost { background: transparent; }
.btn-warm { background: linear-gradient(135deg, #f0b46a, #f6cf9b); border-color: transparent; color: #2a1c08; font-weight: 700; }
.btn-sm { min-height: 32px; padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.chips { display: flex; gap: 7px; flex-wrap: wrap; }
.chip {
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--bg2);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.chip.active { border-color: rgba(124, 156, 255, 0.65); color: #cfdbff; background: rgba(124, 156, 255, 0.12); }

.progress { height: 6px; background: #222b45; border-radius: 999px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, #6f8ff0, #9fb6ff); border-radius: 999px; }
.progress.warm i { background: linear-gradient(90deg, #f0b46a, #f7d4a2); }

.phase { border: 1px solid var(--rule); border-radius: 12px; margin-bottom: 10px; overflow: hidden; background: rgba(20, 25, 42, 0.7); }
.phase-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 11px 12px; background: rgba(34, 43, 69, 0.5); }
.phase-head h3 { margin: 0; font-size: 13px; }
.phase-body { padding: 10px 12px 12px; }
.task { display: flex; align-items: flex-start; gap: 9px; padding: 8px 0; border-bottom: 1px dashed rgba(42, 51, 80, 0.7); }
.task:last-child { border-bottom: 0; }
.task input[type="checkbox"] { width: 17px; height: 17px; margin-top: 2px; accent-color: #7c9cff; flex: none; }
.task .task-main { flex: 1; min-width: 0; }
.task .task-main b { font-weight: 500; font-size: 13px; }
.task.done .task-main b { color: var(--muted); text-decoration: line-through; }
.task .task-meta { color: var(--muted); font-size: 11px; margin-top: 2px; }

.gate { border-top: 1px solid var(--rule); margin-top: 6px; padding-top: 8px; }
.gate-row { display: flex; align-items: flex-start; gap: 7px; font-size: 12px; padding: 2px 0; }
.gate-row .g { width: 14px; flex: none; text-align: center; }
.gate-row.ok .g { color: var(--good); }
.gate-row.no .g { color: var(--bad); }

.q-card { border-bottom: 1px solid rgba(42, 51, 80, 0.6); padding: 12px 0; }
.q-card:last-child { border-bottom: 0; }
.q-card .q-ask { font-size: 13px; margin-bottom: 3px; }
.q-card .q-evidence { font-size: 11px; color: var(--muted); margin-bottom: 8px; }
.scale { display: flex; gap: 5px; }
.scale-btn {
  flex: 1;
  padding: 6px 0;
  border-radius: 8px;
  border: 1px solid var(--rule);
  background: var(--bg2);
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.scale-btn.active { background: rgba(124, 156, 255, 0.18); border-color: rgba(124, 156, 255, 0.75); color: #dfe7ff; font-weight: 700; }
.scale-legend { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-top: 3px; }

.form-row { margin-bottom: 10px; }
.form-row label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
input[type="text"], input[type="number"], select, textarea {
  width: 100%;
  background: var(--bg2);
  border: 1px solid var(--rule);
  border-radius: 9px;
  color: var(--ink);
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
}
textarea { min-height: 70px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: rgba(124, 156, 255, 0.6); }
.check-line { display: flex; gap: 8px; align-items: flex-start; font-size: 12px; padding: 6px 0; }
.check-line input { margin-top: 3px; accent-color: #ff7a7a; }

.table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table th { text-align: left; color: var(--muted); font-weight: 500; padding: 6px 4px; border-bottom: 1px solid var(--rule); white-space: nowrap; }
.table td { padding: 7px 4px; border-bottom: 1px dashed rgba(42, 51, 80, 0.6); }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

.bars { display: flex; align-items: flex-end; gap: 6px; height: 86px; padding-top: 6px; }
.bars .bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 4px; height: 100%; }
.bars .bar i { display: block; width: 100%; max-width: 30px; border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #7c9cff, #3d54a0); min-height: 3px; }
.bars .bar.base i { background: linear-gradient(180deg, #4a5578, #2b3350); }
.bars .bar span { font-size: 9px; color: var(--muted); white-space: nowrap; }

.chat-box { height: 340px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 4px 2px; }
.msg { max-width: 86%; padding: 9px 11px; border-radius: 12px; font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.msg.customer { align-self: flex-end; background: linear-gradient(135deg, #4d68c9, #6c87ee); color: #fff; border-bottom-right-radius: 4px; }
.msg.agent { align-self: flex-start; background: var(--bg3); border: 1px solid var(--rule); border-bottom-left-radius: 4px; }
.msg.human { align-self: flex-start; background: rgba(240, 180, 106, 0.12); border: 1px solid rgba(240, 180, 106, 0.35); border-bottom-left-radius: 4px; }
.msg .msg-meta { display: block; font-size: 10px; color: var(--muted); margin-top: 4px; }
.composer { display: flex; gap: 8px; align-items: flex-end; margin-top: 10px; }
.composer textarea { min-height: 44px; max-height: 120px; }
.handoff-banner { border: 1px solid rgba(255, 122, 122, 0.4); background: rgba(255, 122, 122, 0.08); border-radius: 10px; padding: 10px; font-size: 12px; margin-top: 8px; }
.handoff-banner.l1 { border-color: rgba(242, 193, 78, 0.4); background: rgba(242, 193, 78, 0.08); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  transform: translateX(-50%);
  background: #263154;
  border: 1px solid #3d4c7d;
  color: var(--ink);
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 12px;
  z-index: 60;
  box-shadow: var(--shadow);
  max-width: 86vw;
  text-align: center;
}

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: space-around;
  padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
  background: rgba(16, 20, 36, 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--rule);
}
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  font-size: 10px;
  color: #7d87a5;
  padding: 2px 8px;
  border-radius: 10px;
}
.tabbar a .tab-ico { font-size: 16px; line-height: 1.2; }
.tabbar a.active { color: #bed0ff; background: rgba(124, 156, 255, 0.1); }

.drawer-mask { position: fixed; inset: 0; background: rgba(4, 6, 14, 0.6); z-index: 40; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 86vw);
  z-index: 50;
  background: #131829;
  border-left: 1px solid var(--rule);
  padding: 14px;
  overflow-y: auto;
  box-shadow: var(--shadow);
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-weight: 700; }
.drawer-link {
  display: flex;
  flex-direction: column;
  padding: 11px 10px;
  border-radius: 10px;
  color: var(--ink);
  border: 1px solid transparent;
}
.drawer-link:hover { background: var(--bg2); border-color: var(--rule); }
.drawer-link small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.drawer-foot { margin-top: 16px; border-top: 1px solid var(--rule); padding-top: 10px; font-size: 11px; color: var(--muted); }

.empty { text-align: center; padding: 26px 14px; color: var(--muted); font-size: 13px; }
.empty b { display: block; color: var(--ink); margin-bottom: 4px; font-size: 14px; }

.tag { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--bg3); border: 1px solid var(--rule); font-size: 10px; color: var(--muted); margin: 0 4px 4px 0; }
.story { border-left: 3px solid var(--accent2); padding: 4px 0 4px 10px; font-size: 12px; color: #d6dcee; }

.score-ring { display: flex; align-items: center; gap: 14px; }
.ring {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--accent) calc(var(--pct) * 1%), #232c47 0);
  flex: none;
}
.ring > div {
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: #131a2e;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.ring b { font-size: 22px; line-height: 1; }
.ring small { font-size: 10px; color: var(--muted); }

.dim-row { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 5px 0; }
.dim-row .dim-name { width: 92px; flex: none; color: var(--muted); }
.dim-row .progress { flex: 1; }
.dim-row .dim-score { width: 42px; text-align: right; font-variant-numeric: tabular-nums; }

.module { border-bottom: 1px solid rgba(42, 51, 80, 0.6); padding: 10px 0; }
.module:last-child { border-bottom: 0; }
.module summary { cursor: pointer; font-size: 13px; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
.module summary::-webkit-details-marker { display: none; }
.module .module-body { padding-top: 8px; font-size: 12px; color: #ccd4e8; }
.module .module-body p { margin: 5px 0; }
.module .module-body b { color: var(--ink); }

.week-report { border-left: 2px solid var(--rule); padding-left: 10px; margin-bottom: 12px; }

@media (min-width: 720px) {
  body { padding-bottom: 24px; }
  .view { padding: 22px 20px 40px; }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tabbar {
    position: sticky;
    bottom: auto;
    top: 58px;
    border-bottom: 1px solid var(--rule);
    border-top: 0;
    padding: 0;
    background: rgba(14, 17, 32, 0.92);
  }
  .tabbar a { padding: 10px 18px; font-size: 12px; flex-direction: row; gap: 6px; }
  .hero { padding: 22px 20px; }
  .hero h1 { font-size: 24px; }
}

/* ---------- 多店 / 总部 ---------- */
.store-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(19, 24, 41, 0.95);
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
  overflow-x: auto;
  white-space: nowrap;
}
.store-bar .store-label { color: var(--muted); flex: none; }
.store-bar select {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 12px;
  font-family: inherit;
  max-width: 210px;
}
.store-bar .store-link { margin-left: auto; color: var(--accent); text-decoration: none; font-weight: 600; }

.hq-store { background: var(--bg2); border: 1px solid var(--rule); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.hq-store.flagship { border-color: rgba(124, 156, 255, 0.55); }
.hq-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.hq-head b { font-size: 14px; display: block; }
.hq-head small { color: var(--muted); font-size: 11px; }
.hq-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 12px 0 10px; }
.hq-metrics div { background: var(--bg); border: 1px solid var(--rule); border-radius: 9px; padding: 8px; text-align: center; }
.hq-metrics span { display: block; font-size: 10px; color: var(--muted); }
.hq-metrics b { font-size: 17px; letter-spacing: -0.02em; }
.hq-metrics b small { font-size: 10px; color: var(--muted); font-weight: 400; margin-left: 1px; }
.hq-nodata { font-size: 12px; color: var(--muted); padding: 14px 0; }
.hq-gap { font-size: 11px; color: var(--accent2); margin: 6px 0 10px; line-height: 1.6; }
.hq-gap.flagship { color: var(--muted); }

.rep-bars { display: flex; flex-direction: column; gap: 5px; margin: 8px 0; }
.rep-bar { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.rep-bar span { width: 62px; flex: none; }
.rep-bar .progress { flex: 1; }
.rep-bar b { width: 34px; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; }

.rep-item { display: flex; align-items: flex-start; gap: 9px; padding: 9px 0; border-bottom: 1px dashed rgba(42, 51, 80, 0.6); cursor: pointer; }
.rep-item:last-child { border-bottom: 0; }
.rep-item input { width: 18px; height: 18px; margin: 1px 0 0; flex: none; accent-color: #7c9cff; }
.rep-item b { display: block; font-size: 13px; font-weight: 500; }
.rep-item small { color: var(--muted); font-size: 11px; }
.rep-item.done b { color: var(--muted); text-decoration: line-through; }

.rep-finding { border: 1px solid var(--rule); border-radius: 9px; padding: 9px 10px; margin-top: 8px; }
.rep-finding.open { border-left: 3px solid #d34b4b; }
.rep-finding.closed { border-left: 3px solid #1fa564; opacity: 0.75; }
.mini-btn {
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
.mini-btn:hover { border-color: var(--accent); color: var(--accent); }

@media (max-width: 420px) {
  .hq-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

[hidden] { display: none !important; }

/* 站内消息与待办 */
.inbox-btn { position: relative; }
.inbox-badge { position: absolute; top: 2px; right: 2px; min-width: 15px; height: 15px; padding: 0 3px; border-radius: 999px; background: #e05a45; color: #fff; font-size: 9px; line-height: 15px; text-align: center; }
.notice-urgent { border-color: rgba(224, 90, 69, .55); box-shadow: inset 3px 0 0 #e05a45; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 420px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .grid-3 .card { padding: 9px; } }

/* 本周 3 件事 */
.advice-card { border-left: 3px solid rgba(124, 156, 255, .45); }
.advice-title { margin: 8px 0 0; font-size: 15px; line-height: 1.45; }
.advice-block { margin-top: 10px; padding: 9px 11px; border-radius: 9px; background: var(--bg2); border: 1px solid var(--rule); }
.advice-block b { display: block; font-size: 11px; color: var(--muted); font-weight: 500; margin-bottom: 3px; }
.advice-block p { margin: 0; font-size: 12.5px; line-height: 1.65; }
.advice-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.advice-meta b { color: var(--ink); }
.advice-review { margin-top: 10px; padding: 8px 10px; border-radius: 9px; border: 1px dashed var(--rule); background: rgba(240, 180, 106, .06); }
.advice-review p { margin: 5px 0 0; font-size: 12px; color: var(--muted); line-height: 1.6; }
.advice-assign { margin-top: 12px; align-items: stretch; }
.advice-assign select { flex: 1 1 140px; min-width: 0; }
.advice-assign input[type="date"] { flex: 0 1 140px; min-width: 0; background: var(--bg2); border: 1px solid var(--rule); border-radius: 9px; color: var(--ink); padding: 8px 10px; font-size: 12px; font-family: inherit; }
.advice-fill { margin-top: 10px; }
.advice-fill summary { cursor: pointer; font-size: 12px; color: var(--muted); }
.advice-fill textarea { width: 100%; margin: 8px 0; }

/* 系统自检 */
.check-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px dashed rgba(42, 51, 80, .6); }
.check-item:first-of-type { border-top: 0; }
.check-item .light { flex: 1; min-width: 0; }
.check-item .light small { font-size: 11px; line-height: 1.55; }
@media (max-width: 420px) {
  .advice-assign select, .advice-assign input[type="date"] { flex: 1 1 100%; }
  .check-item { flex-wrap: wrap; }
}

/* OCR 待核对：一屏清单 + 左右对照连续核对 */
.ocr-kpi-risk { border-color: rgba(255, 122, 122, .5); background: linear-gradient(160deg, rgba(255, 122, 122, .1), var(--bg2)); }
.ocr-group { padding: 12px 12px 6px; }
.ocr-group-revenue { border-color: rgba(255, 122, 122, .55); box-shadow: inset 3px 0 0 rgba(255, 122, 122, .75); }
.ocr-group-revenue h3 { color: #ffb3b3; }
.ocr-revenue-note { color: #ffb3b3; margin: 0 0 6px; }
.ocr-row { display: grid; grid-template-columns: 78px minmax(0, 1fr) 156px 92px 62px; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px dashed rgba(42, 51, 80, .8); }
.ocr-row:first-of-type { border-top: 0; }
.ocr-row.ocr-revenue { background: rgba(255, 122, 122, .06); border-radius: 8px; padding-left: 6px; padding-right: 6px; }
.ocr-cell-page b { font-size: 12.5px; }
.ocr-sum { font-size: 12px; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ocr-issue { display: inline-block; font-size: 10.5px; padding: 1px 6px; margin: 2px 4px 0 0; border-radius: 999px; border: 1px solid rgba(255, 122, 122, .4); color: #ffb3b3; background: rgba(255, 122, 122, .08); }
.ocr-issue.ok { border-color: rgba(86, 214, 160, .35); color: #9fe3c4; background: rgba(86, 214, 160, .06); }
.ocr-cell-btn { text-align: right; }
.ocr-split { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.ocr-side { min-width: 0; }
.ocr-side-head { font-size: 11px; color: var(--muted); margin-bottom: 4px; }
.ocr-side-text { margin: 0; max-height: 340px; overflow: auto; padding: 10px; border: 1px solid var(--rule); border-radius: 9px; background: #0b0f1c; color: #c9d3ea; white-space: pre-wrap; word-break: break-all; font-family: Consolas, "Microsoft YaHei", monospace; font-size: 12px; line-height: 1.7; }
.ocr-edit-area { width: 100%; min-height: 340px; margin: 0; font-family: Consolas, "Microsoft YaHei", monospace; font-size: 12.5px; line-height: 1.7; }
.ocr-editor { border-color: rgba(124, 156, 255, .5); }
.ocr-revenue-card { border-color: rgba(255, 122, 122, .65); box-shadow: inset 3px 0 0 rgba(255, 122, 122, .8); }
.ocr-issues { margin-top: 6px; }
.ocr-amount-note { color: #f0b46a; margin: 0 0 6px; }
.ocr-done { border-color: rgba(86, 214, 160, .45); }
@media (max-width: 720px) {
  .ocr-row { grid-template-columns: 1fr 1fr; }
  .ocr-cell-page { grid-column: 1; }
  .ocr-cell-state { grid-column: 2; text-align: right; }
  .ocr-cell-sum { grid-column: 1 / -1; }
  .ocr-cell-issue { grid-column: 1 / -1; }
  .ocr-cell-btn { grid-column: 1 / -1; text-align: left; }
  .ocr-split { grid-template-columns: 1fr; }
  .ocr-side-text, .ocr-edit-area { min-height: 180px; max-height: 260px; }
}
