/* 客户状态条(js/pages/customer-status.js):手机在头卡里,电脑在详情顶部 */
.cs-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cs-bar-m { margin-top: 10px; }
.cs-bar-d { margin: 0 0 12px; padding: 10px 14px; border-radius: 8px; background: #fff; }
body.m-shell .cs-bar-d { display: none; }
body:not(.m-shell) .cs-bar-m { display: none; }
.cs-bar:empty { display: none; }
.cs-pill { display: inline-flex; align-items: center; gap: 4px; min-height: 30px; padding: 0 12px; border: 0; border-radius: 15px;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; background: #f1edf5; color: #5b5266; }
.cs-pill i { font-style: normal; opacity: .6; }
.cs-pill.cs-ok { background: #e7f6ee; color: #1b8a4b; }
.cs-pill.cs-new { background: #fff3e0; color: #a35a00; }
.cs-pill.cs-lost { background: #fdecec; color: #b3261e; }
.cs-side-text { font-size: 12px; color: #8a8391; }
.cs-stages { display: flex; flex: 1 1 100%; gap: 6px; overflow-x: auto; scrollbar-width: none; touch-action: pan-x; overscroll-behavior-x: contain; }
.cs-stages::-webkit-scrollbar { display: none; }
.cs-stage { flex: none; min-height: 32px; padding: 0 12px; border: 1px solid #e5dfeb; border-radius: 16px; background: #fff;
  font: inherit; font-size: 13px; color: #5b5266; cursor: pointer; }
.cs-stage.cs-cur { border-color: #8a5cd0; background: #8a5cd0; color: #fff; font-weight: 600; }
.cs-stage.cs-side { color: #8a8391; border-style: dashed; }
.cs-stage.cs-side.cs-cur { background: #8a8391; border-color: #8a8391; color: #fff; }
.cs-stage[disabled] { cursor: default; }
.cs-mask { z-index: 260; align-items: flex-end; }
.cs-sheet { display: flex; flex-direction: column; width: 100%; max-width: 560px; max-height: 80vh; margin: 0 auto; border-radius: 16px 16px 0 0; background: #fff; }
body:not(.m-shell) .cs-mask { align-items: center; }
body:not(.m-shell) .cs-sheet { border-radius: 12px; }
.cs-sheet header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid #efeaf4; }
.cs-sheet header b { font-size: 16px; }
.cs-sheet header button { border: 0; background: none; font-size: 18px; color: #8a8391; cursor: pointer; }
.cs-body { overflow-y: auto; padding: 4px 16px calc(16px + env(safe-area-inset-bottom, 0px)); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.cs-sec { padding: 12px 0; border-bottom: 1px solid #f3eff7; font-size: 14px; line-height: 1.7; color: #3d3744; }
.cs-sec:last-child { border-bottom: 0; }
.cs-sec h4 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: #8a8391; }
.cs-now { font-size: 18px; font-weight: 700; color: #26222c; }
.cs-note { font-size: 12.5px; color: #8a8391; }
.cs-impact { margin: 4px 0; padding-left: 18px; }
.cs-field { display: block; margin-top: 10px; font-size: 13px; color: #5b5266; }
.cs-field select, .cs-field input, .cs-field textarea { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid #e5dfeb;
  border-radius: 8px; font: inherit; font-size: 15px; box-sizing: border-box; background: #fff; }
.cs-error { margin: 8px 0 0; font-size: 13px; color: #b3261e; }
.cs-acts { display: flex; gap: 8px; margin-top: 12px; }
.cs-acts button { flex: 1; min-height: 40px; border: 1px solid #e5dfeb; border-radius: 8px; background: #fff; font: inherit; font-size: 14px; cursor: pointer; color: #3d3744; }
.cs-acts .cs-primary { border-color: #8a5cd0; background: #8a5cd0; color: #fff; }
.cs-acts .cs-danger { border-color: #e9b8b5; color: #b3261e; }
.cs-acts .cs-link { border: 0; color: #8a8391; }
.cs-bottom { margin-top: 20px; }
