:root {
  --bg: #f2f4f8;
  --card: #ffffff;
  --ink: #16203a;
  --ink-2: #5b6579;
  --ink-3: #949cad;
  --line: #e7eaf1;
  --primary: #2f5cf6;
  --primary-2: #4f7dff;
  --primary-soft: #eef2ff;
  --ok: #0f9d6c;
  --ok-soft: #e7f7f0;
  --warn: #c2701a;
  --warn-soft: #fff3e4;
  --danger: #d63a3a;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(20, 35, 70, 0.07);
  --shadow-sm: 0 2px 8px rgba(20, 35, 70, 0.05);
}

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

html, body { margin: 0; padding: 0; }

body {
  background:
    radial-gradient(900px 420px at 8% -8%, #e6ecff 0%, rgba(230, 236, 255, 0) 62%),
    radial-gradient(700px 400px at 100% 0%, #eafaff 0%, rgba(234, 250, 255, 0) 55%),
    var(--bg);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.shell {
  max-width: 620px;
  margin: 0 auto;
  padding: 0 16px 48px;
  transition: max-width .25s ease;
}

body.admin-mode .shell { max-width: 960px; }

/* ---------- top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 2px 14px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(242, 244, 248, .96) 62%, rgba(242, 244, 248, 0));
  backdrop-filter: blur(6px);
}

.brand { display: flex; align-items: center; gap: 10px; }

.logo {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--primary-2), var(--primary));
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(47, 92, 246, .28);
  flex: none;
}
.logo svg { width: 22px; height: 22px; }

.brand-title { font-size: 17px; font-weight: 650; letter-spacing: .2px; }
.brand-sub { font-size: 12px; color: var(--ink-3); margin-top: -2px; }

.ghost-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-2);
  font-size: 13px;
  padding: 7px 13px;
  border-radius: 11px;
  cursor: pointer;
  font-family: inherit;
  transition: .18s;
  white-space: nowrap;
}
.ghost-btn:hover { border-color: #cdd5e6; color: var(--ink); }

/* ---------- steps ---------- */
.steps { display: flex; gap: 8px; margin: 4px 0 16px; }

.step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--ink-3);
  background: rgba(255, 255, 255, .6);
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 8px 10px;
  transition: .2s;
}
.step i {
  font-style: normal;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: #dfe4ee;
  color: #7c869b;
  font-size: 11.5px;
  display: grid; place-items: center;
  flex: none;
  font-weight: 600;
}
.step.active { background: #fff; border-color: #dfe6fb; color: var(--primary); box-shadow: var(--shadow-sm); }
.step.active i { background: var(--primary); color: #fff; }
.step.done i { background: var(--ok-soft); color: var(--ok); }

/* ---------- card ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(231, 234, 241, .8);
  padding: 20px;
  margin-bottom: 16px;
}

.card h2 { font-size: 18px; margin: 0; font-weight: 650; letter-spacing: .2px; }
.card h3 { font-size: 15.5px; margin: 0 0 4px; font-weight: 650; }

.hint { color: var(--ink-3); font-size: 13px; margin: 6px 0 0; }

.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }

.text-btn {
  background: none; border: none; color: var(--primary);
  font-size: 13px; cursor: pointer; font-family: inherit; padding: 4px 2px;
  white-space: nowrap;
}
.text-btn:hover { text-decoration: underline; }

/* ---------- type grid ---------- */
.type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.type-card {
  border: 1.5px solid var(--line);
  background: #fbfcfe;
  border-radius: 16px;
  padding: 14px 14px 12px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: .18s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.type-card svg { width: 100%; height: 46px; color: #9aa6bd; transition: .18s; }
.type-card .t-name { font-size: 16px; font-weight: 650; color: var(--ink); }
.type-card .t-hint { font-size: 11.5px; color: var(--ink-3); }
.type-card:hover { border-color: #c3d0f5; background: #fff; transform: translateY(-1px); }
.type-card.selected {
  border-color: var(--primary);
  background: var(--primary-soft);
  box-shadow: 0 8px 22px rgba(47, 92, 246, .12);
}
.type-card.selected svg { color: var(--primary); }
.type-card.selected::after {
  content: "";
  position: absolute; top: 10px; right: 10px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>") center/12px no-repeat;
}

/* ---------- search + chips ---------- */
.search {
  display: flex; align-items: center; gap: 8px;
  background: #f5f7fb; border: 1px solid var(--line);
  border-radius: 13px; padding: 9px 12px; margin-top: 14px;
}
.search svg { width: 17px; height: 17px; color: var(--ink-3); flex: none; }
.search input {
  border: none; background: none; outline: none; flex: 1;
  font-size: 15px; font-family: inherit; color: var(--ink); padding: 0;
}

/* 后台师傅名单搜索 */
.roster-search { margin-top: 6px; margin-bottom: 2px; background: #fff; }
.roster-search:focus-within { border-color: #b9c9f6; }
.roster-search input { font-size: 14px; min-width: 0; }
.search-clear {
  border: none; background: #e9edf5; color: var(--ink-2); flex: none;
  width: 22px; height: 22px; border-radius: 50%; line-height: 1;
  font-size: 15px; cursor: pointer; padding: 0;
}
mark.hl { background: #dbe6ff; color: var(--primary); border-radius: 3px; padding: 0 1px; }
.roster-empty-actions { margin-top: 12px; }

.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }

.search-guide {
  width: 100%;
  text-align: center;
  padding: 26px 18px 24px;
  border: 1px dashed #d9e1f3;
  background: #fafbff;
  border-radius: 14px;
}
.search-guide svg { width: 34px; height: 34px; color: #a9b7d6; }
.search-guide .sg-title { font-size: 14.5px; font-weight: 600; margin-top: 9px; color: var(--ink); }
.search-guide .sg-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 5px; line-height: 1.6; }

.search-note {
  width: 100%; font-size: 12.5px; color: var(--ink-3);
  padding: 2px 0 3px;
}
.chips-results { width: 100%; display: flex; flex-wrap: wrap; gap: 9px; }

.chip {
  border: 1px solid var(--line);
  background: #fbfcfe;
  border-radius: 11px;
  padding: 9px 16px;
  font-size: 15px;
  font-family: inherit;
  cursor: pointer;
  color: var(--ink);
  transition: .15s;
  min-width: 72px;
}
.chip:hover { border-color: var(--primary); color: var(--primary); background: #fff; }
.chip.selected { background: var(--primary); border-color: var(--primary); color: #fff; }

.chips-empty { color: var(--ink-3); font-size: 13.5px; padding: 16px 4px; }
.chips-empty a { color: var(--primary); cursor: pointer; }

/* ---------- upload ---------- */
.who {
  display: flex; align-items: center; gap: 10px;
  background: #f6f8fd; border-radius: 13px; padding: 11px 13px; margin: 14px 0 4px;
}
.who .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(140deg, #cddcff, #e8eeff);
  color: var(--primary); display: grid; place-items: center;
  font-weight: 650; font-size: 14px; flex: none;
}
.who .who-main { font-weight: 600; font-size: 14.5px; }
.who .who-sub { font-size: 12px; color: var(--ink-3); }
.who .text-btn { margin-left: auto; }

.status-tip {
  font-size: 12.5px; margin: 12px 0 0; padding: 9px 12px;
  border-radius: 11px; display: flex; gap: 7px; align-items: flex-start;
}
.status-tip.ok { background: var(--ok-soft); color: #0a7a55; }
.status-tip.new { background: var(--warn-soft); color: #a4610f; }

.upload-area {
  margin-top: 16px;
  border: 1.5px dashed #cbd4e7;
  border-radius: 15px;
  background: #fafbfe;
  padding: 26px 16px;
  text-align: center;
  cursor: pointer;
  transition: .18s;
}
.upload-area:hover { border-color: var(--primary); background: var(--primary-soft); }
.upload-area svg { width: 34px; height: 34px; color: #9aa6bd; }
.upload-area .u-main { font-size: 14.5px; font-weight: 600; margin-top: 8px; }
.upload-area .u-sub { font-size: 12px; color: var(--ink-3); margin-top: 2px; }

.preview { margin-top: 14px; position: relative; display: none; }
.preview img {
  width: 100%; max-height: 420px; object-fit: contain;
  border-radius: 14px; background: #f3f5f9; border: 1px solid var(--line);
  display: block;
}
.preview .rm {
  position: absolute; top: 8px; right: 8px;
  background: rgba(16, 22, 38, .62); color: #fff; border: none;
  border-radius: 9px; font-size: 12px; padding: 5px 10px; cursor: pointer;
  font-family: inherit;
}

.note-input {
  width: 100%; margin-top: 14px; border: 1px solid var(--line);
  background: #fafbfe; border-radius: 13px; padding: 11px 13px;
  font-size: 14.5px; font-family: inherit; outline: none; color: var(--ink);
  resize: vertical; min-height: 44px;
}
.note-input:focus { border-color: #b9c9f6; background: #fff; }

.btn {
  width: 100%; margin-top: 16px;
  background: linear-gradient(140deg, var(--primary-2), var(--primary));
  color: #fff; border: none; border-radius: 14px;
  padding: 14px; font-size: 16px; font-weight: 600;
  font-family: inherit; cursor: pointer;
  box-shadow: 0 8px 20px rgba(47, 92, 246, .25);
  transition: .18s;
}
.btn:hover { filter: brightness(1.04); }
.btn:disabled { opacity: .5; box-shadow: none; cursor: not-allowed; }
.btn.loading { pointer-events: none; opacity: .8; }

.btn-sm {
  width: auto; margin: 0; padding: 9px 16px; font-size: 13.5px;
  border-radius: 11px; box-shadow: none;
}

/* ---------- done ---------- */
.done-card { text-align: center; padding: 34px 20px; }
.done-icon {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--ok-soft); display: grid; place-items: center; margin: 0 auto 14px;
}
.done-icon svg { width: 30px; height: 30px; color: var(--ok); }
.done-title { font-size: 19px; font-weight: 650; }
.done-sub { color: var(--ink-2); font-size: 13.5px; margin-top: 6px; }
.done-meta {
  display: inline-flex; flex-direction: column; gap: 4px;
  background: #f6f8fd; border-radius: 13px; padding: 12px 20px; margin-top: 16px;
  font-size: 13.5px; color: var(--ink-2); text-align: left;
}
.done-actions { display: flex; gap: 10px; margin-top: 20px; }
.done-actions .btn { margin: 0; }
.btn.ghost {
  background: #fff; color: var(--primary); border: 1px solid #d5defb; box-shadow: none;
}

/* ---------- admin login ---------- */
.login-card { max-width: 380px; margin: 30px auto; text-align: center; }
.login-card svg.lock { width: 30px; height: 30px; color: var(--primary); }
.login-card h2 { margin-top: 10px; }
.login-card input {
  width: 100%; margin-top: 18px; border: 1px solid var(--line);
  border-radius: 13px; padding: 13px 14px; font-size: 16px;
  font-family: inherit; outline: none; text-align: center; letter-spacing: 2px;
  background: #fafbfe;
}
.login-card input:focus { border-color: var(--primary); background: #fff; }
.err { color: var(--danger); font-size: 13px; margin-top: 10px; min-height: 18px; }

/* ---------- admin tabs ---------- */
.tabs {
  display: flex; gap: 6px; background: #eaedf4;
  border-radius: 14px; padding: 5px; margin-bottom: 16px;
}
.tabs button {
  flex: 1; border: none; background: none; font-family: inherit;
  font-size: 14px; color: var(--ink-2); padding: 9px 4px;
  border-radius: 10px; cursor: pointer; transition: .18s;
}
.tabs button.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }

.filter-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

input[type="date"] {
  border: 1px solid var(--line); border-radius: 11px; padding: 9px 12px;
  font-family: inherit; font-size: 14px; color: var(--ink); background: #fafbfe; outline: none;
}

.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-row .quick { flex: 1; }
.pill {
  border: 1px solid var(--line); background: #fff; border-radius: 10px;
  font-family: inherit; font-size: 13px; color: var(--ink-2);
  padding: 8px 12px; cursor: pointer; transition: .15s;
}
.pill:hover { border-color: #c3d0f5; color: var(--primary); }
.pill.active { background: var(--primary-soft); border-color: #c8d5fb; color: var(--primary); font-weight: 600; }

.range-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.range-bar input[type="date"] { flex: 0 1 152px; min-width: 0; max-width: 100%; }
.range-sep { color: var(--ink-3); font-size: 13px; }
.range-note {
  margin-top: 10px; padding: 9px 11px; border-radius: 10px;
  background: #f5f8ff; color: var(--ink-2); font-size: 12.2px; line-height: 1.65;
}
.range-note b { color: var(--primary); font-weight: 650; }
.day-switch { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 11px; }
.day-switch button {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  border-radius: 9px; padding: 6px 10px; font-family: inherit; font-size: 12px; cursor: pointer;
}
.day-switch button.active { background: var(--primary-soft); border-color: #c8d5fb; color: var(--primary); font-weight: 600; }

.seg { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.seg-label { font-size: 12.5px; color: var(--ink-3); width: 100%; margin-bottom: -2px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.stat {
  background: #fff; border: 1px solid rgba(231, 234, 241, .8);
  border-radius: 14px; padding: 12px 10px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat b { display: block; font-size: 21px; font-weight: 680; letter-spacing: .4px; }
.stat span { font-size: 11.5px; color: var(--ink-3); }
.stat.ok b { color: var(--ok); }
.stat.warn b { color: var(--warn); }
.stat.rate b { color: var(--primary); }

.list-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; flex-wrap: wrap; margin-bottom: 6px;
}
.list-head .count { font-size: 13px; color: var(--ink-2); }
.list-head .actions { display: flex; gap: 8px; }

.rows { display: flex; flex-direction: column; }
.row {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 2px; border-bottom: 1px solid #f0f2f7;
}
.row:last-child { border-bottom: none; }
.row .nm { font-size: 15px; font-weight: 560; }
.row .meta { font-size: 12px; color: var(--ink-3); margin-top: 1px; }
.row .grow { flex: 1; min-width: 0; }
.row .grow > div { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.badge {
  font-size: 11.5px; padding: 3px 9px; border-radius: 20px;
  white-space: nowrap; font-weight: 560;
}
.badge.ok { background: var(--ok-soft); color: #0a7a55; }
.badge.wait { background: var(--warn-soft); color: #a4610f; }
.badge.type { background: #eef2ff; color: #3b57c4; }

.group-title {
  font-size: 12.5px; color: var(--ink-3); font-weight: 600;
  margin: 16px 0 2px; padding-top: 10px; border-top: 1px dashed #e9ecf3;
  letter-spacing: .3px;
}
.group-title:first-child { border-top: none; margin-top: 4px; padding-top: 0; }

.empty {
  text-align: center; color: var(--ink-3); font-size: 13.5px;
  padding: 34px 10px;
}
.empty svg { width: 34px; height: 34px; color: #ccd4e3; margin-bottom: 8px; }

/* roster */
.add-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.add-row input, .add-row select {
  border: 1px solid var(--line); border-radius: 11px; padding: 10px 12px;
  font-family: inherit; font-size: 14px; background: #fafbfe; outline: none; color: var(--ink);
}
.add-row input { flex: 1; min-width: 120px; }
.add-row select { min-width: 96px; }
.add-row input:focus, .add-row select:focus { border-color: #b9c9f6; background: #fff; }

.import-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.file-btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid #d5defb; background: var(--primary-soft); color: var(--primary);
  border-radius: 11px; padding: 9px 15px; font-size: 13.5px; cursor: pointer; font-weight: 560;
}
.file-btn:hover { background: #e6ecff; }
.file-name { font-size: 12.5px; color: var(--ink-3); }

.import-preview {
  margin-top: 14px; background: #f8fafd; border: 1px solid var(--line);
  border-radius: 13px; padding: 13px;
}
.import-preview .ip-title { font-size: 13.5px; font-weight: 600; }
.import-preview .ip-list {
  margin: 8px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--ink-2);
  max-height: 160px; overflow: auto;
}
.import-preview .ip-list li { padding: 2px 0; }
.import-preview .ip-bad { color: var(--danger); }

.roster-row { display: flex; align-items: center; gap: 9px; padding: 10px 2px; border-bottom: 1px solid #f0f2f7; }
.roster-row:last-child { border-bottom: none; }
.roster-row .nm { font-size: 14.5px; }
.roster-row select {
  border: 1px solid var(--line); border-radius: 9px; padding: 6px 8px;
  font-family: inherit; font-size: 12.5px; background: #fafbfe; color: var(--ink-2);
}
.mini-btn {
  border: 1px solid var(--line); background: #fff; border-radius: 9px;
  font-family: inherit; font-size: 12px; color: var(--ink-2);
  padding: 6px 10px; cursor: pointer; white-space: nowrap;
}
.mini-btn:hover { border-color: #cdd5e6; }
.mini-btn.danger { color: var(--danger); border-color: #f3d6d6; }
.mini-btn.danger:hover { background: #fdf2f2; }

/* ---------- modal ---------- */
.modal {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(14, 20, 34, .62);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(3px);
}
.modal.hidden { display: none; }
.modal-box {
  background: #fff; border-radius: 18px; padding: 16px;
  max-width: 520px; width: 100%; max-height: 90vh; overflow: auto;
  position: relative;
}
.modal-box img { width: 100%; border-radius: 12px; display: block; background: #f3f5f9; }
.modal-box .m-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px; gap: 10px;
}
.modal-box .m-title { font-size: 15px; font-weight: 650; }
.modal-box .m-sub { font-size: 12.5px; color: var(--ink-3); }
.close-x {
  border: none; background: #f2f4f8; width: 30px; height: 30px; border-radius: 50%;
  font-size: 16px; color: var(--ink-2); cursor: pointer; line-height: 1; flex: none;
}
.modal-actions { display: flex; gap: 8px; margin-top: 12px; }
.modal-actions .btn { margin: 0; }

.edit-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.edit-form label { font-size: 12.5px; color: var(--ink-3); }
.edit-form input, .edit-form select {
  width: 100%; border: 1px solid var(--line); border-radius: 11px;
  padding: 11px 12px; font-family: inherit; font-size: 14.5px; background: #fafbfe; outline: none;
}
.edit-form input:focus, .edit-form select:focus { border-color: #b9c9f6; background: #fff; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 34px; transform: translateX(-50%) translateY(10px);
  background: rgba(20, 28, 46, .94); color: #fff; font-size: 13.5px;
  padding: 11px 18px; border-radius: 12px; z-index: 120;
  opacity: 0; transition: .22s; pointer-events: none; max-width: 88vw; text-align: center;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.hidden { display: block; }

.foot { text-align: center; font-size: 11.5px; color: #a9b1c2; margin-top: 22px; }

.hidden { display: none !important; }

.skeleton {
  background: linear-gradient(90deg, #f1f3f8 25%, #f7f9fc 50%, #f1f3f8 75%);
  background-size: 200% 100%;
  animation: sk 1.2s infinite;
  border-radius: 10px; height: 38px;
}
@keyframes sk { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff;
  animation: spin .7s linear infinite; display: inline-block; vertical-align: -3px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 城市选择 / 分权后台 ---------- */
.steps { gap: 5px; }
.step { gap: 5px; padding: 7px 5px; justify-content: center; font-size: 12px; }
.tabs button { font-size: 13px; padding: 9px 2px; }

.city-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.city-card {
  border: 1.5px solid var(--line); background: #fbfcfe;
  border-radius: 15px; padding: 15px 6px 13px; cursor: pointer;
  font-family: inherit; text-align: center; transition: .18s;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.city-card svg { width: 30px; height: 30px; color: #9aa6bd; transition: .18s; }
.city-card .c-name { font-size: 16px; font-weight: 650; color: var(--ink); }
.city-card .c-sub { font-size: 11px; color: var(--ink-3); }
.city-card:hover { border-color: #c3d0f5; background: #fff; transform: translateY(-1px); }
.city-card.selected { border-color: var(--primary); background: var(--primary-soft); box-shadow: 0 8px 22px rgba(47, 92, 246, .12); }
.city-card.selected svg { color: var(--primary); }
.city-card.selected .c-name { color: var(--primary); }

.resume {
  width: 100%; margin-top: 16px; border: 1px dashed #c8d5fb; background: #f6f8ff;
  color: var(--primary); border-radius: 12px; padding: 11px 13px;
  font-size: 13px; font-family: inherit; cursor: pointer; text-align: left;
}
.resume:hover { background: #eef3ff; }

.scope-banner {
  display: flex; align-items: center; gap: 9px;
  background: #eef2ff; border: 1px solid #d9e2ff; color: #2c45a8;
  border-radius: 13px; padding: 10px 13px; font-size: 13px; margin-bottom: 14px;
}
.scope-banner svg { width: 17px; height: 17px; flex: none; }
.scope-banner b { font-weight: 650; }
.scope-banner.main { background: #e9f7f1; border-color: #cfeede; color: #0a7a55; }

.badge.city { background: #f0f3f9; color: #5b6579; }
.badge.main { background: #e9f7f1; color: #0a7a55; }

.roster-row { flex-wrap: wrap; }
.roster-row .r-grow { flex: 1; min-width: 70px; }
.city-tag {
  font-size: 11.5px; color: #3b57c4; background: #eef2ff;
  border-radius: 8px; padding: 3px 8px; white-space: nowrap;
}

.admin-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.admin-form input, .admin-form select {
  width: 100%; border: 1px solid var(--line); border-radius: 11px;
  padding: 10px 12px; font-family: inherit; font-size: 14px;
  background: #fafbfe; outline: none; color: var(--ink);
}
.admin-form input:focus, .admin-form select:focus { border-color: #b9c9f6; background: #fff; }

.type-picker {
  grid-column: 1 / -1;
  border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 13px; background: #fafbfe;
}
.type-picker.disabled { opacity: .5; pointer-events: none; }
.tp-title { font-size: 12.5px; color: var(--ink-3); margin-bottom: 9px; line-height: 1.5; }
.tp-options { display: flex; flex-wrap: wrap; gap: 8px; }
.tp-options label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 10px;
  padding: 7px 12px; cursor: pointer; transition: .15s;
}
.tp-options label.on { border-color: #b9c9f6; background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.tp-options input { accent-color: var(--primary); width: 15px; height: 15px; margin: 0; }
/* 编辑弹窗里复用同一套勾选框，避免被 .edit-form 的 input 样式撑开 */
.edit-form .type-picker input[type="checkbox"] {
  width: 15px; height: 15px; padding: 0; margin: 0;
  border: none; background: none; accent-color: var(--primary);
}
.edit-form .type-picker label { width: auto; font-size: 13.5px; color: var(--ink); }
.edit-form .type-picker label.on { color: var(--primary); }
.edit-form .flag-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--ink); background: #fafbfe;
  border: 1px solid var(--line); border-radius: 11px;
  padding: 10px 12px; cursor: pointer; line-height: 1.4;
}
.edit-form .flag-row input[type="checkbox"] {
  width: 15px; height: 15px; padding: 0; margin: 0;
  border: none; background: none; accent-color: var(--primary); flex: none;
}

.acc-row {
  display: flex; align-items: center; gap: 9px; padding: 11px 2px;
  border-bottom: 1px solid #f0f2f7; flex-wrap: wrap;
}
.acc-row:last-child { border-bottom: none; }
.acc-row .acc-main { font-size: 14.5px; font-weight: 600; }
.acc-row .acc-sub { font-size: 12px; color: var(--ink-3); }
.acc-row .acc-actions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }

@media (max-width: 560px) {
  .admin-form { grid-template-columns: 1fr; }
  /* 窄屏下让名单行的操作按钮尽量保持在同一行 */
  .roster-row { gap: 6px; }
  .roster-row .r-grow { min-width: 48px; }
  .roster-row select { padding: 5px 6px; font-size: 12px; }
  .roster-row .mini-btn { padding: 5px 7px; font-size: 11.5px; }
}

@media (max-width: 420px) {
  .type-card svg { height: 40px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .step span { display: none; }
  .step { flex: none; padding: 8px 9px; }
  .step.active span { display: inline; }
  .city-card .c-sub { display: none; }
  .range-bar input[type="date"] { flex: 1 1 128px; }
  .range-bar .btn { flex: 1 1 100%; }
}

/* ---------- 报表 / 分页 / 日志 / 回收站 ---------- */
.card-title-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-title-row h3 { margin: 0; }
.card-title-row .hint { margin: 0; }

.grp-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.grp-name { width: 124px; flex: none; font-size: 12.5px; color: var(--ink-2); }
.grp-track { flex: 1; height: 9px; background: #eef1f7; border-radius: 20px; overflow: hidden; min-width: 50px; }
.grp-fill { height: 100%; border-radius: 20px; background: linear-gradient(90deg, #6489f7, #2f5cf6); }
.grp-row.low .grp-fill { background: linear-gradient(90deg, #f2b45c, #e8752c); }
.grp-rate { width: 92px; flex: none; text-align: right; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.grp-rate b { color: var(--ink); }

.trend-wrap { overflow-x: auto; }
.trend-svg { display: block; width: 100%; min-width: 320px; height: 132px; }
.trend-bar { cursor: pointer; }
.trend-bar:hover { opacity: .82; }
.trend-empty { color: var(--ink-3); font-size: 13px; text-align: center; padding: 20px 0; }
.trend-chart { display: flex; align-items: flex-end; justify-content: space-around; gap: 4px; height: 126px; overflow-x: auto; padding: 4px 2px 0; }
.trend-col {
  flex: 0 1 44px; min-width: 16px; max-width: 44px; height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center; cursor: pointer;
}
.trend-col:hover { opacity: .8; }
.trend-col .tv { font-size: 10px; color: var(--ink-3); margin-bottom: 2px; }
.trend-col .tb { flex: none; width: 100%; min-height: 2px; border-radius: 4px 4px 0 0; }
.trend-col .tl { font-size: 10px; color: var(--ink-3); margin-top: 4px; white-space: nowrap; }

.pager { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 0 2px; flex-wrap: wrap; }
.pager button {
  border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 7px 12px;
  font-family: inherit; font-size: 12.5px; color: var(--ink-2); cursor: pointer;
}
.pager button:disabled { opacity: .45; cursor: default; }
.pager .pg-info { font-size: 12.5px; color: var(--ink-3); }

.log-row { display: flex; gap: 10px; align-items: flex-start; padding: 9px 2px; border-bottom: 1px solid #f0f2f7; font-size: 12.5px; }
.log-row:last-child { border-bottom: none; }
.log-time { color: var(--ink-3); flex: none; width: 112px; font-variant-numeric: tabular-nums; }
.log-who { color: var(--primary); flex: none; width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.log-what { flex: 1; min-width: 0; }
.log-what small { display: block; color: var(--ink-3); margin-top: 2px; }
.rc-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 2px; border-bottom: 1px solid #f0f2f7; font-size: 13px; }
.rc-row .grow { flex: 1; min-width: 120px; }
.rc-row .meta { font-size: 11.5px; color: var(--ink-3); margin-top: 2px; }

@media (max-width: 560px) {
  .grp-name { width: 92px; font-size: 11.5px; }
  .grp-rate { width: 76px; font-size: 11.5px; }
  .log-row { flex-wrap: wrap; gap: 2px 8px; }
  .log-time { width: auto; }
  .log-who { width: auto; }
  .log-what { flex: 1 1 100%; }
}

/* 截图瘦身 */
.storage-divider { height: 1px; background: #edf0f6; margin: 16px 0; }
.shrink-bar { height: 6px; border-radius: 99px; background: #eef2fb; overflow: hidden; margin-top: 10px; }
.shrink-bar > div { height: 100%; width: 36%; border-radius: 99px; background: linear-gradient(90deg, #2f5cf6, #8fb0ff); animation: shrinkSlide 1.2s ease-in-out infinite; }
@keyframes shrinkSlide { 0% { transform: translateX(-110%); } 100% { transform: translateX(300%); } }

/* 上传截图异常识别 */
.done-risk { margin: 14px auto 0; max-width: 340px; padding: 10px 12px; border-radius: 10px; background: #fff5e8; border: 1px solid #f6d9ae; color: #8a5a12; font-size: 12.5px; line-height: 1.55; text-align: left; }
.done-risk.soft { background: #f2f5fb; border-color: #dde5f6; color: #5a6a8a; }
.risk-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0 14px; padding: 12px 14px; border-radius: 12px; border-left: 4px solid #ee8b32; background: #fff3e9; border-top: 1px solid #f7d6b5; border-right: 1px solid #f7d6b5; border-bottom: 1px solid #f7d6b5; box-shadow: 0 3px 14px rgba(214,139,58,.10); color: #9a5510; font-size: 12.5px; line-height: 1.5; }
.risk-banner b { font-size: 14.5px; }
.tab-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: #e8622a; color: #fff; font-size: 11px; font-weight: 700; line-height: 1; vertical-align: 1px; }
.tab-badge.hidden { display: none; }
.seg-count { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 4px; margin-left: 5px; border-radius: 8px; background: #e8622a; color: #fff; font-size: 10px; font-weight: 700; vertical-align: 2px; }
.risk-on { background: #eaf6ee; color: #2c7a4b; border: 1px solid #cde7d5; border-radius: 999px; font-size: 11.5px; padding: 3px 10px; font-weight: 600; }
.risk-summary { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #f7f9fd; color: var(--ink-2); font-size: 12.5px; line-height: 1.65; }
.risk-num { color: #d0591a; font-size: 16px; font-weight: 700; }
.risk-banner button { margin-left: auto; }
.badge.risk { background: #fff0e0; color: #b3650d; border-color: #f6d2ac; }
.badge.checked { background: #eef7f0; color: #2c7a4b; border-color: #cde7d5; }
.risk-reason { display: block; color: #a4661a; font-size: 11.5px; margin-top: 3px; }
.risk-detail { width: 100%; padding: 10px 12px; border-radius: 10px; background: #fff5e8; border: 1px solid #f6d9ae; color: #8a5a12; font-size: 12.5px; line-height: 1.6; margin-bottom: 10px; text-align: left; box-sizing: border-box; }
.risk-detail.ok { background: #eef7f0; border-color: #cde7d5; color: #2c7a4b; }
.risk-detail.soft { background: #f2f5fb; border-color: #dde5f6; color: #5a6a8a; }
