:root {
  --navy: #153a5b;
  --navy-deep: #0e2a43;
  --navy-soft: #e9f0f5;
  --green: #237a57;
  --green-soft: #e8f5ef;
  --amber: #9a651b;
  --amber-soft: #fff3dd;
  --red: #9f3641;
  --red-soft: #fbecee;
  --text: #1c2c39;
  --muted: #687785;
  --line: #dbe3ea;
  --surface: #ffffff;
  --page: #f3f6f9;
  --shadow: 0 10px 30px rgba(19, 51, 78, 0.08);
  --radius: 14px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--page); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--page);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }

.login-page {
  min-height: 100vh;
  padding: 36px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 12% 8%, rgba(35, 122, 87, 0.12), transparent 28%),
    linear-gradient(145deg, #f8fafc 0%, #edf3f7 55%, #e8f0f5 100%);
}
.login-card {
  width: min(100%, 440px);
  padding: 34px 32px 28px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(17, 50, 76, 0.13);
}
.brand-mark, .brand-icon {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--navy), #1d577f);
  font-weight: 700;
}
.brand-mark {
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 15px;
  font-size: 24px;
  box-shadow: 0 8px 20px rgba(21, 58, 91, 0.18);
}
.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  font-size: 17px;
  flex: 0 0 auto;
}
.eyebrow {
  margin-bottom: 5px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
}
.login-card h1 {
  margin-bottom: 10px;
  color: var(--navy-deep);
  font-size: 28px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.login-description { margin-bottom: 26px; color: var(--muted); font-size: 14px; }
.login-form { display: grid; gap: 9px; }
.login-form label, .form-field label { color: #314453; font-size: 13px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid #cfdae3;
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: #3977a1;
  box-shadow: 0 0 0 3px rgba(57, 119, 161, 0.12);
}
input::placeholder, textarea::placeholder { color: #9aa7b2; }
textarea { min-height: 92px; resize: vertical; line-height: 1.6; }
.login-form input { margin-bottom: 7px; padding: 13px; }

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 16px;
  color: var(--navy);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button:disabled { cursor: wait; opacity: 0.65; transform: none; }
.button-primary { color: #fff; background: var(--navy); box-shadow: 0 8px 20px rgba(21, 58, 91, 0.18); }
.button-primary:hover { background: #1b4a71; }
.button-success { color: #fff; background: var(--green); }
.button-warning { color: #7a4b00; background: #fff0cc; border-color: #f0d69a; }
.button-secondary { border-color: #cbd8e2; color: var(--navy); background: #fff; }
.button-danger { border-color: #efcdd2; color: var(--red); background: var(--red-soft); }
.button-full { width: 100%; margin-top: 5px; }
.text-button { border: 0; padding: 0; color: #c8d6e2; background: transparent; font-size: 13px; }
.text-button:hover { color: #fff; }
.form-error {
  margin: 3px 0 0;
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--red);
  background: var(--red-soft);
  font-size: 13px;
}
.login-notice {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e6edf2;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.login-notice strong { color: #405563; }
.login-notice p { margin: 5px 0 0; }
.login-footer { margin-top: 20px; color: #788792; font-size: 12px; }

.app-shell { min-height: 100vh; }
.app-header {
  position: sticky;
  z-index: 20;
  top: 0;
  color: #fff;
  background: rgba(21, 58, 91, 0.97);
  box-shadow: 0 2px 18px rgba(13, 39, 61, 0.16);
  backdrop-filter: blur(12px);
}
.topbar {
  width: min(100%, 1180px);
  min-height: 74px;
  margin: 0 auto;
  padding: 12px 22px 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.brand { min-width: 0; display: flex; align-items: center; gap: 11px; }
.brand > span:last-child { min-width: 0; display: flex; flex-direction: column; }
.brand strong { overflow: hidden; font-size: 17px; line-height: 1.35; white-space: nowrap; text-overflow: ellipsis; }
.brand small { color: #b8cad8; font-size: 11px; line-height: 1.4; }
.user-chip {
  min-width: 98px;
  border: 1px solid rgba(255, 255, 255, 0.19);
  border-radius: 12px;
  padding: 6px 11px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  text-align: right;
}
.user-chip span, .user-chip small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.user-chip span { font-size: 14px; font-weight: 700; }
.user-chip small { color: #bdd0de; font-size: 11px; }
.main-nav {
  width: min(100%, 1180px);
  margin: 0 auto;
  padding: 0 18px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.nav-link {
  position: relative;
  flex: 0 0 auto;
  border: 0;
  padding: 10px 14px 13px;
  color: #bdcfdb;
  background: transparent;
  font-size: 14px;
  font-weight: 600;
}
.nav-link.active { color: #fff; }
.nav-link.active::after {
  position: absolute;
  right: 14px;
  bottom: 5px;
  left: 14px;
  height: 3px;
  border-radius: 3px;
  background: #7fd3ac;
  content: "";
}
.app-main { width: min(calc(100% - 32px), 1180px); margin: 0 auto; padding: 26px 0 38px; }
.page-heading { margin-bottom: 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; }
.page-heading h1 {
  margin-bottom: 3px;
  color: var(--navy-deep);
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.3;
  letter-spacing: -0.025em;
}
.page-heading p:last-child { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.loading-indicator { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.view { display: grid; gap: 18px; }
.card {
  min-width: 0;
  border: 1px solid rgba(219, 227, 234, 0.9);
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.card-flat { box-shadow: none; }
.card-header { margin-bottom: 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.card-header h2, .card h2 { margin-bottom: 3px; color: var(--navy-deep); font-size: 18px; line-height: 1.45; }
.card-header p, .card h2 + p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.section-title { margin: 2px 0 0; color: var(--navy-deep); font-size: 17px; }
.section-caption { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.segmented { display: inline-flex; padding: 3px; border: 1px solid #d7e1e8; border-radius: 10px; background: #f5f8fa; }
.segmented button {
  border: 0;
  border-radius: 7px;
  padding: 6px 12px;
  color: #5d6e7c;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
}
.segmented button.active { color: var(--navy); background: #fff; box-shadow: 0 1px 5px rgba(30, 60, 85, 0.1); }
.segment-count { display: inline-flex; min-width: 18px; height: 18px; margin-left: 6px; align-items: center; justify-content: center; border-radius: 9px; background: #e8f0f6; color: #476273; font-size: 11px; line-height: 18px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.metric {
  min-height: 106px;
  padding: 16px;
  border: 1px solid #e0e8ee;
  border-radius: 12px;
  background: linear-gradient(160deg, #fff 0%, #f7fafc 100%);
}
.metric strong { display: block; margin-bottom: 3px; color: var(--navy-deep); font-size: 28px; line-height: 1.2; letter-spacing: -0.03em; }
.metric span { color: var(--muted); font-size: 12px; }
.metric.attention strong { color: var(--amber); }
.hero {
  color: #fff;
  border: 0;
  background: linear-gradient(135deg, var(--navy-deep), #19557c 70%, #237a57);
  box-shadow: 0 15px 35px rgba(16, 48, 74, 0.2);
}
.hero h2 { color: #fff; font-size: clamp(20px, 3vw, 25px); }
.hero p { max-width: 680px; margin-bottom: 0; color: #d3e0e9; font-size: 14px; }
.hero .eyebrow { color: #8fe1ba; }
.hero-actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 9px; }
.task-list, .record-list, .log-list { display: grid; gap: 11px; }
.task-card {
  border: 1px solid #dfe8ee;
  border-left: 4px solid #8799a7;
  border-radius: 12px;
  padding: 16px;
  background: #fff;
}
.task-card.status-pending { border-left-color: var(--amber); }
.task-card.status-submitted, .task-card.status-verified { border-left-color: var(--green); background: #fbfdfc; }
.task-card.status-canceled { opacity: 0.72; border-left-color: #aeb8c0; }
.task-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.task-card h3 { margin-bottom: 3px; color: var(--navy-deep); font-size: 17px; }
.task-meta { margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.task-content { margin: 8px 0; color: #344654; font-size: 14px; white-space: pre-wrap; }
.task-basis { margin: 8px 0 0; padding: 9px 11px; border-radius: 8px; color: #526571; background: #f4f7f9; font-size: 12px; }
.task-actions { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 9px;
  color: #566977;
  background: #edf2f5;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}
.badge.success { color: var(--green); background: var(--green-soft); }
.badge.warning { color: var(--amber); background: var(--amber-soft); }
.badge.danger { color: var(--red); background: var(--red-soft); }
.badge.info { color: #346b8e; background: #eaf3f9; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th, .data-table td { padding: 11px 10px; border-bottom: 1px solid #e4ebf0; text-align: left; vertical-align: middle; }
.data-table th { color: #647583; background: #f5f8fa; font-size: 12px; font-weight: 700; white-space: nowrap; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fbfcfd; }
.member-name { display: flex; align-items: center; gap: 7px; }
.member-name strong { color: var(--navy-deep); font-size: 14px; }
.member-name small { display: block; color: var(--muted); font-size: 11px; }
.link-button { border: 0; padding: 3px 0; color: #276e96; background: transparent; font-size: 13px; font-weight: 700; white-space: nowrap; }
.notice { padding: 13px 15px; border: 1px solid #dce8e2; border-radius: 10px; color: #426455; background: #f2f9f5; font-size: 13px; }
.notice.warning { border-color: #efdfbf; color: #765b28; background: #fffaef; }
.grid-two { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 18px; }
.stack { display: grid; gap: 14px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-field { min-width: 0; display: grid; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field small { color: var(--muted); font-size: 11px; }
.form-field input, .form-field select, .form-field textarea { background: #fcfdfe; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check-option {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #d5e0e7;
  border-radius: 9px;
  padding: 8px 11px;
  background: #fff;
  font-size: 13px;
}
.check-option input { width: auto; margin: 0; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 3px; }
.form-help { color: var(--muted); font-size: 12px; }
.empty-state { padding: 30px 16px; color: var(--muted); text-align: center; border: 1px dashed #d6e1e9; border-radius: 11px; background: #fbfcfd; font-size: 13px; }
.empty-state strong { display: block; margin-bottom: 4px; color: #536675; font-size: 15px; }
.record-item { border-bottom: 1px solid #e6edf2; padding: 13px 0; }
.record-item:last-child { border-bottom: 0; }
.record-item-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.record-item h3 { margin-bottom: 3px; color: #273a48; font-size: 15px; }
.record-item p { margin: 3px 0; font-size: 13px; }
.record-date { color: var(--muted); font-size: 12px; white-space: nowrap; }
.detail-section h3 { margin: 0 0 9px; color: var(--navy-deep); font-size: 15px; }
.detail-item { margin-bottom: 9px; padding: 11px 12px; border: 1px solid #e2e9ee; border-radius: 9px; background: #fbfcfd; }
.detail-item strong { color: #344654; }
.detail-item p { margin: 4px 0; font-size: 13px; }
.detail-item .muted { color: var(--muted); font-size: 12px; }
.profile-row { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid #e7edf1; }
.profile-row span { color: var(--muted); font-size: 13px; }
.profile-row strong { color: #304552; font-size: 14px; }
.modal-backdrop {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(9, 27, 42, 0.55);
  backdrop-filter: blur(4px);
}
.modal {
  width: min(100%, 690px);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 24px 100px rgba(4, 20, 33, 0.35);
}
.modal-head {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 20px;
  border-bottom: 1px solid #e6edf2;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
}
.modal-head h2 { margin: 0; color: var(--navy-deep); font-size: 19px; }
.modal-body { padding: 20px; }
.review-qr-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 16px; }
.review-qr-card { padding: 14px; border: 2px solid #173042; border-radius: 14px; text-align: center; background: #fff; }
.review-qr-brand { color: #1f5967; font-size: 11px; letter-spacing: 3px; }
.review-qr-svg { width: 190px; height: 190px; margin: 8px auto 4px; }
.review-qr-svg svg { width: 100%; height: 100%; display: block; }
.review-qr-card strong { display: block; color: var(--navy-deep); font-size: 14px; }
.review-qr-card p { margin: 5px 0 2px; color: #405563; font-size: 12px; }
.review-qr-card small { color: #7a8992; font-size: 11px; }
.review-qr-side { min-width: 0; }
.icon-button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; color: #5c6d7a; background: #f0f4f6; font-size: 23px; line-height: 1; }
.app-footer {
  width: min(calc(100% - 38px), 1180px);
  margin: 0 auto;
  padding: 18px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #84919c;
  font-size: 11px;
}
.app-footer .text-button { color: #7b8994; }
.toast {
  position: fixed;
  z-index: 200;
  right: 20px;
  bottom: 24px;
  max-width: min(420px, calc(100vw - 40px));
  padding: 11px 16px;
  border-radius: 10px;
  color: #fff;
  background: #173d5e;
  box-shadow: 0 10px 30px rgba(5, 23, 38, 0.2);
  font-size: 13px;
}
.toast.error { background: var(--red); }

@media (max-width: 860px) {
  .grid-two { grid-template-columns: 1fr; }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .login-page { justify-content: flex-start; padding-top: 28px; }
  .login-card { padding: 27px 23px 24px; border-radius: 18px; }
  .login-card h1 { font-size: 25px; }
  .topbar { min-height: 66px; padding: 10px 15px 7px; }
  .brand-icon { width: 34px; height: 34px; border-radius: 9px; font-size: 15px; }
  .brand strong { font-size: 15px; }
  .brand small { max-width: 192px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .user-chip { min-width: 74px; padding: 5px 8px; }
  .main-nav { padding: 0 8px; }
  .nav-link { padding: 9px 11px 12px; font-size: 13px; }
  .nav-link.active::after { right: 11px; bottom: 4px; left: 11px; }
  .app-main { width: calc(100% - 24px); padding-top: 20px; }
  .page-heading { align-items: flex-start; margin-bottom: 14px; }
  .page-heading h1 { font-size: 25px; }
  .page-heading p:last-child { max-width: 330px; font-size: 12px; }
  .card { padding: 17px; border-radius: 12px; }
  .summary-grid { gap: 9px; }
  .metric { min-height: 91px; padding: 13px; }
  .metric strong { font-size: 24px; }
  .card-header { align-items: flex-start; }
  .card-header .button { min-height: 38px; padding: 7px 11px; font-size: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full, .form-actions { grid-column: auto; }
  .toolbar { align-items: stretch; }
  .segmented { width: 100%; }
  .segmented button { flex: 1; }
  .task-card { padding: 14px; }
  .data-table { min-width: 620px; }
  .data-table th, .data-table td { padding: 9px 8px; }
  .modal-backdrop { align-items: end; padding: 0; }
  .modal { width: 100%; max-height: 92vh; border-radius: 17px 17px 0 0; }
  .modal-body { padding: 16px 17px 24px; }
  .review-qr-layout { grid-template-columns: 1fr; }
  .review-qr-card { max-width: 260px; margin: 0 auto; }
  .app-footer { width: calc(100% - 30px); padding-bottom: 20px; }
  .toast { right: 14px; bottom: 16px; left: 14px; max-width: none; text-align: center; }
}

/* ===== 第二阶段：验收、照片、评分、结算 ===== */
.button-small { min-height: 34px; padding: 6px 11px; font-size: 12px; border-radius: 8px; }
.button-full { width: 100%; margin-top: 5px; }
.summary-grid.summary-auto { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.inline-callout {
  margin-top: 14px;
  padding: 11px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #eedfbe;
  border-radius: 10px;
  color: #705727;
  background: #fffaf0;
  font-size: 13px;
}
.report-head { flex-wrap: wrap; }
.compact-field { width: 152px; }
.task-card.status-returned { border-left-color: var(--red); background: #fffafb; }
.task-card.status-in_progress { border-left-color: #3977a1; }
.task-card.status-verified { border-left-color: var(--green); background: #fbfdfc; }
.return-note {
  margin: 10px 0;
  padding: 9px 11px;
  border: 1px solid #efcdd2;
  border-radius: 8px;
  color: #7b3139;
  background: #fdf1f3;
  font-size: 12px;
}
.submitted-summary {
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid #e3eaef;
  border-radius: 9px;
  background: #f8fafb;
}
.submitted-summary p { margin: 3px 0; font-size: 13px; }
.task-actions { align-items: center; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); gap: 10px; }
.photo-link { display: block; overflow: hidden; border: 1px solid #e0e8ee; border-radius: 10px; background: #f5f8fa; color: #5d6e7c; font-size: 11px; text-align: center; }
.photo-link img { display: block; width: 100%; height: 145px; object-fit: cover; background: #edf2f5; }
.photo-link span { display: block; padding: 6px 7px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.person-card { border: 1px solid #e0e8ee; border-radius: 12px; padding: 14px; background: #fff; }
.person-card-wide { grid-column: span 2; }
.person-card-main { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.person-card strong { color: var(--navy-deep); font-size: 16px; }
.person-card .task-meta { margin-bottom: 4px; }
.person-metrics { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.score-list, .score-readout { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.score-pill { display: inline-flex; gap: 5px; border-radius: 999px; padding: 4px 9px; color: #5f6f7c; background: #f0f4f7; font-size: 11px; }
.score-pill strong { color: var(--navy-deep); }
.score-readout.compact { margin-top: 7px; }
.eval-comment { margin: 9px 0 0; padding: 9px 11px; border-radius: 8px; color: #536470; background: #f5f8fa; font-size: 12px; }
.eval-evidence { margin-top: 10px; padding: 10px 12px; border: 1px solid #e4ebf1; border-radius: 9px; background: #fbfcfd; font-size: 12px; }
.eval-evidence summary { cursor: pointer; color: var(--navy-deep); font-weight: 700; }
.eval-evidence ul { margin: 9px 0 0; padding-left: 19px; color: #536470; line-height: 1.7; }
.eval-evidence li + li { margin-top: 3px; }
.customer-review-list { display: grid; gap: 12px; margin-top: 14px; }
.customer-review-card { padding: 14px; border: 1px solid #e0e8ee; border-radius: 12px; background: #fff; }
.customer-review-card.is-low { border-color: #e8b7a9; background: #fff9f6; }
.customer-review-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.customer-review-head strong { color: var(--navy-deep); font-size: 15px; }
.customer-review-head .task-meta { margin: 4px 0 0; }
.customer-review-score { flex: 0 0 auto; text-align: right; }
.customer-review-score strong { display: block; color: var(--navy-deep); font-size: 26px; line-height: 1; }
.customer-review-score span { color: var(--muted); font-size: 11px; }
.customer-review-card.is-low .customer-review-score strong { color: #b34a32; }
.score-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.score-choice {
  position: relative;
  display: flex;
  min-height: 72px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid #d5e0e7;
  border-radius: 10px;
  padding: 8px;
  background: #fff;
  text-align: center;
}
.score-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.score-choice strong { color: #3c5261; font-size: 13px; }
.score-choice small { color: var(--muted); font-size: 10px; }
.score-choice.selected { border-color: #34765b; background: var(--green-soft); box-shadow: inset 0 0 0 1px rgba(35, 122, 87, 0.12); }
.score-choice.selected strong { color: var(--green); }
.fixed-values { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 3px; }
.fixed-values span { border-radius: 7px; padding: 6px 9px; color: #526571; background: #f0f4f7; font-size: 12px; }
.dept-chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.dept-chips span { border: 1px solid #dce6ed; border-radius: 999px; padding: 5px 10px; color: #50636f; background: #f7fafc; font-size: 12px; }
.settlement-adjust { padding-top: 3px; border-top: 1px dashed #dce6ed; }
.settlement-table { min-width: 820px; }
.settlement-table td small { color: var(--muted); font-size: 10px; }
.money-strong { color: var(--green); font-size: 15px; }
.table-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.alert-list p { margin: 5px 0; padding: 8px 10px; border-radius: 8px; color: #7b3139; background: var(--red-soft); font-size: 13px; }
.seal-check { margin-top: 16px; display: flex; }
.review-page {
  min-height: 100vh;
  padding: 24px 16px 18px;
  background:
    radial-gradient(circle at 12% 8%, rgba(35, 122, 87, 0.12), transparent 30%),
    linear-gradient(145deg, #f8fafc 0%, #edf3f7 100%);
}
.review-header { width: min(100%, 680px); margin: 0 auto 16px; display: flex; align-items: center; gap: 10px; }
.review-header strong { display: block; color: var(--navy-deep); font-size: 15px; line-height: 1.3; }
.review-header small { display: block; color: var(--muted); font-size: 11px; }
.review-card {
  width: min(100%, 680px);
  margin: 0 auto;
  border: 1px solid rgba(219, 227, 234, 0.9);
  border-radius: 18px;
  padding: 24px;
  background: #fff;
  box-shadow: var(--shadow);
}
.review-heading h1 { margin-bottom: 4px; color: var(--navy-deep); font-size: clamp(25px, 5vw, 32px); line-height: 1.3; }
.review-heading p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.review-question { margin: 0; padding: 15px 0 3px; border: 0; border-top: 1px solid #e6edf2; }
.review-question:first-of-type { border-top: 0; }
.review-question legend { padding: 0; color: #2d4554; font-size: 16px; font-weight: 700; }
.review-question > p { margin: 4px 0 9px; color: var(--muted); font-size: 12px; }
.review-state { padding: 24px 6px; text-align: center; }
.review-icon { width: 56px; height: 56px; margin: 0 auto 15px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--amber); font-size: 26px; font-weight: 700; }
.review-icon.success { background: var(--green); }
.review-state h1 { color: var(--navy-deep); font-size: 22px; }
.review-state p { max-width: 440px; margin: 6px auto; color: var(--muted); font-size: 13px; }
.review-footer { margin: 18px auto 0; color: #788792; font-size: 11px; text-align: center; }

@media (max-width: 780px) {
  .person-card-wide { grid-column: auto; }
}
@media (max-width: 640px) {
  .summary-grid.summary-auto { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .inline-callout { align-items: flex-start; flex-direction: column; }
  .people-grid { grid-template-columns: 1fr; }
  .score-choices { gap: 7px; }
  .score-choice { min-height: 67px; padding: 7px 4px; }
  .score-choice strong { font-size: 12px; }
  .review-card { padding: 18px 16px; border-radius: 15px; }
  .review-page { padding: 18px 12px 14px; }
}

/* ===== 第三阶段：AI资料导入与逐日草稿 ===== */
.ai-import-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid #cfe0e9;
  border-left: 4px solid var(--navy);
  border-radius: 12px;
  background: linear-gradient(135deg, #fbfdff, #eef5f9);
}
.ai-import-intro strong { display: block; color: var(--navy-deep); font-size: 16px; }
.ai-import-intro p { margin: 4px 0 0; color: #536775; font-size: 12px; line-height: 1.65; }
.ai-safety-card { border-color: #cfe3d9; background: #fbfdfc; }
.ai-safety-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ai-safety-grid > div { padding: 11px 12px; border: 1px solid #e0eae5; border-radius: 10px; background: #fff; }
.ai-safety-grid span { display: block; color: var(--muted); font-size: 11px; }
.ai-safety-grid strong { display: block; margin: 2px 0; color: var(--navy-deep); font-size: 15px; }
.ai-safety-grid small { color: #7a8994; font-size: 10px; word-break: break-all; }
.ai-safety-note { margin: 11px 0 0; color: #60737f; font-size: 11px; }
.ai-batch-list, .ai-date-groups { display: grid; gap: 12px; }
.ai-batch-card {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid #dde6ec;
  border-left: 4px solid #afc2d0;
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  text-align: left;
}
.ai-batch-card:hover { border-color: #b9cdda; background: #fbfdff; }
.ai-batch-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.ai-batch-card-head strong { display: block; color: var(--navy-deep); font-size: 15px; }
.ai-batch-card-head .task-meta { display: block; margin-top: 2px; }
.ai-batch-stats { display: flex; flex-wrap: wrap; gap: 7px 14px; margin-top: 9px; color: #5d707d; font-size: 11px; }
.ai-batch-stats b { color: var(--navy); }
.ai-batch-warn { display: inline-block; margin-top: 8px; padding: 3px 8px; border-radius: 6px; color: var(--red); background: var(--red-soft); font-size: 11px; }
.ai-detail-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; margin-bottom: 12px; }
.ai-status-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.ai-batch-edit { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 10px; padding-top: 12px; border-top: 1px dashed #dce6ec; }
.ai-batch-edit .form-field { flex: 1 1 190px; }
.ai-batch-edit .form-field:nth-child(2) { flex-grow: 2; }
.ai-asset-list { display: grid; gap: 9px; }
.ai-asset-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 11px 12px; border: 1px solid #e3eaef; border-radius: 10px; background: #fbfdff; }
.ai-asset-row strong { margin-left: 5px; color: #2e4654; font-size: 13px; word-break: break-all; }
.ai-asset-row .task-meta { display: block; margin-top: 3px; }
.ai-excerpt { margin: 6px 0 0; max-height: 76px; overflow: hidden; color: #60727f; font-size: 11px; white-space: pre-wrap; }
.ai-upload-form, .ai-text-form, .ai-chat-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 13px; padding: 12px; border: 1px dashed #cfdde6; border-radius: 10px; background: #f8fbfd; }
.ai-upload-form .form-field, .ai-text-form .form-field, .ai-chat-form .form-field { flex: 1 1 240px; margin: 0; }
.ai-text-form textarea { min-height: 92px; }
.ai-provider-picker { display: grid; grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: 12px; align-items: end; margin: 10px 0 12px; padding: 12px; border: 1px solid #e2eaef; border-radius: 10px; background: #f8fbfd; }
.ai-provider-picker .form-field { margin: 0; }
.ai-provider-picker .form-help { margin: 0 0 4px; }
.ai-model-actions { display: flex; align-items: center; gap: 13px; padding: 12px; border: 1px solid #e2eaef; border-radius: 10px; background: #f8fbfd; }
.ai-model-actions .form-help { margin: 0; }
.ai-date-group { border: 1px solid #dfe7ec; border-radius: 12px; overflow: hidden; background: #fff; }
.ai-date-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 13px; color: var(--navy-deep); background: #eef4f8; border-bottom: 1px solid #dfe7ec; }
.ai-date-head strong { font-size: 15px; }
.ai-date-head span { color: var(--muted); font-size: 11px; }
.ai-item-form { padding: 13px; border-bottom: 1px solid #edf1f4; }
.ai-item-form:last-child { border-bottom: 0; }
.ai-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 9px; margin-bottom: 10px; }
.ai-item-head strong { display: block; color: #2d4656; font-size: 13px; }
.ai-item-head .task-meta { display: block; margin-top: 2px; }
.ai-item-head-actions { display: flex; gap: 7px; align-items: center; }
.ai-item-form .form-grid { gap: 10px; }
.ai-item-form .form-field label { font-size: 12px; }
.ai-evidence { margin: 9px 0 0; padding: 8px 10px; border-radius: 8px; color: #5e6f7b; background: #f5f8fa; font-size: 11px; }
.ai-evidence span { display: inline-block; margin-right: 6px; padding: 2px 6px; border-radius: 5px; color: #4c6f85; background: #e8f1f6; font-size: 10px; }
.ai-item-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 13px; }
.ai-rejected-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 11px; border: 1px solid #e2e9ee; border-radius: 9px; background: #fbfdff; }
.ai-rejected-row strong { color: #334c5b; font-size: 13px; }
.ai-rejected-row p { margin: 3px 0 0; color: #60727f; font-size: 11px; }

@media (max-width: 780px) {
  .ai-safety-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .ai-import-intro { align-items: stretch; flex-direction: column; }
  .ai-import-intro .button { width: 100%; }
  .ai-batch-card-head, .ai-detail-toolbar { align-items: stretch; flex-direction: column; }
  .ai-asset-row { align-items: stretch; flex-direction: column; }
  .ai-model-actions { align-items: stretch; flex-direction: column; }
  .ai-provider-picker { grid-template-columns: 1fr; }
  .ai-item-head { align-items: stretch; flex-direction: column; }
  .ai-item-head-actions { justify-content: flex-end; }
  .ai-safety-grid { grid-template-columns: 1fr 1fr; }
}


.task-card-badges { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.task-card-badges .batch-check { width: 20px; height: 20px; accent-color: #2f6f55; }
.income-hero { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: flex-end; padding: 20px; margin: 16px 0; border-radius: 16px; background: linear-gradient(135deg, #153a5b, #235a74); color: #fff; }
.income-label { display: block; font-size: 13px; opacity: .82; margin-bottom: 4px; }
.income-amount { font-size: clamp(30px, 6vw, 46px); letter-spacing: .5px; }
.income-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; opacity: .9; }
.income-steps { display: grid; gap: 12px; margin-top: 14px; }
.income-step { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 14px; border: 1px solid #dbe4ea; border-radius: 12px; background: #fbfcfd; }
.income-step > span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #e7f0f5; color: #153a5b; font-weight: 800; }
.income-step p { margin: 6px 0 0; color: #4b5d6b; line-height: 1.65; }
.income-sources { display: grid; gap: 8px; margin-top: 10px; }
.income-source-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 8px; background: #fff; border: 1px solid #e5ebef; }
.income-source-row small { display: block; color: #73808b; margin-top: 2px; }
.oversight-list { display: grid; gap: 12px; }

/* 资料—盖章—交付流转 */
.document-filter-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip { border: 1px solid var(--line); border-radius: 999px; padding: 6px 10px; color: var(--muted); background: #fff; font-size: 12px; font-weight: 600; cursor: pointer; }
.filter-chip strong { margin-left: 4px; color: var(--navy); font-size: 12px; }
.filter-chip.active { border-color: #9db9cd; color: var(--navy); background: var(--navy-soft); }
.document-search { display: flex; align-items: center; gap: 6px; }
.document-search input { width: min(260px, 66vw); min-height: 34px; padding: 7px 10px; border-color: var(--line); font-size: 13px; }
.document-list { display: grid; gap: 12px; }
.document-card { padding: 15px; border: 1px solid var(--line); border-left: 4px solid #9db9cd; border-radius: 12px; background: #fff; }
.document-card.status-prepared { border-left-color: #c08a35; }
.document-card.status-returned { border-left-color: #b34a55; background: #fffafa; }
.document-card.status-stamped { border-left-color: #2d7198; background: #fbfdff; }
.document-card.status-delivered { border-left-color: #2d805d; background: #fbfdfc; }
.document-card.status-canceled { border-left-color: #9aa7b1; opacity: .78; }
.document-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.document-card-head h3 { margin: 0 0 3px; color: var(--navy-deep); font-size: 17px; }
.document-card-head .task-meta { margin: 0; }
.document-title { margin: 10px 0 9px; color: var(--navy-deep); font-size: 15px; font-weight: 700; line-height: 1.45; }
.document-title .task-meta { font-weight: 400; }
.document-chain { display: flex; align-items: stretch; gap: 6px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: thin; }
.document-step { flex: 1 0 128px; min-width: 128px; padding: 8px 9px; border: 1px solid var(--line); border-radius: 9px; background: #f7f9fb; color: var(--muted); }
.document-step.done { border-color: #b9dfcb; background: var(--green-soft); color: #236044; }
.document-step.current { border-color: #e3c48d; background: var(--amber-soft); color: #805015; }
.document-step.pending { border-style: dashed; }
.document-step-dot { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 4px; border-radius: 50%; color: #fff; background: #9aa7b1; font-size: 11px; font-weight: 700; }
.document-step.done .document-step-dot { background: var(--green); }
.document-step.current .document-step-dot { background: #b47a22; }
.document-step strong { color: inherit; font-size: 13px; }
.document-step small { display: block; margin-top: 4px; color: inherit; font-size: 11px; line-height: 1.45; }
.document-arrow { align-self: center; color: #aab7c1; font-size: 18px; }
.document-notes p { margin: 3px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.document-notes strong { color: var(--text); }
.document-detail-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.document-detail-head h3 { margin: 0 0 3px; color: var(--navy-deep); }
.document-detail-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 10px 0 14px; padding: 10px; background: #f7f9fb; border-radius: 9px; font-size: 12px; }
.document-detail-meta p { margin: 0; }
.document-timeline { margin-top: 10px; padding-left: 6px; }
.document-event { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; padding: 8px 0; border-bottom: 1px solid #edf1f5; }
.document-event:last-child { border-bottom: 0; }
.document-event-dot { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #9db9cd; }
.document-event p { margin: 4px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.document-event .task-meta { margin: 2px 0 0; }
.document-event strong { color: var(--navy-deep); font-size: 13px; }
@media (max-width: 720px) {
  .document-card { padding: 12px; }
  .document-card-head { align-items: flex-start; }
  .document-filter-bar { align-items: stretch; flex-direction: column; }
  .document-search input { width: 100%; flex: 1; }
  .document-search { width: 100%; }
  .document-detail-meta { grid-template-columns: 1fr; gap: 4px; }
  .document-step { flex-basis: 112px; min-width: 112px; }
}

/* 老板指挥台：把跨模块待办压到首屏，卡片可一键跳转。 */
.boss-command-hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 88% 8%, rgba(215, 172, 92, 0.20), transparent 26%),
    radial-gradient(circle at 12% 100%, rgba(52, 126, 165, 0.24), transparent 34%),
    linear-gradient(135deg, #0d2941 0%, #153e60 58%, #1a5070 100%);
  border: 0;
  box-shadow: 0 18px 38px rgba(13, 41, 65, 0.20);
}
.boss-command-hero .eyebrow { color: #b9d2e2; letter-spacing: 0.08em; }
.boss-command-hero h2 { max-width: 760px; margin-bottom: 8px; color: #fff; font-size: 26px; line-height: 1.35; }
.boss-command-hero p { max-width: 720px; margin-bottom: 0; color: #d6e5ef; }
.boss-command-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.boss-command-total {
  flex: 0 0 auto;
  min-width: 92px;
  padding: 10px 16px;
  text-align: center;
  border: 1px solid rgba(222, 189, 127, 0.48);
  border-radius: 13px;
  background: rgba(6, 26, 43, 0.30);
}
.boss-command-total strong { display: block; color: #f2d39d; font-size: 30px; line-height: 1.1; }
.boss-command-total span { color: #d6e5ef; font-size: 12px; }
.boss-command-teamline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  margin-top: 16px;
  padding-top: 11px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #c8dbe8;
  font-size: 12px;
}
.boss-command-teamline strong { color: #fff; font-weight: 600; }
.boss-command-teamline .link-button { margin-left: auto; color: #f0cc91; }
.command-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
  margin-top: 16px;
}
.command-card {
  display: block;
  width: 100%;
  min-height: 136px;
  padding: 13px 14px 11px;
  text-align: left;
  color: var(--text);
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(7, 26, 42, 0.12);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.command-card:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(7, 26, 42, 0.19); }
.command-card.attention { border-top: 3px solid #c89236; }
.command-card.calm { border-top: 3px solid #3b8a66; }
.command-card-kicker { display: block; color: var(--muted); font-size: 12px; }
.command-card-number { display: block; margin: 5px 0 2px; font-size: 25px; line-height: 1.15; }
.command-card.attention .command-card-number { color: #95621e; }
.command-card.calm .command-card-number { color: var(--green); }
.command-card-detail { display: block; min-height: 34px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.command-card-go { display: block; margin-top: 8px; color: var(--navy); font-size: 12px; font-weight: 600; }
.command-card-go span { float: right; }
.command-list-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #edf1f5;
}
.command-list-row:last-child { border-bottom: 0; }
.command-list-row p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.command-list-row .badge { justify-self: start; }
@media (max-width: 860px) {
  .command-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .boss-command-hero { padding: 18px 16px; }
  .boss-command-hero h2 { font-size: 21px; }
  .boss-command-top { align-items: flex-start; }
  .boss-command-total { min-width: 76px; padding: 8px 12px; }
  .boss-command-total strong { font-size: 24px; }
  .command-grid { grid-template-columns: 1fr; }
  .command-card { min-height: 0; }
  .command-card-detail { min-height: 0; }
  .command-list-row { grid-template-columns: 64px minmax(0, 1fr); }
  .command-list-row .button { grid-column: 2; justify-self: start; }
}

/* 客户低分回访：老板指派、责任人处理、老板确认闭环。 */
.followup-brief-card {
  border-left: 4px solid #c89236;
  background: linear-gradient(180deg, #fffdf8, #ffffff 70%);
}
.followup-brief-card.is-overdue { border-left-color: var(--red); background: linear-gradient(180deg, #fff9f7, #ffffff 70%); }
.followup-brief-card .card-header { margin-bottom: 6px; }
.followup-brief-line { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.followup-queue-card { border-top: 3px solid #c89236; }
.followup-owner-hero {
  background:
    radial-gradient(circle at 90% 0%, rgba(35, 122, 87, 0.12), transparent 34%),
    linear-gradient(135deg, #f7fbf9, #ffffff 66%);
  border-top: 3px solid var(--green);
}
.followup-metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(116px, 1fr));
  gap: 9px;
  margin: 12px 0 16px;
}
.followup-metric {
  padding: 10px 12px;
  border: 1px solid #e3eaef;
  border-radius: 10px;
  background: #f8fafb;
}
.followup-metric strong { display: block; color: var(--navy-deep); font-size: 23px; line-height: 1.2; }
.followup-metric span { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.followup-metric.attention { border-color: #eed7ae; background: #fffaf0; }
.followup-metric.attention strong { color: #95621e; }
.followup-metric.danger { border-color: #ecc8cd; background: #fff7f8; }
.followup-metric.danger strong { color: var(--red); }
.followup-metric.calm strong { color: var(--green); }
.followup-list { display: grid; gap: 11px; }
.followup-card {
  padding: 14px;
  border: 1px solid #e0e8ee;
  border-left: 4px solid #b9c8d3;
  border-radius: 12px;
  background: #fff;
}
.followup-card.status-unassigned { border-left-color: var(--red); background: #fffaf9; }
.followup-card.status-assigned,
.followup-card.status-processing { border-left-color: #c89236; }
.followup-card.status-done { border-left-color: #2e6e9e; background: #fbfdff; }
.followup-card.status-closed { border-left-color: var(--green); background: #fbfdfc; }
.followup-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.followup-card-head h3 { margin-bottom: 3px; color: var(--navy-deep); font-size: 16px; line-height: 1.45; }
.followup-card-score { flex: 0 0 auto; min-width: 72px; text-align: right; }
.followup-card-score strong { display: block; color: #b34a32; font-size: 27px; line-height: 1.2; }
.followup-card-score span { display: block; color: var(--muted); font-size: 11px; }
.followup-card-meta { display: flex; flex-wrap: wrap; gap: 7px 12px; align-items: center; margin: 8px 0 9px; color: var(--muted); font-size: 12px; }
.followup-card-meta strong { color: var(--navy-deep); font-weight: 600; }
.followup-card .score-list { margin: 4px 0 8px; }
.followup-card .eval-comment { margin-bottom: 9px; }
.followup-assign-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.followup-assign-row .followup-owner-select { width: auto; min-width: 190px; flex: 1 1 200px; }
.followup-result {
  margin-top: 9px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #f3f8f6;
  color: #455b55;
  font-size: 12px;
}
.followup-result > strong { display: block; margin-bottom: 3px; color: var(--navy-deep); }
.followup-result p { margin: 0; line-height: 1.6; }
.followup-result .badge { margin-top: 6px; }
.followup-close-note { margin-top: 7px !important; padding-top: 7px; border-top: 1px dashed #cfded8; color: #566b64; }
.followup-card .return-note { margin-top: 8px; }
.followup-card .task-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.followup-card .task-actions .form-help { flex: 1 1 220px; margin: 0; }
.followup-history { margin-top: 14px; padding-top: 11px; border-top: 1px solid #e8eeF3; }
.followup-history summary { cursor: pointer; color: var(--navy); font-size: 12px; font-weight: 600; }
.followup-history summary span { color: var(--muted); font-weight: 400; }
.followup-history-list { display: grid; gap: 8px; margin-top: 9px; }
.followup-history-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 9px;
  background: #f7f9fb;
}
.followup-history-row strong { color: var(--navy-deep); font-size: 13px; }
.followup-history-row p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.customer-followup-inline { margin-top: 8px; padding-top: 7px; border-top: 1px dashed #e1e9ef; }
@media (max-width: 720px) {
  .followup-metric-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .followup-card { padding: 12px; }
  .followup-card-head { gap: 8px; }
  .followup-card-score strong { font-size: 23px; }
  .followup-assign-row { align-items: stretch; flex-direction: column; }
  .followup-assign-row .followup-owner-select { width: 100%; }
  .followup-card .task-actions { align-items: stretch; flex-direction: column; }
  .followup-card .task-actions .button { width: 100%; }
  .followup-history-row { flex-direction: column; gap: 4px; }
}

