﻿:root {
  --bg: #eaf2ff;
  --paper: #fafdff;
  --paper-strong: #eef6ff;
  --ink: #102033;
  --muted: #5a6c84;
  --line: rgba(48, 111, 201, 0.16);
  --accent: #2f80ed;
  --accent-strong: #1558c0;
  --accent-soft: #d8eaff;
  --accent-deep: #0e3f8a;
  --sage: #dcecff;
  --forest: #1e5fae;
  --ok: #15956b;
  --warn: #b7791f;
  --shadow: 0 26px 60px rgba(18, 64, 128, 0.12);
  --shadow-soft: 0 16px 34px rgba(18, 64, 128, 0.1);
  --app-max-width: 1740px;
  --app-page-gutter: 20px;
  --app-sidebar-width: 208px;
  --app-shell-gap: 8px;
}

/* 2026-06-02 member table hotfix final override: keep at file end to beat legacy rules. */
.recheck-page-shell .member-data-table {
  min-width: 1540px !important;
}

.recheck-page-shell .member-data-table th:nth-child(2) {
  width: 178px !important;
}

.recheck-page-shell .member-data-table th:nth-child(3) {
  width: 152px !important;
}

.recheck-page-shell .member-data-table th:nth-child(4) {
  width: 316px !important;
}

.recheck-page-shell .member-data-table th:nth-child(5) {
  width: 226px !important;
}

.recheck-page-shell .member-data-table th:nth-child(6) {
  width: 286px !important;
}

.recheck-page-shell .member-data-table th:nth-child(7) {
  width: 192px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] .member-group-cell,
.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-group-cell {
  gap: 13px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] .member-mini-field,
.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-mini-field {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 6px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] .member-mini-field span,
.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-mini-field span {
  display: block !important;
  white-space: normal !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  font-weight: 900 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] .member-cell-input,
.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-cell-input {
  height: 44px !important;
  min-height: 44px !important;
  padding: 10px 12px !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-benefit-stack {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-benefit-stack > * {
  min-width: 0 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-lock-chip {
  grid-column: 1 / -1 !important;
  justify-self: start !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="操作"] .member-row-actions {
  gap: 8px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="操作"] .member-row-actions > :is(button, a),
.recheck-page-shell .member-data-table td[data-mobile-label="操作"] .member-more-actions summary {
  min-height: 38px !important;
  font-size: 12px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="操作"] .member-save-chip,
.recheck-page-shell .member-data-table td[data-mobile-label="操作"] .member-handled-check {
  justify-content: center !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="操作"] .member-more-actions > div {
  min-width: 182px !important;
}

/* 2026-06-02 paid member table final polish: export buttons in filter bar, wider schedule column, denser commission/benefits. */
.recheck-page-shell .member-query-actions {
  display: grid !important;
  grid-template-columns: 0.95fr 0.8fr 1.05fr 1.05fr !important;
  gap: 10px !important;
  align-items: end !important;
  min-width: 0 !important;
}

.recheck-page-shell .member-query-actions > button {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 46px !important;
  padding: 0 12px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-query-actions .member-query-export-button {
  border-color: rgba(20, 88, 173, 0.16) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 255, 0.92)) !important;
  color: #1458ad !important;
}

.recheck-page-shell .member-query-export-actions {
  display: contents !important;
}

.recheck-page-shell .member-scroll-table {
  overflow-x: auto !important;
}

.recheck-page-shell .member-data-table {
  table-layout: fixed !important;
  min-width: 1500px !important;
  width: 100% !important;
}

.recheck-page-shell .member-data-table th,
.recheck-page-shell .member-data-table td {
  box-sizing: border-box !important;
  overflow: visible !important;
}

.recheck-page-shell .member-data-table th:nth-child(2) {
  width: 168px !important;
}

.recheck-page-shell .member-data-table th:nth-child(3) {
  width: 140px !important;
}

.recheck-page-shell .member-data-table th:nth-child(4) {
  width: 360px !important;
}

.recheck-page-shell .member-data-table th:nth-child(5) {
  width: 232px !important;
}

.recheck-page-shell .member-data-table th:nth-child(6) {
  width: 258px !important;
}

.recheck-page-shell .member-data-table th:nth-child(7) {
  width: 168px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"],
.recheck-page-shell .member-data-table td[data-mobile-label="收费"],
.recheck-page-shell .member-data-table td[data-mobile-label="操作"],
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"],
.recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] {
  min-width: 0 !important;
  max-width: 100% !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-cell,
.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-phone,
.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-edit {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-head strong,
.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-head small {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-cell-input {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 8px 9px !important;
  font-size: 13px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] .member-group-cell {
  gap: 9px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] .member-mini-field {
  grid-template-columns: 72px minmax(0, 1fr) !important;
  gap: 8px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] .member-mini-field span {
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] .member-cell-input {
  height: 40px !important;
  min-height: 40px !important;
  padding: 8px 10px !important;
  font-size: 13px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-compact {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 6px !important;
  min-width: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  gap: 7px !important;
  align-items: center !important;
  min-width: 0 !important;
  padding: 0 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary span {
  font-size: 11px !important;
  color: #6b7d92 !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary small {
  overflow: hidden !important;
  color: #163a5c !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-lines {
  display: grid !important;
  gap: 4px !important;
  min-width: 0 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line {
  display: grid !important;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) auto !important;
  gap: 6px !important;
  align-items: center !important;
  min-width: 0 !important;
  padding: 5px 7px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(20, 88, 173, 0.08) !important;
  background: rgba(247, 250, 255, 0.86) !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line span,
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line small,
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line em {
  min-width: 0 !important;
  overflow: hidden !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line span {
  color: #1458ad !important;
  font-weight: 900 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line small {
  color: #5c6f86 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line em {
  color: #087443 !important;
  font-style: normal !important;
  font-weight: 900 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-group-cell,
.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-mini-field {
  min-width: 0 !important;
  max-width: 100% !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-group-cell {
  gap: 8px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-mini-field {
  grid-template-columns: 58px minmax(0, 1fr) !important;
  gap: 7px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-mini-field span {
  white-space: nowrap !important;
  font-size: 11px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-cell-input {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 7px 9px !important;
  font-size: 12px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-benefit-stack {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 5px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-benefit-button {
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 30px !important;
  padding: 4px 6px !important;
  border-radius: 9px !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-lock-chip {
  grid-column: 1 / -1 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="操作"] .member-row-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="操作"] .member-row-actions > :is(button, a, label, details),
.recheck-page-shell .member-data-table td[data-mobile-label="操作"] .member-more-actions summary {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 34px !important;
  padding: 7px 8px !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="操作"] .member-save-chip {
  min-height: 28px !important;
  padding: 5px 8px !important;
  font-size: 11px !important;
}

/* 2026-06-02 final containment override: identity, commission and benefits stay inside cells. */
.recheck-page-shell .member-data-table,
.recheck-page-shell .member-data-table * {
  box-sizing: border-box !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"],
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"],
.recheck-page-shell .member-data-table td[data-mobile-label="收费"] {
  overflow: hidden !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-cell,
.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-group-cell,
.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-mini-field,
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-compact {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-cell {
  gap: 7px !important;
  overflow: hidden !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-head strong,
.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-head small,
.recheck-page-shell .member-core-cell .member-appointment-corner.is-inline,
.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-hint,
.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-row-warning,
.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-row-ok {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-head small,
.recheck-page-shell .member-core-cell .member-appointment-corner.is-inline {
  max-width: 86px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-phone,
.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-edit {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-edit {
  grid-template-columns: 48px minmax(0, 1fr) !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-cell-input,
.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-cell-input {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary {
  min-height: 34px !important;
  padding: 6px 8px !important;
  border-radius: 12px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-chip {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 7px 8px !important;
  border-radius: 12px !important;
  gap: 2px !important;
  box-shadow: none !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-chip span,
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-chip small,
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-chip em {
  font-size: 11px !important;
  line-height: 1.2 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-chip strong {
  font-size: 14px !important;
  line-height: 1.15 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-benefit-stack {
  width: 100% !important;
  max-width: 100% !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-benefit-stack button {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 34px !important;
  padding: 5px 7px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-lock-chip {
  max-width: 100% !important;
  min-height: 28px !important;
  padding: 4px 8px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-query-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr auto !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.recheck-page-shell .member-query-export-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(116px, 1fr)) !important;
  gap: 8px !important;
  min-width: 248px !important;
}

.recheck-page-shell .member-query-export-actions .ghost {
  width: 100% !important;
  min-height: 46px !important;
  border-radius: 16px !important;
}

/* 2026-06-02 final containment override: identity, commission and benefits stay inside cells. */
.recheck-page-shell .member-data-table,
.recheck-page-shell .member-data-table * {
  box-sizing: border-box !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"],
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"],
.recheck-page-shell .member-data-table td[data-mobile-label="收费"] {
  overflow: hidden !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-cell,
.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-group-cell,
.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-mini-field,
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-compact {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-cell {
  gap: 7px !important;
  overflow: hidden !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-head strong,
.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-head small,
.recheck-page-shell .member-core-cell .member-appointment-corner.is-inline,
.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-hint,
.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-row-warning,
.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-row-ok {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-head small,
.recheck-page-shell .member-core-cell .member-appointment-corner.is-inline {
  max-width: 86px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-phone,
.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-edit {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-edit {
  grid-template-columns: 48px minmax(0, 1fr) !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-cell-input,
.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-cell-input {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary {
  min-height: 34px !important;
  padding: 6px 8px !important;
  border-radius: 12px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-chip {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 7px 8px !important;
  border-radius: 12px !important;
  gap: 2px !important;
  box-shadow: none !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-chip span,
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-chip small,
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-chip em {
  font-size: 11px !important;
  line-height: 1.2 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-chip strong {
  font-size: 14px !important;
  line-height: 1.15 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-benefit-stack {
  width: 100% !important;
  max-width: 100% !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-benefit-stack button {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 34px !important;
  padding: 5px 7px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-lock-chip {
  max-width: 100% !important;
  min-height: 28px !important;
  padding: 4px 8px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-query-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr auto !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.recheck-page-shell .member-query-export-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(116px, 1fr)) !important;
  gap: 8px !important;
  min-width: 248px !important;
}

.recheck-page-shell .member-query-export-actions .ghost {
  width: 100% !important;
  min-height: 46px !important;
  border-radius: 16px !important;
}

/* 2026-06-02 table containment pass: keep identity, commission and benefits inside their cells. */
.recheck-page-shell .member-data-table,
.recheck-page-shell .member-data-table * {
  box-sizing: border-box !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"],
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"],
.recheck-page-shell .member-data-table td[data-mobile-label="收费"] {
  overflow: hidden !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-cell {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  gap: 7px !important;
  overflow: hidden !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-head strong {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-head small,
.recheck-page-shell .member-core-cell .member-appointment-corner.is-inline {
  max-width: 86px !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-phone,
.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-edit {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-edit {
  grid-template-columns: 48px minmax(0, 1fr) !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-phone .member-cell-input,
.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-edit .member-cell-input {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-hint,
.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-row-warning,
.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-row-ok {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-compact {
  width: 100% !important;
  max-width: 100% !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary {
  min-height: 34px !important;
  padding: 6px 8px !important;
  border-radius: 12px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-chip {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 7px 8px !important;
  border-radius: 12px !important;
  gap: 2px !important;
  box-shadow: none !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-chip span,
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-chip small,
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-chip em {
  font-size: 11px !important;
  line-height: 1.2 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-chip strong {
  font-size: 14px !important;
  line-height: 1.15 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-group-cell,
.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-mini-field {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-benefit-stack {
  width: 100% !important;
  max-width: 100% !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-benefit-stack button {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 34px !important;
  padding: 5px 7px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-lock-chip {
  max-width: 100% !important;
  min-height: 28px !important;
  padding: 4px 8px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-query-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr auto !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.recheck-page-shell .member-query-export-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(116px, 1fr)) !important;
  gap: 8px !important;
  min-width: 248px !important;
}

.recheck-page-shell .member-query-export-actions .ghost {
  width: 100% !important;
  min-height: 46px !important;
  border-radius: 16px !important;
}

/* 2026-06-02 table containment pass: keep identity, commission and benefits inside their cells. */
.recheck-page-shell .member-data-table,
.recheck-page-shell .member-data-table * {
  box-sizing: border-box !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] {
  overflow: hidden !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-cell {
  min-width: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  gap: 7px !important;
  overflow: hidden !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  min-width: 0 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-head strong {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-head small,
.recheck-page-shell .member-core-cell .member-appointment-corner.is-inline {
  max-width: 86px !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-phone,
.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-edit {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-edit {
  grid-template-columns: 48px minmax(0, 1fr) !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-phone .member-cell-input,
.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-edit .member-cell-input {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-hint,
.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-row-warning,
.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-row-ok {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] {
  overflow: hidden !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-compact {
  width: 100% !important;
  max-width: 100% !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary {
  min-height: 34px !important;
  padding: 6px 8px !important;
  border-radius: 12px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-chip {
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 7px 8px !important;
  border-radius: 12px !important;
  gap: 2px !important;
  box-shadow: none !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-chip span {
  font-size: 11px !important;
  line-height: 1.2 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-chip strong {
  font-size: 14px !important;
  line-height: 1.15 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-chip small,
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-chip em {
  font-size: 11px !important;
  line-height: 1.2 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] {
  overflow: hidden !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-group-cell,
.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-mini-field {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-benefit-stack {
  width: 100% !important;
  max-width: 100% !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-benefit-stack button {
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 34px !important;
  padding: 5px 7px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-lock-chip {
  max-width: 100% !important;
  min-height: 28px !important;
  padding: 4px 8px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-query-actions {
  display: grid !important;
  grid-template-columns: 1fr 1fr auto !important;
  gap: 10px !important;
  align-items: stretch !important;
}

.recheck-page-shell .member-query-export-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(116px, 1fr)) !important;
  gap: 8px !important;
  min-width: 248px !important;
}

.recheck-page-shell .member-query-export-actions .ghost {
  width: 100% !important;
  min-height: 46px !important;
  border-radius: 16px !important;
}

/* 2026-06-02 member table hotfix: widen crowded paid-member table fields on live PC page. */
.recheck-page-shell .member-data-table {
  min-width: 1540px !important;
}

.recheck-page-shell .member-data-table th:nth-child(2) {
  width: 178px !important;
}

.recheck-page-shell .member-data-table th:nth-child(3) {
  width: 152px !important;
}

.recheck-page-shell .member-data-table th:nth-child(4) {
  width: 316px !important;
}

.recheck-page-shell .member-data-table th:nth-child(5) {
  width: 226px !important;
}

.recheck-page-shell .member-data-table th:nth-child(6) {
  width: 286px !important;
}

.recheck-page-shell .member-data-table th:nth-child(7) {
  width: 192px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] .member-group-cell,
.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-group-cell {
  gap: 13px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] .member-mini-field,
.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-mini-field {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 6px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] .member-mini-field span,
.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-mini-field span {
  display: block !important;
  white-space: normal !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  font-weight: 900 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] .member-cell-input,
.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-cell-input {
  height: 44px !important;
  min-height: 44px !important;
  padding: 10px 12px !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-benefit-stack {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-benefit-stack > * {
  min-width: 0 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-lock-chip {
  grid-column: 1 / -1 !important;
  justify-self: start !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="操作"] .member-row-actions {
  gap: 8px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="操作"] .member-row-actions > :is(button, a),
.recheck-page-shell .member-data-table td[data-mobile-label="操作"] .member-more-actions summary {
  min-height: 38px !important;
  font-size: 12px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="操作"] .member-save-chip,
.recheck-page-shell .member-data-table td[data-mobile-label="操作"] .member-handled-check {
  justify-content: center !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="操作"] .member-more-actions > div {
  min-width: 182px !important;
}

/* 20260531memberlistflow1: strengthen mobile first-screen rhythm for member list, pagination, and detail-entry flow. */
.member-list-mobile-hero {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(58, 116, 193, 0.12);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 140, 240, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 255, 0.94));
  box-shadow:
    0 16px 30px rgba(18, 64, 128, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.member-list-mobile-hero-copy {
  display: grid;
  gap: 6px;
}

.member-list-mobile-hero-kicker {
  color: #6d88a7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.member-list-mobile-hero-copy strong {
  color: #163b64;
  font-size: 24px;
  line-height: 1.24;
}

.member-list-mobile-hero-copy p {
  margin: 0;
  color: #607b9a;
  font-size: 13px;
  line-height: 1.62;
}

.member-list-mobile-hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.member-list-mobile-hero-facts article,
.member-pagination-hero {
  display: grid;
  gap: 5px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(58, 116, 193, 0.1);
  background: rgba(255, 255, 255, 0.84);
}

.member-list-mobile-hero-facts span,
.member-pagination-hero span {
  color: #7290af;
  font-size: 11px;
}

.member-list-mobile-hero-facts strong,
.member-pagination-hero strong {
  color: #163b64;
  font-size: 18px;
  line-height: 1.22;
}

.member-list-mobile-hero-facts p {
  margin: 0;
  color: #6983a1;
  font-size: 11px;
  line-height: 1.45;
}

.member-list-mobile-hero-focus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.member-list-mobile-hero-focus > div:first-child {
  display: grid;
  gap: 5px;
}

.member-list-mobile-hero-focus span {
  color: #7891ad;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.member-list-mobile-hero-focus strong {
  color: #14365d;
  font-size: 16px;
  line-height: 1.35;
}

.member-list-mobile-hero-focus p {
  margin: 0;
  color: #67819f;
  font-size: 12px;
  line-height: 1.55;
}

.member-list-mobile-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.member-card-detail-link {
  justify-content: center;
}

@media (max-width: 900px) {
  .member-list-mobile-hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 20260531crmprofileflow1: add stronger mobile first-screen hierarchy for crm profile list/detail pages. */
.crm-profile-hero,
.crm-profile-detail-hero {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(58, 116, 193, 0.12);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 140, 240, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 255, 0.94));
  box-shadow:
    0 16px 30px rgba(18, 64, 128, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.crm-profile-hero-copy,
.crm-profile-detail-hero-copy {
  display: grid;
  gap: 6px;
}

.crm-profile-hero-kicker,
.crm-profile-detail-hero-kicker {
  color: #6d88a7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.crm-profile-hero-copy strong,
.crm-profile-detail-hero-copy strong {
  color: #163b64;
  font-size: 24px;
  line-height: 1.24;
}

.crm-profile-hero-copy p,
.crm-profile-detail-hero-copy p {
  margin: 0;
  color: #607b9a;
  font-size: 13px;
  line-height: 1.62;
}

.crm-profile-hero-facts,
.crm-profile-detail-hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.crm-profile-hero-facts article,
.crm-profile-detail-hero-facts article {
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(58, 116, 193, 0.1);
  background: rgba(255, 255, 255, 0.84);
}

.crm-profile-hero-facts span,
.crm-profile-detail-hero-facts span {
  color: #7290af;
  font-size: 11px;
}

.crm-profile-hero-facts strong,
.crm-profile-detail-hero-facts strong {
  color: #163b64;
  font-size: 18px;
  line-height: 1.22;
}

.crm-profile-hero-facts p,
.crm-profile-detail-hero-facts p {
  margin: 0;
  color: #6983a1;
  font-size: 11px;
  line-height: 1.45;
}

.crm-profile-hero-focus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.crm-profile-hero-focus > div:first-child {
  display: grid;
  gap: 5px;
}

.crm-profile-hero-focus span {
  color: #7891ad;
  font-size: 11px;
  letter-spacing: 0.06em;
}

.crm-profile-hero-focus strong {
  color: #14365d;
  font-size: 16px;
  line-height: 1.35;
}

.crm-profile-hero-focus p {
  margin: 0;
  color: #67819f;
  font-size: 12px;
  line-height: 1.55;
}

.crm-profile-hero-actions,
.crm-profile-detail-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

@media (max-width: 900px) {
  .crm-profile-hero-facts,
  .crm-profile-detail-hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 20260531memberdetailhomeentry1: strengthen mobile home route entry cards and member-detail first screen hierarchy. */
.mobile-route-hub {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(58, 116, 193, 0.1);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 140, 240, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 255, 0.94));
  box-shadow:
    0 18px 34px rgba(18, 64, 128, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.mobile-route-hub-head {
  margin-bottom: 0;
}

.mobile-route-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mobile-route-hub-card {
  display: grid;
  gap: 8px;
  min-height: 136px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(58, 116, 193, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.92));
  color: inherit;
  text-decoration: none;
  box-shadow:
    0 14px 28px rgba(18, 64, 128, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.mobile-route-hub-card span {
  color: #6b86a6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.mobile-route-hub-card strong {
  color: #163b64;
  font-size: 17px;
  line-height: 1.35;
}

.mobile-route-hub-card p {
  margin: 0;
  color: #5d7898;
  font-size: 12px;
  line-height: 1.58;
}

.mobile-route-hub-card.mine {
  background:
    radial-gradient(circle at 100% 0%, rgba(68, 150, 238, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 255, 0.94));
}

.mobile-route-hub-card.messages {
  background:
    radial-gradient(circle at 100% 0%, rgba(51, 185, 122, 0.15), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 251, 246, 0.94));
}

.mobile-route-hub-card.reminders {
  background:
    radial-gradient(circle at 100% 0%, rgba(243, 159, 67, 0.15), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 240, 0.95));
}

.mobile-route-hub-card.members {
  background:
    radial-gradient(circle at 100% 0%, rgba(114, 105, 255, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 244, 255, 0.94));
}

.mobile-route-dock {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mobile-route-dock-action {
  display: grid;
  gap: 6px;
  min-height: 92px;
  padding: 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(58, 116, 193, 0.11);
  color: inherit;
  text-decoration: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.93));
  box-shadow:
    0 12px 24px rgba(18, 64, 128, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.mobile-route-dock-action span {
  color: #6a86a6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.mobile-route-dock-action strong {
  color: #163b64;
  font-size: 15px;
  line-height: 1.32;
}

.mobile-route-dock-action.mine {
  background:
    radial-gradient(circle at 100% 0%, rgba(68, 150, 238, 0.16), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 255, 0.94));
}

.mobile-route-dock-action.messages {
  background:
    radial-gradient(circle at 100% 0%, rgba(51, 185, 122, 0.16), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 251, 246, 0.94));
}

.mobile-route-dock-action.reminders {
  background:
    radial-gradient(circle at 100% 0%, rgba(243, 159, 67, 0.16), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 249, 240, 0.95));
}

.mobile-route-dock-action.members {
  background:
    radial-gradient(circle at 100% 0%, rgba(114, 105, 255, 0.14), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 244, 255, 0.94));
}

.mobile-route-status {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(230px, 0.75fr);
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(58, 116, 193, 0.11);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 140, 240, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(240, 247, 255, 0.93));
  box-shadow:
    0 14px 28px rgba(18, 64, 128, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.mobile-route-status-copy {
  display: grid;
  gap: 6px;
}

.mobile-route-status-copy strong {
  color: #163b64;
  font-size: 17px;
  line-height: 1.35;
}

.mobile-route-status-copy p {
  margin: 0;
  color: #5d7898;
  font-size: 12px;
  line-height: 1.58;
}

.mobile-route-status-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mobile-route-status-actions > * {
  width: 100%;
  min-height: 42px;
  justify-content: center;
}

.reminders-queue-banner {
  display: grid;
  gap: 6px;
  padding: 12px 13px;
  border-radius: 16px;
  border: 1px solid rgba(58, 116, 193, 0.11);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 140, 240, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(241, 248, 255, 0.93));
}

.reminders-queue-banner strong {
  color: #163b64;
  font-size: 15px;
  line-height: 1.35;
}

.reminders-queue-banner p {
  margin: 0;
  color: #5f7b99;
  font-size: 12px;
  line-height: 1.56;
}

.reminders-top-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.reminders-top-actions > * {
  min-height: 40px;
  justify-content: center;
}

.reminder-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reminder-link-row > * {
  min-height: 36px;
}

.member-detail-hero {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(58, 116, 193, 0.12);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 140, 240, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 255, 0.94));
  box-shadow:
    0 16px 30px rgba(18, 64, 128, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.member-detail-hero-main {
  display: grid;
  gap: 10px;
}

.member-detail-hero-copy {
  display: grid;
  gap: 6px;
}

.member-detail-hero-kicker {
  color: #6d88a7;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.member-detail-hero-copy strong {
  color: #163b64;
  font-size: 22px;
  line-height: 1.26;
}

.member-detail-hero-copy p {
  margin: 0;
  color: #607b9a;
  font-size: 13px;
  line-height: 1.62;
}

.member-detail-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.member-detail-hero-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.member-detail-hero-facts article {
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(58, 116, 193, 0.1);
  background: rgba(255, 255, 255, 0.84);
}

.member-detail-hero-facts span {
  color: #7290af;
  font-size: 11px;
}

.member-detail-hero-facts strong {
  color: #163b64;
  font-size: 17px;
  line-height: 1.28;
}

@media (max-width: 900px) {
  .mobile-route-hub-grid,
  .member-detail-hero-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-route-status {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .mobile-route-hub {
    gap: 12px;
    padding: 15px !important;
    border-radius: 24px !important;
  }

  .mobile-route-hub-grid {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }

  .mobile-route-hub-card {
    min-height: 126px;
    padding: 14px;
    border-radius: 18px;
  }

  .mobile-route-hub-card strong {
    font-size: 15px;
  }

  .mobile-route-hub-card p {
    font-size: 11px;
    line-height: 1.56;
  }

  .member-detail-hero {
    padding: 14px !important;
    border-radius: 20px !important;
    gap: 10px !important;
  }

  .member-detail-hero-copy strong {
    font-size: 18px !important;
    line-height: 1.34 !important;
  }

  .member-detail-hero-copy p {
    font-size: 12px !important;
    line-height: 1.58 !important;
  }

  .member-detail-hero-tags {
    gap: 6px !important;
  }

  .member-detail-hero-facts {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .member-detail-hero-facts article {
    min-height: 72px !important;
    padding: 11px !important;
    border-radius: 15px !important;
  }

  .member-detail-hero-facts strong {
    font-size: 15px !important;
  }
}

/* 20260531homeworkbenchreminderspolish1: tighten mobile homepage/workbench and reminders queue rhythm after real-phone review. */
@media (max-width: 560px) {
  body.home-compact-mode .hero,
  body.home-open-route-active[data-home-open-route="mine"] .hero,
  body.home-open-route-active[data-home-open-route="messages"] .hero {
    padding: 14px !important;
    border-radius: 24px !important;
    gap: 12px !important;
    background:
      radial-gradient(circle at top right, rgba(38, 132, 228, 0.16), transparent 30%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 255, 0.94)) !important;
    box-shadow:
      0 18px 38px rgba(18, 64, 128, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
  }

  body.home-compact-mode .hero-main,
  body.home-open-route-active[data-home-open-route="mine"] .hero-main,
  body.home-open-route-active[data-home-open-route="messages"] .hero-main {
    gap: 8px !important;
  }

  body.home-compact-mode .hero h1,
  body.home-open-route-active[data-home-open-route="mine"] .hero h1,
  body.home-open-route-active[data-home-open-route="messages"] .hero h1 {
    font-size: 25px !important;
    line-height: 1.14 !important;
    letter-spacing: -0.04em !important;
  }

  body.home-compact-mode .hero-copy,
  body.home-open-route-active[data-home-open-route="mine"] .hero-copy,
  body.home-open-route-active[data-home-open-route="messages"] .hero-copy {
    font-size: 12px !important;
    line-height: 1.6 !important;
    color: #5f7a98 !important;
  }

  body.home-compact-mode .hero-actions,
  body.home-open-route-active[data-home-open-route="mine"] .hero-actions,
  body.home-open-route-active[data-home-open-route="messages"] .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  body.home-compact-mode .hero-actions > *,
  body.home-open-route-active[data-home-open-route="mine"] .hero-actions > *,
  body.home-open-route-active[data-home-open-route="messages"] .hero-actions > * {
    min-height: 42px !important;
    width: 100% !important;
    justify-content: center !important;
    padding: 0 10px !important;
  }

  body.home-compact-mode .hero-note,
  body.home-open-route-active[data-home-open-route="mine"] .hero-note,
  body.home-open-route-active[data-home-open-route="messages"] .hero-note {
    padding: 12px !important;
    border-radius: 18px !important;
    background:
      linear-gradient(180deg, rgba(247, 251, 255, 0.96), rgba(237, 246, 255, 0.92)) !important;
    border: 1px solid rgba(58, 116, 193, 0.11) !important;
  }

  body.home-compact-mode .hero-note p,
  body.home-open-route-active[data-home-open-route="mine"] .hero-note p,
  body.home-open-route-active[data-home-open-route="messages"] .hero-note p {
    font-size: 12px !important;
    line-height: 1.55 !important;
  }

  body.home-compact-mode .hero-note-stack,
  body.home-open-route-active[data-home-open-route="mine"] .hero-note-stack,
  body.home-open-route-active[data-home-open-route="messages"] .hero-note-stack {
    gap: 8px !important;
  }

  body.home-compact-mode .hero-note-stack section,
  body.home-open-route-active[data-home-open-route="mine"] .hero-note-stack section,
  body.home-open-route-active[data-home-open-route="messages"] .hero-note-stack section {
    padding: 10px 11px !important;
    border-radius: 14px !important;
  }

  body.home-compact-mode .global-search-panel,
  body.home-open-route-active[data-home-open-route="mine"] .global-search-panel,
  body.home-open-route-active[data-home-open-route="messages"] .global-search-panel {
    padding: 14px !important;
    border-radius: 22px !important;
  }

  body.home-compact-mode .global-search-box,
  body.home-open-route-active[data-home-open-route="mine"] .global-search-box,
  body.home-open-route-active[data-home-open-route="messages"] .global-search-box {
    gap: 7px !important;
  }

  body.home-compact-mode .global-search-box input,
  body.home-open-route-active[data-home-open-route="mine"] .global-search-box input,
  body.home-open-route-active[data-home-open-route="messages"] .global-search-box input {
    min-height: 46px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
  }

  body.home-compact-mode .quick-link-strip,
  body.home-open-route-active[data-home-open-route="mine"] .quick-link-strip,
  body.home-open-route-active[data-home-open-route="messages"] .quick-link-strip {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  body.home-compact-mode .quick-link-card,
  body.home-open-route-active[data-home-open-route="mine"] .quick-link-card,
  body.home-open-route-active[data-home-open-route="messages"] .quick-link-card {
    min-height: 112px !important;
    padding: 12px !important;
    border-radius: 18px !important;
    gap: 5px !important;
  }

  body.home-compact-mode .quick-link-card strong,
  body.home-open-route-active[data-home-open-route="mine"] .quick-link-card strong,
  body.home-open-route-active[data-home-open-route="messages"] .quick-link-card strong {
    font-size: 14px !important;
    line-height: 1.34 !important;
  }

  body.home-compact-mode .quick-link-card p,
  body.home-compact-mode .quick-link-card span,
  body.home-open-route-active[data-home-open-route="mine"] .quick-link-card p,
  body.home-open-route-active[data-home-open-route="mine"] .quick-link-card span,
  body.home-open-route-active[data-home-open-route="messages"] .quick-link-card p,
  body.home-open-route-active[data-home-open-route="messages"] .quick-link-card span {
    font-size: 11px !important;
    line-height: 1.45 !important;
  }

  .mobile-workbench-kicker {
    display: inline-flex !important;
    align-items: center !important;
    width: fit-content !important;
    padding: 5px 10px !important;
    border-radius: 999px !important;
    background: rgba(39, 132, 228, 0.12) !important;
    color: #2a6aaa !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
  }

  body.home-compact-mode #employee-workbench-panel,
  body.home-compact-mode #risk-workbench-panel,
  body.home-compact-mode #mobile-today-panel,
  body.home-open-route-active[data-home-open-route="mine"] #employee-workbench-panel,
  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel {
    padding: 15px !important;
    border-radius: 24px !important;
  }

  body.home-compact-mode #employee-workbench-panel .panel-head,
  body.home-compact-mode #risk-workbench-panel .panel-head,
  body.home-compact-mode #mobile-today-panel .panel-head,
  body.home-open-route-active[data-home-open-route="mine"] #employee-workbench-panel .panel-head,
  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel .panel-head {
    gap: 7px !important;
    margin-bottom: 13px !important;
  }

  body.home-compact-mode #employee-workbench-panel .panel-head h2,
  body.home-compact-mode #risk-workbench-panel .panel-head h2,
  body.home-compact-mode #mobile-today-panel .panel-head h2,
  body.home-open-route-active[data-home-open-route="mine"] #employee-workbench-panel .panel-head h2,
  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel .panel-head h2 {
    font-size: 23px !important;
  }

  body.home-compact-mode #employee-workbench-panel .panel-head p,
  body.home-compact-mode #risk-workbench-panel .panel-head p,
  body.home-compact-mode #mobile-today-panel .panel-head p,
  body.home-open-route-active[data-home-open-route="mine"] #employee-workbench-panel .panel-head p,
  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel .panel-head p {
    font-size: 12px !important;
    line-height: 1.6 !important;
  }

  body.home-compact-mode .stats,
  body.home-open-route-active[data-home-open-route="mine"] .stats,
  body.home-open-route-active[data-home-open-route="messages"] .stats {
    gap: 8px !important;
  }

  body.home-compact-mode .stats > *,
  body.home-open-route-active[data-home-open-route="mine"] .stats > *,
  body.home-open-route-active[data-home-open-route="messages"] .stats > * {
    min-height: 92px !important;
    padding: 12px !important;
    border-radius: 18px !important;
  }

  body.home-compact-mode .activity-panel,
  body.home-open-route-active[data-home-open-route="mine"] .activity-panel,
  body.home-open-route-active[data-home-open-route="messages"] .activity-panel {
    padding: 14px !important;
    border-radius: 22px !important;
  }

  body.home-compact-mode .activity-tabs,
  body.home-open-route-active[data-home-open-route="mine"] .activity-tabs,
  body.home-open-route-active[data-home-open-route="messages"] .activity-tabs {
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
  }

  body.home-compact-mode .activity-tabs > *,
  body.home-open-route-active[data-home-open-route="mine"] .activity-tabs > *,
  body.home-open-route-active[data-home-open-route="messages"] .activity-tabs > * {
    min-height: 40px !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .reminders-page-body .recheck-page-shell {
    padding-bottom: calc(26px + env(safe-area-inset-bottom)) !important;
  }

  .reminders-page-panel {
    padding: 14px !important;
    border-radius: 22px !important;
    border: 1px solid rgba(58, 116, 193, 0.14) !important;
    background:
      radial-gradient(circle at 100% 0%, rgba(45, 140, 240, 0.1), transparent 28%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 249, 255, 0.94)) !important;
    box-shadow:
      0 16px 34px rgba(18, 64, 128, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
  }

  .reminders-mobile-summary {
    display: grid !important;
    gap: 8px !important;
  }

  .reminders-mobile-summary-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .reminders-page-panel .activity-summary-card {
    min-height: 88px !important;
    padding: 11px 10px !important;
    border-radius: 16px !important;
  }

  .reminders-page-panel .activity-summary-card strong {
    font-size: 22px !important;
    line-height: 1.1 !important;
  }

  .reminders-page-panel .activity-summary-card span {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  .reminders-filter-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
  }

  .reminders-filter-row button {
    min-height: 40px !important;
    width: 100% !important;
    justify-content: center !important;
    border-radius: 14px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    padding: 0 10px !important;
  }

  .reminders-queue-banner {
    padding: 11px 12px !important;
    border-radius: 15px !important;
  }

  .reminders-batch-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
  }

  .reminders-batch-actions > * {
    min-height: 40px !important;
    width: 100% !important;
    justify-content: center !important;
    border-radius: 14px !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
    padding: 0 10px !important;
  }

  .reminders-top-actions {
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
  }

  .reminders-top-actions > * {
    width: 100% !important;
    min-height: 40px !important;
  }

  .reminders-runtime-tip {
    padding: 10px 12px !important;
    border-radius: 14px !important;
    background: rgba(242, 248, 255, 0.82) !important;
    border: 1px solid rgba(58, 116, 193, 0.08) !important;
    font-size: 11px !important;
    line-height: 1.55 !important;
    color: #64809f !important;
  }

  .reminder-card {
    display: grid !important;
    gap: 10px !important;
    padding: 13px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(58, 116, 193, 0.11) !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.94)) !important;
    box-shadow:
      0 12px 24px rgba(18, 64, 128, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  }

  .reminder-card .card-head {
    align-items: start !important;
    gap: 7px !important;
  }

  .reminder-card .card-head h3 {
    font-size: 15px !important;
    line-height: 1.4 !important;
    color: #173d69 !important;
  }

  .reminder-select-row {
    align-items: start !important;
    gap: 8px !important;
  }

  .reminder-meta-stack {
    display: grid !important;
    gap: 4px !important;
  }

  .reminder-meta-stack p {
    font-size: 12px !important;
    line-height: 1.52 !important;
    color: #647f9c !important;
  }

  .reminder-link-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .reminder-link-row > * {
    width: 100% !important;
    min-height: 40px !important;
    justify-content: center !important;
  }

  .reminder-card-content {
    margin: 0 !important;
    padding: 11px 12px !important;
    border-radius: 14px !important;
    background: rgba(242, 248, 255, 0.9) !important;
    border: 1px solid rgba(58, 116, 193, 0.08) !important;
    font-size: 12px !important;
    line-height: 1.58 !important;
    color: #33516f !important;
    white-space: pre-wrap !important;
    word-break: break-word !important;
  }

  .reminder-result-note {
    padding: 10px 11px !important;
    border-radius: 14px !important;
    gap: 6px !important;
  }

  .reminder-result-note input {
    min-height: 40px !important;
    border-radius: 12px !important;
    font-size: 12px !important;
  }

  .reminder-manage-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .reminder-manage-card {
    padding: 11px !important;
    border-radius: 16px !important;
    background:
      linear-gradient(180deg, rgba(248, 252, 255, 0.96), rgba(241, 248, 255, 0.9)) !important;
    border: 1px solid rgba(58, 116, 193, 0.09) !important;
  }

  .reminder-manage-card .micro-title {
    margin-bottom: 8px !important;
  }

  .reminder-manage-card .actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .reminder-manage-card .actions > *,
  .reminder-manage-card .reminder-assign-row > * {
    width: 100% !important;
  }

  .reminder-assign-row {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .reminder-assign-row select,
  .reminder-assign-row button {
    min-height: 41px !important;
    border-radius: 12px !important;
  }

  .reminder-card > .actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .reminder-card > .actions > * {
    min-height: 42px !important;
    width: 100% !important;
    justify-content: center !important;
    padding: 0 10px !important;
  }

  .reminder-history-panel {
    padding: 11px !important;
    border-radius: 16px !important;
    gap: 8px !important;
  }

  .reminder-history-list {
    gap: 8px !important;
  }

  .reminder-history-item {
    padding: 10px 11px !important;
    border-radius: 14px !important;
  }

  .reminder-history-item p,
  .reminder-history-head span {
    font-size: 11px !important;
    line-height: 1.5 !important;
  }

  .reminders-page-body .hero.recheck-hero {
    padding: 15px !important;
    gap: 10px !important;
  }

  .reminders-page-body .hero.recheck-hero .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
  }

  .reminders-page-body .hero.recheck-hero .hero-actions > * {
    min-height: 40px !important;
    justify-content: center !important;
  }

  .reminders-mobile-bottom-nav {
    display: grid !important;
  }

  .recheck-page-shell .member-query-shell {
    gap: 10px !important;
  }

  .recheck-page-shell .member-query-shell > .member-compact-hero {
    padding: 14px !important;
    border-radius: 20px !important;
  }

  .recheck-page-shell .member-compact-hero .recheck-toolbar-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .recheck-page-shell .member-compact-hero .recheck-toolbar-actions > * {
    min-height: 40px !important;
    justify-content: center !important;
  }

  .recheck-page-shell .member-secondary-entrances {
    gap: 8px !important;
  }

  .recheck-page-shell .workbench-entry-board {
    gap: 8px !important;
  }

  .recheck-page-shell .workbench-entry-card {
    min-height: 0 !important;
    padding: 12px !important;
    border-radius: 18px !important;
  }

  .recheck-page-shell .workbench-entry-card strong {
    font-size: 16px !important;
    line-height: 1.3 !important;
  }

  .recheck-page-shell .workbench-entry-card p,
  .recheck-page-shell .workbench-entry-meta small {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  .recheck-page-shell .workbench-entry-meta {
    gap: 3px !important;
  }

  .recheck-page-shell .workbench-entry-meta b {
    font-size: 20px !important;
  }
}

/* 20260531homerouteentrypolish1: make /mine and /messages land as explicit mobile pages instead of partial home reveals. */
body.home-open-route-active[data-home-open-route="mine"] .home-route-shared-chrome,
body.home-open-route-active[data-home-open-route="mine"] #global-search-panel,
body.home-open-route-active[data-home-open-route="mine"] #role-workbenches,
body.home-open-route-active[data-home-open-route="mine"] #risk-workbench-panel,
body.home-open-route-active[data-home-open-route="mine"] #mobile-today-panel,
body.home-open-route-active[data-home-open-route="mine"] #crm-shell-section,
body.home-open-route-active[data-home-open-route="mine"] #support-grid-section,
body.home-open-route-active[data-home-open-route="mine"] #create-patient-panel,
body.home-open-route-active[data-home-open-route="mine"] #settings-panel,
body.home-open-route-active[data-home-open-route="mine"] #simple-flow-panel,
body.home-open-route-active[data-home-open-route="mine"] #stats,
body.home-open-route-active[data-home-open-route="messages"] .home-route-shared-chrome,
body.home-open-route-active[data-home-open-route="messages"] #global-search-panel,
body.home-open-route-active[data-home-open-route="messages"] #role-workbenches,
body.home-open-route-active[data-home-open-route="messages"] #employee-workbench-panel,
body.home-open-route-active[data-home-open-route="messages"] #risk-workbench-panel,
body.home-open-route-active[data-home-open-route="messages"] #mobile-today-panel,
body.home-open-route-active[data-home-open-route="messages"] #crm-shell-section,
body.home-open-route-active[data-home-open-route="messages"] #activity-panel,
body.home-open-route-active[data-home-open-route="messages"] #create-patient-panel,
body.home-open-route-active[data-home-open-route="messages"] #settings-panel,
body.home-open-route-active[data-home-open-route="messages"] #simple-flow-panel,
body.home-open-route-active[data-home-open-route="messages"] #stats {
  display: none !important;
}

/* 20260531homeroutenavpolish1: make /mine and /messages route state clearer through nav highlight and current-page cues. */
body.home-open-route-active[data-home-open-route="mine"] .topbar-summary,
body.home-open-route-active[data-home-open-route="messages"] .topbar-summary {
  background:
    linear-gradient(180deg, rgba(222, 238, 255, 0.96), rgba(209, 231, 255, 0.9));
  border-color: rgba(47, 128, 237, 0.22);
  color: #11529f;
  box-shadow:
    0 12px 24px rgba(47, 128, 237, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

/* 20260531homebottomnavpolish1: unify the four core mobile nav entries so home/today/risk/mine feel like one system. */
body[data-home-route-nav="mine"] .topbar-summary,
body[data-home-view="today"] .topbar-summary,
body[data-home-view="risk"] .topbar-summary {
  background:
    linear-gradient(180deg, rgba(222, 238, 255, 0.96), rgba(209, 231, 255, 0.9));
  border-color: rgba(47, 128, 237, 0.22);
  color: #11529f;
  box-shadow:
    0 12px 24px rgba(47, 128, 237, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

body[data-home-view="today"] .mobile-bottom-nav [data-mobile-nav="today"],
body[data-home-view="risk"] .mobile-bottom-nav [data-mobile-nav="risk"],
body[data-home-route-nav="messages"] .mobile-bottom-nav [data-mobile-nav="messages"],
body[data-home-route-nav="mine"] .mobile-bottom-nav [data-mobile-nav="mine"] {
  border-color: rgba(45, 140, 240, 0.2) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(236, 246, 255, 0.89)) !important;
  color: #0f4fa8 !important;
  box-shadow:
    0 10px 22px rgba(18, 82, 166, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  transform: translateY(-1px);
}

body[data-home-view="today"] .mobile-bottom-nav [data-mobile-nav="today"]::before,
body[data-home-view="risk"] .mobile-bottom-nav [data-mobile-nav="risk"]::before,
body[data-home-route-nav="messages"] .mobile-bottom-nav [data-mobile-nav="messages"]::before,
body[data-home-route-nav="mine"] .mobile-bottom-nav [data-mobile-nav="mine"]::before {
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(145deg, rgba(45, 140, 240, 0.34), rgba(19, 85, 180, 0.18)) !important;
}

body[data-home-view="today"] .route-landing-banner-today,
body[data-home-view="risk"] .route-landing-banner-risk {
  position: relative;
}

body[data-home-view="today"] .route-landing-banner-today::after,
body[data-home-view="risk"] .route-landing-banner-risk::after {
  content: "当前页";
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(17, 82, 159, 0.1);
  color: #11529f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

@media (max-width: 560px) {
  body[data-home-route-nav="mine"] .topbar-summary,
  body[data-home-view="today"] .topbar-summary,
  body[data-home-view="risk"] .topbar-summary,
  body[data-home-route-nav="messages"] .topbar-summary {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.45;
  }

  body[data-home-view="today"] .route-landing-banner-today,
  body[data-home-view="risk"] .route-landing-banner-risk {
    margin-bottom: 12px;
  }

  body[data-home-view="today"] .route-landing-banner-today::after,
  body[data-home-view="risk"] .route-landing-banner-risk::after {
    top: 12px;
    right: 12px;
  }
}

body.home-open-route-active[data-home-open-route="mine"] .mobile-bottom-nav [data-mobile-nav="mine"],
body.home-open-route-active[data-home-open-route="messages"] .mobile-bottom-nav [data-mobile-nav="messages"] {
  border-color: rgba(45, 140, 240, 0.2) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(236, 246, 255, 0.89)) !important;
  color: #0f4fa8 !important;
  box-shadow:
    0 10px 22px rgba(18, 82, 166, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  transform: translateY(-1px);
}

body.home-open-route-active[data-home-open-route="mine"] .mobile-bottom-nav [data-mobile-nav="mine"]::before,
body.home-open-route-active[data-home-open-route="messages"] .mobile-bottom-nav [data-mobile-nav="messages"]::before {
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(145deg, rgba(45, 140, 240, 0.34), rgba(19, 85, 180, 0.18)) !important;
}

body.home-open-route-active[data-home-open-route="messages"] .route-landing-banner-messages {
  position: relative;
}

body.home-open-route-active[data-home-open-route="messages"] .route-landing-banner-messages::after {
  content: "当前页";
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(17, 82, 159, 0.1);
  color: #11529f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

body.home-open-route-active[data-home-open-route="mine"] .route-landing-banner-mine::after {
  content: "当前页";
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(17, 82, 159, 0.1);
  color: #11529f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

body.home-open-route-active[data-home-open-route="mine"] .route-landing-banner-mine {
  position: relative;
}

@media (max-width: 560px) {
  body.home-open-route-active[data-home-open-route="mine"] .topbar-summary,
  body.home-open-route-active[data-home-open-route="messages"] .topbar-summary {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.45;
  }

  body.home-open-route-active[data-home-open-route="mine"] .mobile-bottom-nav [data-mobile-nav="mine"],
  body.home-open-route-active[data-home-open-route="messages"] .mobile-bottom-nav [data-mobile-nav="home"] {
    border-radius: 21px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .route-landing-banner-mine::after,
  body.home-open-route-active[data-home-open-route="messages"] .route-landing-banner-messages::after {
    top: 12px;
    right: 12px;
  }
}

body.home-open-route-active[data-home-open-route="mine"] #employee-workbench-panel,
body.home-open-route-active[data-home-open-route="mine"] #activity-panel,
body.home-open-route-active[data-home-open-route="messages"] #support-grid-section {
  display: block !important;
}

body.home-open-route-active[data-home-open-route="messages"] #support-grid-section {
  display: grid !important;
  gap: 14px !important;
}

.route-landing-banner {
  display: grid;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 22px;
  border: 1px solid rgba(58, 116, 193, 0.13);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 140, 240, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 255, 0.94));
  box-shadow:
    0 16px 32px rgba(18, 64, 128, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.route-landing-banner-copy {
  display: grid;
  gap: 6px;
}

.route-landing-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(39, 132, 228, 0.11);
  color: #2a6aaa;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.route-landing-banner-copy strong {
  font-size: 18px;
  line-height: 1.32;
  letter-spacing: -0.02em;
  color: #163b64;
}

.route-landing-banner-copy p {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: #5e7998;
}

.route-landing-points {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.route-landing-points span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(244, 249, 255, 0.9);
  border: 1px solid rgba(58, 116, 193, 0.1);
  color: #31597f;
  font-size: 11px;
  font-weight: 700;
}

.route-landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.route-landing-actions > * {
  flex: 1 1 120px;
  min-height: 38px;
  justify-content: center;
}

.route-focus-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.route-focus-card {
  display: grid;
  gap: 6px;
  min-height: 118px;
  padding: 13px;
  border-radius: 18px;
  border: 1px solid rgba(58, 116, 193, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.93));
  box-shadow:
    0 12px 24px rgba(18, 64, 128, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.route-focus-card span {
  color: #6b86a6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.route-focus-card strong {
  color: #163b64;
  font-size: 15px;
  line-height: 1.35;
}

.route-focus-card p {
  margin: 0;
  color: #5d7898;
  font-size: 12px;
  line-height: 1.58;
}

.route-focus-strip-mine .route-focus-card:first-child {
  background:
    radial-gradient(circle at 100% 0%, rgba(68, 150, 238, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 255, 0.94));
}

.route-focus-strip-messages .route-focus-card:first-child {
  background:
    radial-gradient(circle at 100% 0%, rgba(51, 185, 122, 0.14), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 251, 246, 0.94));
}

.route-secondary-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 0 0 12px;
}

.route-secondary-guide-item {
  display: grid;
  gap: 5px;
  padding: 12px 13px;
  border-radius: 16px;
  border: 1px solid rgba(58, 116, 193, 0.1);
  background:
    linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(241, 248, 255, 0.93));
}

.route-secondary-guide-item span {
  color: #6b86a6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.route-secondary-guide-item strong {
  color: #163b64;
  font-size: 14px;
  line-height: 1.34;
}

.route-secondary-guide-item p {
  margin: 0;
  color: #5d7898;
  font-size: 12px;
  line-height: 1.56;
}

.route-secondary-guide-messages .route-secondary-guide-item:first-child {
  background:
    radial-gradient(circle at 100% 0%, rgba(51, 185, 122, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(247, 252, 249, 0.98), rgba(241, 251, 246, 0.94));
}

.route-secondary-guide-mine .route-secondary-guide-item:first-child {
  background:
    radial-gradient(circle at 100% 0%, rgba(68, 150, 238, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(239, 247, 255, 0.94));
}

.route-result-guide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 12px;
}

.route-result-guide-item {
  display: grid;
  gap: 5px;
  padding: 12px 13px;
  border-radius: 16px;
  border: 1px solid rgba(58, 116, 193, 0.1);
  background:
    linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(242, 248, 255, 0.93));
}

.route-result-guide-item span {
  color: #6b86a6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.route-result-guide-item strong {
  color: #163b64;
  font-size: 14px;
  line-height: 1.34;
}

.route-result-guide-item p {
  margin: 0;
  color: #5d7898;
  font-size: 12px;
  line-height: 1.56;
}

.route-result-guide-messages .route-result-guide-item:first-child {
  background:
    radial-gradient(circle at 100% 0%, rgba(51, 185, 122, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(247, 252, 249, 0.98), rgba(241, 251, 246, 0.94));
}

.route-result-guide-mine .route-result-guide-item:first-child {
  background:
    radial-gradient(circle at 100% 0%, rgba(68, 150, 238, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(239, 247, 255, 0.94));
}

body.home-open-route-active[data-home-open-route="mine"] .route-landing-banner-mine {
  margin-bottom: 12px;
}

body.home-open-route-active[data-home-open-route="messages"] .route-landing-banner-messages {
  margin-bottom: 0;
}

@media (max-width: 560px) {
  body.home-open-route-active[data-home-open-route="mine"] .crm-main-content,
  body.home-open-route-active[data-home-open-route="messages"] .crm-main-content {
    padding: 9px 9px 122px !important;
    gap: 9px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] #employee-workbench-panel,
  body.home-open-route-active[data-home-open-route="mine"] #activity-panel,
  body.home-open-route-active[data-home-open-route="messages"] #support-grid-section,
  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel,
  body.home-open-route-active[data-home-open-route="messages"] #timeline-form,
  body.home-open-route-active[data-home-open-route="messages"] #action-result {
    margin-top: 0 !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] #employee-workbench-panel,
  body.home-open-route-active[data-home-open-route="mine"] #activity-panel,
  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel,
  body.home-open-route-active[data-home-open-route="messages"] #support-grid-section > .panel:not(.route-landing-banner-messages) {
    padding: 14px !important;
    border-radius: 22px !important;
    border: 1px solid rgba(58, 116, 193, 0.13) !important;
    background:
      radial-gradient(circle at 100% 0%, rgba(45, 140, 240, 0.1), transparent 28%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 249, 255, 0.94)) !important;
    box-shadow:
      0 16px 34px rgba(18, 64, 128, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] #activity-panel .panel-head,
  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel .panel-head,
  body.home-open-route-active[data-home-open-route="messages"] #support-grid-section > .panel .panel-head {
    display: grid !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] #activity-panel .panel-head h2,
  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel .panel-head h2,
  body.home-open-route-active[data-home-open-route="messages"] #support-grid-section > .panel .panel-head h2 {
    font-size: 21px !important;
    line-height: 1.18 !important;
    letter-spacing: -0.03em !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] #activity-panel .panel-head p,
  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel .panel-head p,
  body.home-open-route-active[data-home-open-route="messages"] #support-grid-section > .panel .panel-head p {
    font-size: 12px !important;
    line-height: 1.56 !important;
    color: #5c7795 !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .route-landing-banner,
  body.home-open-route-active[data-home-open-route="messages"] .route-landing-banner {
    padding: 14px !important;
    border-radius: 22px !important;
    gap: 10px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .route-landing-banner-copy strong,
  body.home-open-route-active[data-home-open-route="messages"] .route-landing-banner-copy strong {
    font-size: 18px !important;
    line-height: 1.34 !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .route-landing-banner-copy p,
  body.home-open-route-active[data-home-open-route="messages"] .route-landing-banner-copy p {
    font-size: 12px !important;
    line-height: 1.6 !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .route-landing-actions,
  body.home-open-route-active[data-home-open-route="messages"] .route-landing-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .route-landing-actions > :last-child,
  body.home-open-route-active[data-home-open-route="messages"] .route-landing-actions > :last-child {
    grid-column: 1 / -1 !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .route-landing-actions > *,
  body.home-open-route-active[data-home-open-route="messages"] .route-landing-actions > * {
    width: 100% !important;
    min-height: 42px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .route-focus-strip,
  body.home-open-route-active[data-home-open-route="messages"] .route-focus-strip {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .route-focus-card,
  body.home-open-route-active[data-home-open-route="messages"] .route-focus-card {
    min-height: auto !important;
    padding: 12px !important;
    border-radius: 16px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .route-focus-card strong,
  body.home-open-route-active[data-home-open-route="messages"] .route-focus-card strong {
    font-size: 14px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .route-focus-card p,
  body.home-open-route-active[data-home-open-route="messages"] .route-focus-card p {
    font-size: 12px !important;
    line-height: 1.54 !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .route-secondary-guide,
  body.home-open-route-active[data-home-open-route="messages"] .route-secondary-guide {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .route-secondary-guide-item,
  body.home-open-route-active[data-home-open-route="messages"] .route-secondary-guide-item {
    padding: 11px 12px !important;
    border-radius: 15px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .route-secondary-guide-item strong,
  body.home-open-route-active[data-home-open-route="messages"] .route-secondary-guide-item strong {
    font-size: 14px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .route-secondary-guide-item p,
  body.home-open-route-active[data-home-open-route="messages"] .route-secondary-guide-item p {
    font-size: 12px !important;
    line-height: 1.54 !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .route-result-guide,
  body.home-open-route-active[data-home-open-route="messages"] .route-result-guide {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-top: 12px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .route-result-guide-item,
  body.home-open-route-active[data-home-open-route="messages"] .route-result-guide-item {
    padding: 11px 12px !important;
    border-radius: 15px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .route-result-guide-item strong,
  body.home-open-route-active[data-home-open-route="messages"] .route-result-guide-item strong {
    font-size: 14px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .route-result-guide-item p,
  body.home-open-route-active[data-home-open-route="messages"] .route-result-guide-item p {
    font-size: 12px !important;
    line-height: 1.54 !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] #activity-panel .activity-tabs {
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] #activity-panel .activity-tabs > * {
    width: 100% !important;
    min-height: 40px !important;
    justify-content: center !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] #support-grid-section {
    gap: 10px !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] #chat-context-panel {
    display: none !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel .capture-hint {
    min-height: 0 !important;
    padding: 10px 11px !important;
    border-radius: 14px !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] .capture-form-grid {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] .capture-form-grid label,
  body.home-open-route-active[data-home-open-route="messages"] #timeline-form label {
    gap: 6px !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] .capture-form-grid input,
  body.home-open-route-active[data-home-open-route="messages"] .capture-form-grid select,
  body.home-open-route-active[data-home-open-route="messages"] #timeline-form input,
  body.home-open-route-active[data-home-open-route="messages"] #timeline-form select,
  body.home-open-route-active[data-home-open-route="messages"] #timeline-form textarea,
  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel textarea {
    min-height: 42px !important;
    border-radius: 12px !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel textarea,
  body.home-open-route-active[data-home-open-route="messages"] #timeline-form textarea {
    min-height: 120px !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] .capture-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] .capture-actions > *,
  body.home-open-route-active[data-home-open-route="messages"] #timeline-form button[type="submit"] {
    width: 100% !important;
    min-height: 44px !important;
  }
}

/* 新增会员页最终布局：收窄左侧栏，右侧表单吃满可用空间。 */
.recheck-page-shell:has(.create-member-page) {
  width: calc(100% - 10px) !important;
  max-width: none !important;
}

.recheck-page-shell:has(.create-member-page) .crm-admin-shell {
  grid-template-columns: 208px minmax(0, 1fr) !important;
  gap: 6px !important;
}

.recheck-page-shell:has(.create-member-page) .recheck-left-tree {
  width: 208px !important;
  min-width: 208px !important;
}

.recheck-page-shell:has(.create-member-page) .recheck-main-content,
.recheck-page-shell:has(.create-member-page) .create-member-page,
.recheck-page-shell:has(.create-member-page) .create-member-form-card,
.recheck-page-shell:has(.create-member-page) .create-member-form-card .modal-head,
.recheck-page-shell:has(.create-member-page) .create-page-hero,
.recheck-page-shell:has(.create-member-page) .create-member-sections,
.recheck-page-shell:has(.create-member-page) .create-bottom-note {
  width: 100% !important;
  max-width: none !important;
}

.recheck-page-shell:has(.create-member-page) .create-member-form-card {
  padding: 14px !important;
}

@media (max-width: 760px) {
  .recheck-page-shell:has(.create-member-page),
  .recheck-page-shell:has(.create-member-page) .create-member-page,
  .recheck-page-shell:has(.create-member-page) .create-member-form-card {
    width: 100% !important;
    padding-left: 4px !important;
    padding-right: 4px !important;
  }

  .recheck-page-shell:has(.create-member-page) .create-page-hero-main,
  .recheck-page-shell:has(.create-member-page) .create-page-hero-side,
  .recheck-page-shell:has(.create-member-page) .create-member-section,
  .recheck-page-shell:has(.create-member-page) .create-bottom-note {
    padding-left: 8px !important;
    padding-right: 8px !important;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "PingFang SC", "Noto Serif SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(66, 153, 225, 0.28) 0, transparent 30%),
    radial-gradient(circle at 92% 3%, rgba(49, 130, 206, 0.24) 0, transparent 26%),
    linear-gradient(180deg, #f7fbff 0%, #edf6ff 52%, var(--bg) 100%);
}

.page-shell {
  width: min(var(--app-max-width), calc(100% - var(--app-page-gutter)));
  margin: 0 auto;
  padding: 24px 0 56px;
  position: relative;
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 120px -36px auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 128, 237, 0.16) 0%, rgba(47, 128, 237, 0) 70%);
  pointer-events: none;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
  padding: 14px 18px;
  border-radius: 26px;
  border: 1px solid rgba(47, 128, 237, 0.14);
  background: rgba(250, 253, 255, 0.82);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

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

.brand-mark {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(145deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: white;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 14px 26px rgba(47, 128, 237, 0.24);
}

.brand-kicker {
  margin: 0 0 2px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.18em;
}

.brand-lockup strong {
  font-size: 20px;
  letter-spacing: -0.02em;
}

.topbar-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar-nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(239, 247, 255, 0.92);
  border: 1px solid rgba(47, 128, 237, 0.12);
  font-size: 13px;
  transition: transform 120ms ease, background 120ms ease, box-shadow 120ms ease;
}

.topbar-nav a:hover,
.topbar-nav a.is-active {
  transform: translateY(-1px);
  background: rgba(216, 234, 255, 0.95);
  box-shadow: 0 10px 20px rgba(47, 128, 237, 0.12);
}

.topbar-nav a.is-active {
  color: var(--accent-strong);
  border-color: rgba(47, 128, 237, 0.28);
  font-weight: 700;
}

.simple-topbar {
  margin-bottom: 12px;
}

.topbar-summary {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--accent-deep);
  background: rgba(216, 234, 255, 0.72);
  border: 1px solid rgba(47, 128, 237, 0.16);
  font-size: 13px;
  font-weight: 700;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.92fr);
  gap: 22px;
  align-items: stretch;
  margin-bottom: 18px;
}

.hero,
.panel,
.stat-card {
  background: rgba(250, 253, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(170, 205, 245, 0.62);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero {
  padding: 30px 32px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(239, 247, 255, 0.98) 0%, rgba(250, 253, 255, 0.94) 50%, rgba(224, 240, 255, 0.92) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -20px -40px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 128, 237, 0.14) 0%, rgba(47, 128, 237, 0) 72%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(32px, 3.8vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.05em;
  max-width: 12ch;
}

.hero-copy {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.68;
  max-width: 42ch;
  font-size: 15px;
}

.hero-main {
  position: relative;
  z-index: 1;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.home-hero-priority {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.home-hero-priority-item {
  display: grid;
  gap: 6px;
  padding: 14px 15px;
  border-radius: 18px;
  border: 1px solid rgba(58, 116, 193, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(243, 249, 255, 0.9));
  box-shadow:
    0 12px 24px rgba(18, 64, 128, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.home-hero-priority-item span {
  color: #6280a0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.home-hero-priority-item strong {
  color: #163b64;
  font-size: 16px;
  line-height: 1.32;
}

.home-hero-priority-item p {
  margin: 0;
  color: #5f7a99;
  font-size: 12px;
  line-height: 1.56;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 162px;
  padding: 14px 20px;
  border-radius: 18px;
  text-decoration: none;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: white;
  font-weight: 600;
  box-shadow: 0 16px 30px rgba(191, 93, 56, 0.22);
}

button.hero-button {
  border: none;
}

.hero-button.ghost-link {
  background: rgba(255, 249, 242, 0.96);
  color: var(--ink);
  border: 1px solid rgba(191, 93, 56, 0.14);
  box-shadow: none;
}

.hero-highlights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.hero-highlights article {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 252, 248, 0.84);
  border: 1px solid rgba(191, 93, 56, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.hero-highlights span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(191, 93, 56, 0.12);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}

.hero-highlights strong {
  display: block;
  margin-top: 14px;
  font-size: 16px;
}

.hero-highlights p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
  font-size: 13px;
}

.hero-note {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 244, 232, 0.98) 0%, rgba(246, 252, 247, 0.94) 100%);
  padding: 22px;
  border: 1px solid rgba(210, 174, 151, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.hero-note-stack strong {
  display: block;
  margin-top: 4px;
  color: #163b64;
  font-size: 15px;
  line-height: 1.4;
}

.hero-note-stack section > p:last-child {
  margin: 6px 0 0;
  color: #5d7898;
  font-size: 12px;
  line-height: 1.56;
}

.quick-link-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0 0 16px;
}

body:not(.sidebar-mode) .quick-link-strip {
  display: none;
}

.quick-link-card {
  display: block;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(186, 100, 61, 0.12);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.9) 0%, rgba(255, 248, 241, 0.82) 100%);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  text-align: left;
  text-decoration: none;
}

.quick-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 30px rgba(83, 52, 36, 0.09);
}

.quick-link-card.primary {
  border-color: rgba(58, 116, 193, 0.13);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 140, 240, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 248, 255, 0.92));
}

.quick-link-card.secondary {
  border-color: rgba(170, 189, 214, 0.14);
  background:
    linear-gradient(180deg, rgba(251, 253, 255, 0.94), rgba(245, 249, 253, 0.9));
}

.quick-link-card p,
.quick-link-card span {
  margin: 0;
}

.quick-link-card p {
  color: var(--accent-strong);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.quick-link-card strong {
  display: block;
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.45;
}

.quick-link-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.58;
  font-size: 12px;
}

.quick-link-strip-head {
  display: grid;
  gap: 5px;
  grid-column: 1 / -1;
  padding: 2px 2px 4px;
}

.quick-link-strip-head span {
  color: #6f88a6;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.quick-link-strip-head strong {
  color: #163b64;
  font-size: 18px;
  line-height: 1.3;
}

.quick-link-strip-head p {
  margin: 0;
  color: #5e7898;
  font-size: 12px;
  line-height: 1.56;
}

body.employee-mode .quick-link-strip,
body.employee-mode .home-secondary-dock:not(#activity-panel),
body.employee-mode .hero-note {
  display: none !important;
}

body.employee-mode .hero {
  grid-template-columns: 1fr;
  padding: 24px;
}

body.employee-mode #activity-panel .activity-tabs {
  display: none;
}

body.employee-mode #activity-panel {
  display: none !important;
}

.employee-workbench-panel {
  margin-bottom: 18px;
}

.employee-workbench-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.employee-work-card {
  display: grid;
  gap: 8px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(239, 247, 255, 0.86);
  border: 1px solid rgba(47, 128, 237, 0.16);
}

.employee-work-card.primary {
  background: linear-gradient(135deg, rgba(47, 128, 237, 0.14), rgba(255, 255, 255, 0.9));
}

.employee-work-card span,
.employee-work-card p,
.employee-mini-list span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.employee-work-card strong {
  color: var(--accent-deep);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.1;
}

.employee-member-strip {
  margin-top: 14px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(47, 128, 237, 0.12);
}

.employee-mini-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.employee-mini-list article {
  padding: 12px;
  border-radius: 16px;
  background: rgba(239, 247, 255, 0.78);
  border: 1px solid rgba(47, 128, 237, 0.1);
}

.employee-fold-panel {
  margin-top: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(47, 128, 237, 0.14);
}

.employee-fold-panel summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--accent-deep);
  font-weight: 800;
}

.employee-fold-content {
  padding: 0 14px 14px;
}

.employee-task-board {
  margin-top: 14px;
  padding: 16px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(47, 128, 237, 0.1), rgba(255, 255, 255, 0.86));
  border: 1px solid rgba(47, 128, 237, 0.16);
}

.employee-task-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.employee-task-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(47, 128, 237, 0.12);
}

.employee-task-item.warn {
  background: rgba(255, 244, 232, 0.86);
  border-color: rgba(191, 115, 40, 0.22);
}

.employee-task-item.urgent {
  background: rgba(255, 235, 235, 0.86);
  border-color: rgba(198, 66, 66, 0.24);
}

.employee-task-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.employee-task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.employee-task-actions button {
  white-space: nowrap;
}

/* 企业微信窄屏修复：任务卡内容在上、按钮在下，避免文字被右侧按钮挤成竖排。 */
body.sidebar-mode .employee-task-item {
  grid-template-columns: 1fr !important;
  align-items: stretch !important;
  gap: 12px !important;
}

body.sidebar-mode .employee-task-item > div:first-child {
  min-width: 0 !important;
}

body.sidebar-mode .employee-task-item strong,
body.sidebar-mode .employee-task-item p,
body.sidebar-mode .employee-task-meta {
  word-break: normal !important;
  overflow-wrap: anywhere !important;
  white-space: normal !important;
}

body.sidebar-mode .employee-task-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  justify-content: stretch !important;
  gap: 8px !important;
  width: 100% !important;
}

body.sidebar-mode .employee-task-actions button {
  width: 100% !important;
  min-height: 44px !important;
  justify-content: center !important;
}

body.sidebar-mode .employee-task-actions button:first-child {
  grid-column: 1 / -1 !important;
}

@media (max-width: 760px) {
  .employee-task-item {
    grid-template-columns: 1fr !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  .employee-task-item > div:first-child {
    min-width: 0 !important;
  }

  .employee-task-item strong,
  .employee-task-item p,
  .employee-task-meta {
    word-break: normal !important;
    overflow-wrap: anywhere !important;
    white-space: normal !important;
  }

  .employee-task-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .employee-task-actions button {
    width: 100% !important;
    min-height: 44px !important;
    justify-content: center !important;
  }

  .employee-task-actions button:first-child {
    grid-column: 1 / -1 !important;
  }
}

.employee-guide-card {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(47, 128, 237, 0.08);
  border: 1px solid rgba(47, 128, 237, 0.14);
}

.sidebar-banner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 18px 20px;
  margin-bottom: 16px;
  background: rgba(255, 247, 240, 0.92);
  border: 1px solid rgba(240, 215, 198, 0.95);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.banner-copy {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

button.compact {
  padding: 10px 12px;
  white-space: nowrap;
}

.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 10px 12px;
  border-radius: 16px;
  text-decoration: none;
}

.note-chip,
.pill,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

.note-chip {
  padding: 8px 12px;
  background: var(--accent);
  color: white;
  font-size: 12px;
  width: fit-content;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

.compact-stats {
  margin-bottom: 18px;
}

.stat-card.compact {
  padding: 16px 18px;
}

.stat-card.compact strong {
  font-size: 28px;
}

.stat-card {
  padding: 22px 22px 20px;
  position: relative;
  overflow: hidden;
  min-height: 126px;
}

.stat-button {
  width: 100%;
  border: 1px solid rgba(219, 193, 172, 0.62);
  background: rgba(255, 252, 247, 0.88);
  color: var(--ink);
  text-align: left;
}

.stat-button.active {
  border-color: rgba(186, 100, 61, 0.32);
  background: linear-gradient(180deg, rgba(255, 243, 234, 0.98) 0%, rgba(255, 252, 247, 0.98) 100%);
  box-shadow: 0 18px 32px rgba(83, 52, 36, 0.09);
}

.stat-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(83, 52, 36, 0.09);
}

.stat-card::after {
  content: "";
  position: absolute;
  inset: auto -22px -34px auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191, 93, 56, 0.12) 0%, rgba(191, 93, 56, 0) 72%);
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(186, 100, 61, 0.04) 100%);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
}

.stat-card strong {
  display: block;
  margin-top: 12px;
  font-size: 36px;
  line-height: 1;
}

.layout,
.grid-two,
.crm-shell,
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.crm-shell {
  grid-template-columns: minmax(0, 1.18fr) minmax(360px, 0.82fr);
  align-items: start;
}

.recheck-workbench-panel {
  margin-bottom: 18px;
}

.recheck-toolbar {
  display: grid;
  gap: 14px;
}

.member-query-shell {
  display: grid;
  gap: 10px;
}

.member-query-head,
.member-compact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.member-query-head h3 {
  margin: 4px 0 6px;
  font-size: 24px;
}

.member-query-head p {
  margin: 0;
  color: var(--muted);
}

.member-compact-hero {
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(239, 247, 255, 0.95), rgba(255, 255, 255, 0.92)),
    radial-gradient(circle at 100% 0, rgba(47, 128, 237, 0.14), transparent 38%);
  border: 1px solid rgba(47, 128, 237, 0.14);
}

.member-compact-hero h3 {
  margin: 2px 0 4px;
  font-size: clamp(22px, 2vw, 30px);
}

.member-compact-hero p {
  margin: 0;
  color: var(--muted);
}

.member-priority-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.member-priority-card {
  display: grid;
  gap: 6px;
  min-height: 94px;
  padding: 14px;
  text-align: left;
  border-radius: 18px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(47, 128, 237, 0.13);
  box-shadow: 0 10px 24px rgba(18, 64, 128, 0.07);
}

.member-priority-card:hover,
.member-priority-card:focus-visible,
.member-priority-card.active {
  transform: translateY(-1px);
  border-color: rgba(47, 128, 237, 0.32);
  box-shadow: 0 16px 34px rgba(18, 64, 128, 0.12);
}

.member-priority-card span,
.member-priority-card small {
  color: var(--muted);
  font-size: 12px;
}

.member-priority-card strong {
  color: var(--accent-deep);
  font-size: 24px;
  line-height: 1;
}

.member-priority-card.warn strong,
.member-priority-card.danger strong {
  color: var(--warn);
}

.member-priority-card.green strong {
  color: #1f8a57;
}

.member-query-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
  padding: 12px;
  border-radius: 18px;
  background: rgba(239, 247, 255, 0.86);
  border: 1px solid rgba(47, 128, 237, 0.16);
}

.member-query-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  min-width: 0;
}

.member-query-mobile-hint {
  display: none;
}

.member-query-panel select,
.member-query-panel input {
  width: 100%;
  height: 44px;
  min-height: 44px;
  box-sizing: border-box;
}

.member-query-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: center;
  grid-column: 4 / 6;
  justify-self: stretch;
  width: 100%;
}

.member-query-actions button {
  width: 100%;
  height: 44px;
  min-height: 44px;
}

.recheck-date-field {
  position: relative;
  width: 100%;
}

.recheck-date-trigger {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(47, 128, 237, 0.2);
  background: rgba(255, 255, 255, 0.94);
  color: #2364b7;
  font-size: 17px;
  font-weight: 800;
  text-align: left;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.recheck-date-trigger.active,
.recheck-date-trigger:focus-visible {
  border-color: rgba(47, 128, 237, 0.5);
  box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.12);
}

.recheck-date-picker-panel {
  position: absolute;
  z-index: 120;
  top: calc(100% + 10px);
  left: 0;
  width: min(360px, calc(100vw - 32px));
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(47, 128, 237, 0.18);
  box-shadow: 0 24px 56px rgba(16, 57, 112, 0.2);
}

.recheck-date-picker-panel.align-right {
  left: auto;
  right: 0;
}

.recheck-date-picker-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.recheck-date-picker-head strong {
  text-align: center;
  font-size: 22px;
  color: var(--ink);
}

.recheck-date-picker-head button {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: var(--accent-strong);
  background: rgba(239, 247, 255, 0.95);
  border: 1px solid rgba(47, 128, 237, 0.14);
  font-size: 26px;
  line-height: 1;
}

.recheck-date-weekdays,
.recheck-date-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.recheck-date-weekdays {
  margin-bottom: 6px;
}

.recheck-date-weekdays span {
  color: var(--muted);
  text-align: center;
  font-size: 14px;
  font-weight: 800;
}

.recheck-date-day {
  display: grid;
  place-items: center;
  height: 42px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.recheck-date-day:not(.muted):hover {
  background: rgba(47, 128, 237, 0.1);
  color: var(--accent-strong);
}

.recheck-date-day.today {
  border-color: rgba(47, 128, 237, 0.35);
  color: var(--accent-strong);
}

.recheck-date-day.selected {
  background: linear-gradient(135deg, #2f80ed, #1558c0);
  color: #fff;
  box-shadow: 0 10px 22px rgba(47, 128, 237, 0.28);
}

.member-summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.member-summary-row article {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(239, 247, 255, 0.8);
  border: 1px solid rgba(47, 128, 237, 0.14);
}

.member-summary-row span,
.member-package-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.member-summary-row strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
}

.member-package-note {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.member-package-card {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(239, 247, 255, 0.72);
  border: 1px solid rgba(47, 128, 237, 0.14);
}

.member-package-card p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.member-table-tools {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin: 10px 0 8px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 252, 248, 0.82);
  border: 1px solid rgba(47, 128, 237, 0.14);
}

.member-batch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.member-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 252, 248, 0.82);
  border: 1px solid rgba(47, 128, 237, 0.14);
}

.member-quick-filters button strong {
  margin-left: 4px;
}

.member-page-size {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

.member-page-size-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(239, 247, 255, 0.92);
  color: var(--ink);
}

.member-page-size-option input {
  width: auto;
}

.member-page-hint {
  color: var(--muted);
  font-size: 12px;
}

.member-scroll-table {
  overflow-x: auto;
  border-radius: 20px;
  border: 1px solid rgba(47, 128, 237, 0.16);
  background: linear-gradient(180deg, rgba(240, 247, 255, 0.92), rgba(247, 251, 255, 0.96));
}

.member-data-table {
  width: 100%;
  min-width: 1040px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 14px;
  padding: 0 8px 10px;
}

.member-data-table th,
.member-data-table td {
  padding: 8px;
  border-top: 1px solid rgba(47, 128, 237, 0.14);
  border-bottom: 1px solid rgba(47, 128, 237, 0.14);
  border-right: 1px solid rgba(47, 128, 237, 0.08);
  vertical-align: top;
  background: rgba(255, 253, 246, 0.96);
}

.member-data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #eef6ff;
  border-top: 0;
  border-bottom: 1px solid rgba(47, 128, 237, 0.18);
  color: var(--accent-deep);
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  white-space: nowrap;
}

.member-data-table td:first-child,
.member-data-table th:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  background: #fffdf6;
  border-left: 1px solid rgba(47, 128, 237, 0.14);
}

.member-data-table th:first-child {
  background: #eef6ff;
  z-index: 4;
}

.member-data-table tbody tr td:first-child {
  border-radius: 16px 0 0 16px;
}

.member-data-table tbody tr td:last-child {
  border-radius: 0 16px 16px 0;
}

.member-data-table tbody tr td {
  box-shadow: 0 12px 24px rgba(18, 64, 128, 0.08);
}

.member-data-table th:nth-child(1) {
  width: 42px;
}

.member-data-table th:nth-child(2) {
  width: 190px;
}

.member-data-table th:nth-child(3) {
  width: 132px;
}

.member-data-table th:nth-child(4) {
  width: 150px;
}

.member-data-table th:nth-child(5) {
  width: 190px;
}

.member-data-table th:nth-child(6) {
  width: 170px;
}

.member-data-table th:nth-child(7) {
  width: 150px;
}

.member-data-table tr.is-dirty td {
  background: rgba(255, 247, 219, 0.66);
}

.member-data-table tr.has-warning td {
  box-shadow: inset 0 0 0 999px rgba(255, 246, 219, 0.34);
}

.member-data-table tr.has-duplicate td,
.member-data-table tr.is-expired td {
  box-shadow: inset 0 0 0 999px rgba(255, 229, 226, 0.42);
}

.member-data-table tr.is-expiring td {
  box-shadow: inset 0 0 0 999px rgba(255, 241, 211, 0.5);
}

.member-select-col {
  text-align: center;
}

.member-select-col input {
  width: auto;
}

.member-data-table .member-action-col {
  position: sticky;
  right: 0;
  z-index: 3;
  background: #fffdf6;
}

.member-data-table th.member-action-col {
  background: #eef6ff;
  z-index: 4;
}

.member-cell-input {
  width: 100%;
  min-width: 0;
  height: 36px;
  padding: 7px 9px;
  border-radius: 12px;
  font-size: 12px;
}

.member-data-table input[type="date"].member-cell-input {
  min-width: 0;
}

.member-executor-cell,
.member-row-actions {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.member-row-actions {
  align-content: start;
}

.member-card-list {
  display: grid;
  gap: 12px;
}

.member-card {
  position: relative;
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(47, 128, 237, 0.14);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 28px rgba(18, 64, 128, 0.08);
}

.member-card-top {
  display: grid;
  gap: 10px;
}

.member-card-title-row,
.member-card-phone-row,
.member-card-actions-main,
.member-card-actions-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.member-card-title-row strong {
  font-size: 18px;
  line-height: 1.2;
  color: var(--accent-strong);
}

.member-card-select {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.member-card-select input {
  width: auto;
}

.member-card-phone-row {
  color: var(--muted);
  font-size: 13px;
}

.member-card-status {
  display: grid;
  gap: 6px;
}

.member-card-status-label,
.member-card-section h4 {
  margin: 0;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 900;
}

.member-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.member-card-section {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(246, 250, 255, 0.82);
  border: 1px solid rgba(47, 128, 237, 0.1);
}

.member-card-section-executors {
  background: rgba(255, 248, 240, 0.72);
}

.member-card-actions {
  display: grid;
  gap: 10px;
}

.member-card-editor {
  display: grid;
  gap: 10px;
}

.member-card-editor summary {
  list-style: none;
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(47, 128, 237, 0.12);
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.96), rgba(240, 247, 255, 0.9));
  cursor: pointer;
}

.member-card-editor summary::-webkit-details-marker {
  display: none;
}

.member-card-editor summary span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.member-card-editor summary strong {
  color: var(--accent-deep);
  font-size: 14px;
  line-height: 1.35;
}

.member-card-editor[open] summary {
  border-color: rgba(47, 128, 237, 0.2);
  background: linear-gradient(180deg, rgba(236, 246, 255, 0.98), rgba(247, 251, 255, 0.94));
}

.member-card-editor-body {
  display: grid;
  gap: 10px;
}

.schedule-detail-shell {
  gap: 12px;
}

.schedule-detail-intro {
  background: linear-gradient(135deg, rgba(239, 247, 255, 0.92), rgba(255, 252, 248, 0.9));
}

.schedule-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.schedule-detail-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.schedule-workbench-overview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.schedule-workbench-overview article {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(47, 128, 237, 0.12);
}

.schedule-workbench-overview span,
.schedule-fact-card span,
.schedule-node-card span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

.schedule-workbench-overview strong {
  font-size: 24px;
  line-height: 1;
  color: var(--accent-strong);
}

.schedule-workbench-overview small {
  font-size: 12px;
  color: var(--muted);
}

.schedule-detail-entrances {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.workbench-entry-board {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1.05fr;
  gap: 12px;
  margin-bottom: 14px;
}

.workbench-entry-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(47, 128, 237, 0.14);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 255, 0.92));
  color: var(--ink);
  text-align: left;
  box-shadow: 0 14px 30px rgba(18, 64, 128, 0.08);
}

.workbench-entry-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(18, 64, 128, 0.14);
}

.workbench-entry-card.primary {
  background: linear-gradient(135deg, rgba(230, 243, 255, 0.98), rgba(255, 252, 246, 0.94));
}

.workbench-entry-card.hospital {
  background: linear-gradient(145deg, rgba(247, 251, 255, 0.98), rgba(255, 250, 242, 0.94));
}

.workbench-entry-card.service {
  background: linear-gradient(145deg, rgba(255, 252, 246, 0.98), rgba(239, 247, 255, 0.94));
}

.workbench-entry-card.reminder {
  background: linear-gradient(145deg, rgba(240, 253, 250, 0.98), rgba(255, 247, 237, 0.94));
  border-color: rgba(14, 116, 144, 0.18);
}

.workbench-entry-card.active {
  border-color: rgba(47, 128, 237, 0.36);
  box-shadow: 0 18px 40px rgba(47, 128, 237, 0.16);
}

.workbench-entry-card.cleanup {
  background: linear-gradient(145deg, rgba(255, 250, 242, 0.98), rgba(244, 249, 255, 0.94));
}

.workbench-entry-card.cleanup-status.verified {
  background: linear-gradient(145deg, rgba(239, 251, 243, 0.98), rgba(245, 252, 248, 0.94));
}

.workbench-entry-card.cleanup-status.deferred {
  background: linear-gradient(145deg, rgba(255, 249, 238, 0.98), rgba(250, 252, 255, 0.94));
}

.workbench-entry-top {
  display: grid;
  gap: 6px;
}

.workbench-entry-top span {
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.06em;
}

.workbench-entry-top strong {
  color: var(--accent-deep);
  font-size: 22px;
  line-height: 1.2;
}

.workbench-entry-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.workbench-entry-meta {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}

.workbench-entry-meta b {
  color: var(--accent-deep);
  font-size: 32px;
  line-height: 1;
}

.workbench-entry-meta small {
  color: var(--muted);
  font-size: 12px;
}

.workbench-entry-cleanup-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.audit-chip {
  display: grid;
  gap: 6px;
  align-items: start;
  text-align: left;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(47, 128, 237, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}

.audit-chip span {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.audit-chip strong {
  font-size: 20px;
  line-height: 1;
}

.audit-chip.ok strong {
  color: #157347;
}

.audit-chip.warn strong {
  color: #9a5a13;
}

.audit-chip.danger strong {
  color: #ad2f2a;
}

.audit-chip.active {
  border-color: rgba(47, 128, 237, 0.28);
  box-shadow: 0 12px 22px rgba(47, 128, 237, 0.12);
}

.workbench-entry-action {
  min-height: 48px;
  border-radius: 16px;
}

.workbench-entry-inline-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.workbench-entry-inline-stats .ghost.compact {
  min-height: 68px;
}

.workbench-entry-inline-stats .ghost.compact strong {
  display: block;
  margin-top: 4px;
}

.schedule-workbench-card-list {
  gap: 14px;
}

.schedule-workbench-card {
  gap: 14px;
  border-radius: 22px;
}

.schedule-basic-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96));
  border: 1px solid rgba(47, 128, 237, 0.12);
  box-shadow: 0 10px 26px rgba(25, 56, 92, 0.06);
}

.schedule-basic-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.schedule-basic-person,
.schedule-basic-phone {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.schedule-basic-title-row {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}

.schedule-basic-title-row strong {
  color: var(--ink);
  font-size: 19px;
  line-height: 1.25;
}

.schedule-basic-subline {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.schedule-basic-phone {
  justify-items: end;
  text-align: right;
}

.schedule-basic-phone > span {
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.schedule-status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(47, 128, 237, 0.1);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
}

.schedule-status-pill.status-done,
.schedule-status-pill.status-success {
  background: rgba(28, 142, 85, 0.12);
  color: #0f7a47;
}

.schedule-status-pill.status-cancel,
.schedule-status-pill.status-danger {
  background: rgba(207, 72, 72, 0.12);
  color: #b33131;
}

.schedule-basic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.schedule-basic-field {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(248, 251, 255, 0.96);
  border: 1px solid rgba(47, 128, 237, 0.08);
}

.schedule-basic-field span {
  color: var(--muted);
  font-size: 12px;
}

.schedule-basic-field strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-basic-field.primary {
  background: linear-gradient(135deg, rgba(232, 244, 255, 0.98), rgba(247, 251, 255, 0.98));
  border-color: rgba(47, 128, 237, 0.16);
}

.schedule-basic-field.primary strong {
  color: var(--accent-deep);
}

.schedule-basic-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.reminder-workbench-shell {
  gap: 12px;
}

.reminder-workbench-intro {
  background: linear-gradient(135deg, rgba(235, 245, 255, 0.96), rgba(255, 251, 244, 0.94));
}

.reminder-summary-note {
  margin-top: 8px;
}

.reminder-workbench-card-list .schedule-workbench-card {
  border-color: rgba(47, 128, 237, 0.16);
}

.compact-schedule-card {
  padding: 16px;
}

.compact-schedule-card .schedule-workbench-top {
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 10px;
}

.compact-schedule-card .schedule-node-strip {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.compact-schedule-card .schedule-node-card,
.compact-schedule-card .schedule-fact-card {
  padding: 10px 12px;
  border-radius: 14px;
}

.compact-schedule-card .schedule-node-card strong,
.compact-schedule-card .schedule-fact-card strong {
  font-size: 15px;
}

.compact-schedule-card .schedule-fact-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.compact-schedule-card .schedule-workbench-actions {
  padding: 10px;
}

.compact-schedule-card .schedule-workbench-actions-main {
  grid-template-columns: 112px 112px minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
}

.schedule-workbench-top {
  grid-template-columns: minmax(0, 1fr) 220px;
  align-items: start;
}

.schedule-workbench-status {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(242, 247, 255, 0.92);
  border: 1px solid rgba(47, 128, 237, 0.12);
}

.schedule-node-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.schedule-node-card,
.schedule-fact-card {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(247, 250, 255, 0.92);
  border: 1px solid rgba(47, 128, 237, 0.1);
}

.schedule-node-card div,
.schedule-fact-card div {
  display: grid;
  gap: 4px;
}

.schedule-node-card strong,
.schedule-fact-card strong {
  font-size: 16px;
  color: var(--accent-strong);
  line-height: 1.2;
}

.schedule-node-card small,
.schedule-fact-card small {
  font-size: 12px;
  color: var(--muted);
}

.schedule-node-card.primary {
  background: linear-gradient(135deg, rgba(233, 244, 255, 0.98), rgba(247, 251, 255, 0.96));
}

.schedule-node-card.accent {
  background: linear-gradient(135deg, rgba(255, 247, 235, 0.98), rgba(255, 252, 245, 0.96));
}

.schedule-node-card.soft {
  background: linear-gradient(135deg, rgba(246, 249, 253, 0.98), rgba(255, 255, 255, 0.96));
}

.schedule-node-card.action {
  background: linear-gradient(135deg, rgba(235, 244, 255, 0.98), rgba(245, 250, 255, 0.96));
}

.schedule-fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.schedule-fact-card.money strong {
  color: #0d7a43;
}

.schedule-workbench-actions {
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(244, 248, 252, 0.96);
  border: 1px solid rgba(47, 128, 237, 0.1);
}

.schedule-workbench-actions-main {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.member-more-actions {
  position: relative;
}

.member-more-actions summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid rgba(47, 128, 237, 0.14);
  background: rgba(244, 249, 255, 0.94);
  color: var(--accent-deep);
  font-size: 12px;
  cursor: pointer;
  list-style: none;
}

.member-more-actions summary::-webkit-details-marker {
  display: none;
}

.member-more-actions[open] summary {
  border-color: rgba(47, 128, 237, 0.34);
  background: #eef6ff;
}

.member-more-actions > div {
  display: grid;
  gap: 6px;
  margin-top: 6px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(47, 128, 237, 0.13);
  background: rgba(255, 255, 255, 0.94);
}

.member-group-cell,
.member-executors-stack {
  display: grid;
  gap: 7px;
}

.member-mini-field {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
}

.member-mini-field span {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.member-row-warning,
.member-row-ok {
  display: block;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.35;
}

.member-row-warning {
  background: rgba(207, 84, 54, 0.1);
  color: #a1442a;
}

.member-row-ok {
  background: rgba(47, 122, 83, 0.08);
  color: #2f7a53;
}

.audit-tag-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.audit-tag-row small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.member-cleanup-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.member-cleanup-actions .ghost.compact {
  min-height: 32px;
}

.cleanup-status-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.cleanup-status-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(47, 128, 237, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
}

.cleanup-status-chip.ok {
  border-color: rgba(35, 161, 105, 0.18);
  background: rgba(237, 251, 243, 0.94);
  color: #157347;
}

.cleanup-status-chip.warn {
  border-color: rgba(223, 128, 42, 0.18);
  background: rgba(255, 248, 236, 0.94);
  color: #9a5a13;
}

.cleanup-status-chip.neutral {
  border-color: rgba(47, 128, 237, 0.12);
  background: rgba(239, 247, 255, 0.9);
  color: var(--accent-strong);
}

.cleanup-status-row small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.cleanup-modal {
  max-width: 640px;
}

.cleanup-modal-summary {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: rgba(239, 247, 255, 0.7);
  border: 1px solid rgba(47, 128, 237, 0.12);
}

.cleanup-modal-summary strong {
  font-size: 18px;
  color: var(--ink);
}

.cleanup-modal-summary span,
.cleanup-modal-summary small {
  color: var(--muted);
}

.cleanup-modal textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(47, 128, 237, 0.16);
  background: #fff;
  resize: vertical;
  font: inherit;
  color: var(--ink);
}

.member-executors-stack section {
  display: grid;
  gap: 6px;
  padding: 7px;
  border-radius: 12px;
  background: rgba(255, 248, 240, 0.78);
  border: 1px solid rgba(47, 128, 237, 0.12);
}

.member-executors-stack strong {
  color: var(--accent-strong);
  font-size: 12px;
}

.tiantan-executor-compact {
  display: grid;
  gap: 6px;
}

.tiantan-executor-chip {
  display: grid;
  gap: 2px;
  padding: 8px 9px;
  border-radius: 12px;
  background: rgba(255, 248, 240, 0.82);
  border: 1px solid rgba(47, 128, 237, 0.1);
}

.tiantan-executor-chip span {
  font-size: 11px;
  color: var(--muted);
}

.tiantan-executor-chip strong {
  font-size: 13px;
  line-height: 1.2;
  color: var(--accent-strong);
}

.tiantan-executor-chip small,
.tiantan-executor-chip em {
  font-size: 11px;
  color: var(--muted);
  font-style: normal;
}

.tiantan-executor-chip em {
  color: #0d7a43;
  font-weight: 800;
}

.tiantan-executor-chip.is-empty {
  opacity: 0.6;
}

.member-benefit-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
}

.member-benefit-button {
  min-height: 28px;
  padding: 5px 7px;
  font-size: 11px;
}

.member-benefit-button.is-empty {
  opacity: 0.58;
}

.member-lock-chip {
  display: inline-flex;
  justify-content: center;
  padding: 4px 7px;
  border-radius: 999px;
  background: rgba(191, 115, 40, 0.12);
  color: #9b5a19;
  font-size: 11px;
  font-weight: 700;
}

.member-save-chip {
  display: inline-flex;
  justify-content: center;
  padding: 5px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: rgba(47, 122, 83, 0.1);
  color: #2f7a53;
}

.member-save-chip.dirty {
  background: rgba(191, 115, 40, 0.13);
  color: #9b5a19;
}

.member-save-chip.saving {
  background: rgba(47, 128, 237, 0.12);
  color: #2f5f8f;
}

.member-save-chip.error {
  background: rgba(191, 75, 56, 0.13);
  color: #a1442a;
}

.member-status-select {
  border-color: transparent;
  font-weight: 700;
}

.member-status-select.status-booked {
  background: #e8f4ff;
  color: #246ea9;
}

.member-status-select.status-done {
  background: #e5f5ea;
  color: #23784f;
}

.member-status-select.status-pending {
  background: #fff3d8;
  color: #8a611c;
}

.member-status-select.status-checking,
.member-status-select.status-service {
  background: #edf5ff;
  color: #1f5f99;
}

.member-status-select.status-follow {
  background: #fff0e8;
  color: #a14d27;
}

.member-status-select.status-cancelled {
  background: #eee8e2;
  color: #7b6a60;
}

.member-status-select.status-empty {
  background: #f8f1ea;
  color: #7b6a60;
}

.member-handled-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.member-handled-check input {
  width: auto;
}

.member-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.member-pagination-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.member-page-size-bottom {
  justify-content: flex-start;
}

.recheck-toolbar-main,
.recheck-summary-grid,
.recheck-list-header,
.recheck-row {
  display: grid;
  gap: 12px;
}

.recheck-toolbar-main {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.recheck-toolbar-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.recheck-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.recheck-package-row,
.recheck-project-row,
.recheck-hospital-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.recheck-package-card,
.recheck-project-card,
.recheck-hospital-card {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(201, 177, 158, 0.42);
  border-radius: 16px;
  background: rgba(255, 252, 248, 0.86);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.recheck-package-card.active,
.recheck-project-card.active,
.recheck-hospital-card.active {
  border-color: rgba(191, 93, 56, 0.45);
  background: rgba(255, 245, 236, 0.96);
  box-shadow: 0 10px 22px rgba(120, 72, 38, 0.08);
}

.recheck-package-card span,
.recheck-project-card span,
.recheck-hospital-card span {
  color: var(--muted);
  font-size: 12px;
}

.recheck-package-card strong,
.recheck-project-card strong,
.recheck-hospital-card strong {
  font-size: 20px;
}

.recheck-package-card em,
.recheck-project-card em,
.recheck-hospital-card em,
.recheck-package-card small,
.recheck-project-card small,
.recheck-hospital-card small,
.recheck-sub-note {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.45;
}

.recheck-date-tools {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 10px;
}

.recheck-date-tools label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.hospital-board-shell {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.sticky-hospital-board {
  position: sticky;
  top: 0;
  z-index: 8;
  padding: 12px;
  margin-left: -12px;
  margin-right: -12px;
  border-radius: 24px;
  background: rgba(250, 244, 238, 0.94);
  backdrop-filter: blur(14px);
}

.hospital-board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hospital-board {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 252, 248, 0.9);
  border: 1px solid rgba(201, 177, 158, 0.36);
  box-shadow: 0 12px 26px rgba(91, 63, 42, 0.06);
}

.hospital-board.active {
  border-color: rgba(191, 93, 56, 0.5);
  background: rgba(255, 246, 237, 0.98);
}

.hospital-board-head button {
  width: 100%;
  display: grid;
  gap: 6px;
  min-height: 84px;
  padding: 16px;
  border-radius: 18px;
  text-align: left;
  font-size: 16px;
}

.hospital-board-head button strong {
  font-size: 28px;
}

.hospital-board-head p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.hospital-board-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hospital-board-kpis div {
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.hospital-board-kpis span,
.hospital-service-row span,
.hospital-service-row em,
.hospital-executor-row span,
.hospital-executor-row em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.hospital-board-kpis strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 17px;
}

.hospital-month-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hospital-month-pill {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(201, 177, 158, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.54);
}

.hospital-month-pill.active {
  border-color: rgba(191, 93, 56, 0.42);
  background: rgba(255, 239, 226, 0.82);
}

.hospital-month-strip button,
.hospital-expand-button {
  min-height: 46px;
  font-size: 14px;
  font-weight: 800;
}

.hospital-service-list,
.hospital-executor-list {
  display: grid;
  gap: 8px;
}

.hospital-service-row,
.hospital-executor-row {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(201, 177, 158, 0.18);
}

.hospital-service-row strong,
.hospital-executor-row strong,
.hospital-executor-title {
  color: var(--accent-strong);
  font-size: 13px;
}

.hospital-executor-title {
  font-weight: 800;
}

.recheck-date-tools input {
  min-width: 160px;
}

.recheck-month-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.recheck-summary-note {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.schedule-month-workbench {
  display: grid;
  gap: 16px;
  margin-top: 14px;
}

.schedule-month-workbench-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.schedule-month-workbench-head h3 {
  margin: 4px 0 6px;
}

.schedule-month-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.schedule-month-card {
  display: grid;
  gap: 6px;
  padding: 14px 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(201, 177, 158, 0.28);
  background: rgba(255, 255, 255, 0.78);
  text-align: left;
}

.schedule-month-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.schedule-month-card strong {
  color: var(--accent-strong);
  font-size: 24px;
  line-height: 1;
}

.schedule-month-card small,
.schedule-month-card em {
  font-style: normal;
  color: var(--ink);
  font-size: 12px;
}

.schedule-month-card.active {
  border-color: rgba(191, 93, 56, 0.46);
  background: linear-gradient(180deg, rgba(255, 239, 226, 0.92), rgba(255, 248, 242, 0.98));
  box-shadow: 0 10px 24px rgba(191, 93, 56, 0.12);
}

.schedule-month-empty {
  margin-top: 14px;
}

.recheck-list {
  margin-top: 18px;
  border-radius: 20px;
  border: 1px solid rgba(201, 177, 158, 0.32);
  background: rgba(255, 252, 248, 0.72);
  overflow: hidden;
}

.recheck-list-header,
.recheck-row {
  grid-template-columns: minmax(220px, 1.2fr) 0.8fr 0.78fr 0.78fr 0.82fr auto;
  align-items: center;
  padding: 14px 16px;
}

.recheck-list-header {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(249, 240, 232, 0.8);
}

.recheck-row {
  border-top: 1px solid rgba(201, 177, 158, 0.22);
}

.recheck-row.matched {
  background: rgba(246, 252, 247, 0.82);
}

.recheck-row.unmatched {
  background: rgba(255, 249, 243, 0.88);
}

.recheck-row-main {
  display: grid;
  gap: 6px;
}

.recheck-row-main strong,
.recheck-row-main em {
  display: block;
}

.recheck-row-main em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.recheck-row-actions {
  display: flex;
  justify-content: flex-end;
}

.recheck-inline-card {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 247, 239, 0.88);
  border: 1px solid rgba(240, 215, 198, 0.9);
}

.recheck-inline-card strong,
.recheck-inline-card p {
  display: block;
  margin-top: 6px;
}

.recheck-inline-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.recheck-page-shell {
  width: min(var(--app-max-width), calc(100% - var(--app-page-gutter)));
}

.recheck-page-shell .topbar {
  margin-bottom: 12px;
}

.recheck-page-shell .brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  font-size: 20px;
}

.recheck-hero {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  gap: 16px;
  padding: 24px 26px;
  margin-bottom: 14px;
}

.recheck-hero h1 {
  max-width: 14ch;
  font-size: clamp(28px, 3vw, 42px);
}

.recheck-hero .hero-copy {
  max-width: 56ch;
}

.recheck-hero .hero-note {
  padding: 18px;
  border-radius: 22px;
}

.recheck-hero .hero-actions {
  margin-top: 14px;
}

.recheck-hero .hero-actions a {
  text-decoration: none;
}

.panel {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.activity-panel,
.create-panel,
.settings-panel {
  margin-bottom: 18px;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(191, 93, 56, 0.34), rgba(191, 93, 56, 0));
}

.panel-spotlight {
  border-color: rgba(186, 100, 61, 0.34);
  box-shadow: 0 0 0 4px rgba(186, 100, 61, 0.08), var(--shadow);
}

.panel-head h2 {
  margin: 0;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.panel-head p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.section-head h3,
.section-head p {
  margin: 0;
}

.compact-head {
  margin-bottom: 14px;
}

.profile-followup-panel {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(47, 128, 237, 0.12);
  box-shadow: 0 10px 24px rgba(18, 64, 128, 0.05);
}

.profile-followup-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-followup-presets .ghost.compact {
  border-radius: 999px;
}

.profile-followup-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.profile-followup-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.profile-followup-form input,
.profile-followup-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(47, 128, 237, 0.14);
  background: rgba(248, 251, 255, 0.94);
  color: var(--ink);
}

.profile-followup-form textarea {
  min-height: 108px;
  resize: vertical;
}

.profile-followup-remark {
  grid-column: 1 / -1;
}

.profile-followup-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-followup-hint {
  color: var(--muted);
  font-size: 13px;
}

.stack-form {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.stack-form label {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 252, 247, 0.94);
  padding: 13px 14px;
  color: var(--ink);
  transition: border-color 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(191, 93, 56, 0.46);
  box-shadow: 0 0 0 4px rgba(191, 93, 56, 0.08);
  background: white;
}

textarea {
  resize: vertical;
}

button {
  border: none;
  border-radius: 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: white;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease, box-shadow 120ms ease;
  box-shadow: 0 12px 20px rgba(191, 93, 56, 0.16);
}

button:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

button:disabled,
button.disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

button.ghost {
  background: rgba(242, 234, 223, 0.94);
  color: var(--ink);
  box-shadow: none;
}

.quick-link-card,
button.quick-link-card {
  border: 1px solid rgba(186, 100, 61, 0.12);
  background: linear-gradient(180deg, rgba(255, 252, 247, 0.9) 0%, rgba(255, 248, 241, 0.82) 100%);
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}

.quick-link-card:hover,
button.quick-link-card:hover {
  opacity: 1;
  box-shadow: 0 18px 30px rgba(83, 52, 36, 0.09);
}

a.ghost,
a.ghost:visited {
  background: rgba(242, 234, 223, 0.94);
  color: var(--ink);
  box-shadow: none;
}

.inline-button {
  width: auto;
}

.toggle {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.toggle input {
  width: auto;
}

.list-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.activity-crm-scope {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 250, 245, 0.9);
  border: 1px solid rgba(191, 93, 56, 0.1);
}

.activity-crm-scope-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.activity-crm-scope-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(191, 93, 56, 0.1);
  background: rgba(255, 254, 251, 0.98);
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.activity-crm-scope-item:hover {
  box-shadow: none;
}

.channel-page-hero .hero-copy {
  max-width: 48ch;
}

.channel-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.channel-page-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.channel-group-panel,
.channel-list-panel {
  border-radius: 22px;
  border: 1px solid rgba(201, 177, 158, 0.28);
  background: rgba(255, 252, 248, 0.74);
  padding: 18px;
}

.channel-group-list,
.channel-codes-list,
.chip-grid,
.tag-pick-grid {
  display: grid;
  gap: 10px;
}

.channel-group-button,
.chip-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
}

.channel-group-button {
  background: rgba(249, 240, 232, 0.86);
  color: var(--ink);
  box-shadow: none;
}

.channel-group-button.active {
  background: linear-gradient(135deg, rgba(186, 100, 61, 0.96) 0%, rgba(127, 62, 38, 0.96) 100%);
  color: white;
  box-shadow: 0 14px 26px rgba(127, 62, 38, 0.18);
}

.channel-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  margin-bottom: 14px;
}

.channel-filter {
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.channel-code-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 16px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(201, 177, 158, 0.28);
  background: rgba(255, 254, 251, 0.96);
}

.channel-code-card-main {
  display: grid;
  gap: 14px;
}

.channel-card-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.channel-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.channel-detail-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(249, 240, 232, 0.54);
  border: 1px solid rgba(201, 177, 158, 0.24);
}

.channel-detail-item span,
.channel-side-meta span {
  color: var(--muted);
  font-size: 12px;
}

.channel-detail-item strong,
.channel-side-meta strong {
  font-size: 14px;
  line-height: 1.6;
}

.channel-code-card-side {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 12px;
  padding-left: 4px;
}

.channel-qr-mini,
.channel-qr-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 249, 255, 0.96) 100%);
  border: 1px solid rgba(201, 177, 158, 0.28);
}

.channel-qr-mini {
  width: 110px;
  height: 110px;
  padding: 14px;
}

.channel-qr-mini::before,
.channel-qr-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 5px;
  background: var(--channel-qr-color, #2f80ed);
}

.channel-qr-mini-grid,
.channel-qr-grid {
  width: 100%;
  height: 100%;
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.12) 16%, transparent 16%, transparent 32%, rgba(17, 24, 39, 0.12) 32%, rgba(17, 24, 39, 0.12) 48%, transparent 48%, transparent 64%, rgba(17, 24, 39, 0.12) 64%, rgba(17, 24, 39, 0.12) 80%, transparent 80%),
    linear-gradient(rgba(17, 24, 39, 0.12) 16%, transparent 16%, transparent 32%, rgba(17, 24, 39, 0.12) 32%, rgba(17, 24, 39, 0.12) 48%, transparent 48%, transparent 64%, rgba(17, 24, 39, 0.12) 64%, rgba(17, 24, 39, 0.12) 80%, transparent 80%),
    radial-gradient(circle at 20% 20%, var(--channel-qr-color, #2f80ed) 0, var(--channel-qr-color, #2f80ed) 12%, transparent 13%),
    radial-gradient(circle at 78% 22%, rgba(17, 24, 39, 0.8) 0, rgba(17, 24, 39, 0.8) 12%, transparent 13%),
    radial-gradient(circle at 26% 74%, rgba(17, 24, 39, 0.8) 0, rgba(17, 24, 39, 0.8) 12%, transparent 13%),
    white;
  background-size: 100% 100%;
}

.channel-side-meta {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.channel-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
}

.channel-form-layout > .panel:not(.channel-preview-panel) {
  grid-column: 1;
}

.channel-preview-panel {
  grid-column: 2;
  grid-row: 1 / span 5;
  align-self: start;
  position: sticky;
  top: 16px;
}

.channel-form-fields,
.settings-fields {
  display: grid;
  gap: 14px;
}

.inline-action-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.inline-action-row,
.channel-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-grid {
  grid-template-columns: repeat(auto-fit, minmax(120px, max-content));
}

.chip-button {
  width: auto;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(249, 240, 232, 0.88);
  color: var(--ink);
  box-shadow: none;
}

.chip-button strong {
  font-size: 14px;
  line-height: 1;
}

.tag-pick-grid {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.tag-pick-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(201, 177, 158, 0.24);
  background: rgba(255, 252, 248, 0.82);
  color: var(--ink);
}

.tag-pick-option input {
  width: auto;
}

.channel-preview-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(249, 240, 232, 0.66);
  border: 1px solid rgba(201, 177, 158, 0.24);
}

.channel-preview-card strong,
.channel-preview-card p {
  margin: 0;
}

.channel-preview-card p {
  margin-top: 8px;
  color: var(--muted);
}

.channel-qr-preview {
  margin-top: 8px;
}

.channel-qr-card {
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 24px;
}

.channel-qr-card strong {
  font-size: 18px;
}

.channel-qr-card span,
.channel-qr-card em {
  color: var(--muted);
  font-style: normal;
}

.channel-qr-card .channel-qr-grid {
  width: 180px;
  height: 180px;
}

@media (max-width: 1120px) {
  .channel-page-shell,
  .channel-form-layout,
  .channel-summary-grid {
    grid-template-columns: 1fr;
  }

  .channel-preview-panel {
    grid-column: 1;
    grid-row: auto;
    position: static;
  }
}

@media (max-width: 860px) {
  .channel-toolbar,
  .channel-code-card,
  .channel-detail-grid {
    grid-template-columns: 1fr;
  }

  .channel-code-card-side {
    justify-items: start;
  }
}

.activity-crm-scope-item.active {
  border-color: rgba(186, 100, 61, 0.34);
  background: linear-gradient(180deg, rgba(255, 240, 229, 0.98) 0%, rgba(255, 251, 246, 0.98) 100%);
}

.activity-crm-scope-item strong,
.activity-crm-scope-item span,
.activity-crm-scope-item em {
  font-style: normal;
}

.activity-crm-scope-item span,
.activity-crm-scope-item em {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.settings-block + .settings-block {
  margin-top: 10px;
}

.settings-block {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 252, 248, 0.72);
  border: 1px solid rgba(201, 177, 158, 0.28);
}

.settings-list {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.settings-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.settings-fields .wide,
.settings-fields .full-span {
  grid-column: 1 / -1;
}

.settings-tip {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

#wecom-sync-strip {
  margin-bottom: 16px;
}

.wecom-sync-panel {
  display: grid;
  gap: 14px;
  padding: 18px 20px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 244, 233, 0.98) 0%, rgba(255, 251, 247, 0.98) 100%);
  border: 1px solid rgba(191, 93, 56, 0.12);
}

.wecom-sync-panel.running {
  border-color: rgba(186, 100, 61, 0.28);
  box-shadow: 0 14px 32px rgba(191, 93, 56, 0.08);
}

.wecom-sync-panel.muted {
  background: rgba(255, 249, 243, 0.88);
}

.wecom-sync-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
}

.wecom-sync-main h3 {
  margin: 4px 0 6px;
  font-size: 20px;
}

.wecom-sync-main p {
  margin: 0;
  color: var(--muted);
}

.wecom-sync-actions {
  display: flex;
  justify-content: flex-end;
}

.wecom-sync-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.wecom-sync-progress-panel {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(191, 93, 56, 0.1);
}

.wecom-progress-meta,
.wecom-progress-subline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.wecom-progress-meta span,
.wecom-progress-subline span {
  color: var(--muted);
  font-size: 13px;
}

.wecom-progress-meta strong {
  color: var(--ink);
  font-size: 15px;
}

.wecom-progress-track {
  position: relative;
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: rgba(191, 93, 56, 0.12);
}

.wecom-progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d97a43 0%, #f0ad5f 100%);
}

.wecom-sync-stats div {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(191, 93, 56, 0.08);
}

.wecom-sync-stats span {
  color: var(--muted);
  font-size: 12px;
}

.wecom-sync-stats strong {
  font-size: 24px;
  color: var(--ink);
}

.wecom-sync-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  color: var(--muted);
  font-size: 13px;
}

.wecom-sync-breakdown {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.wecom-sync-breakdown div {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 250, 244, 0.9);
  border: 1px solid rgba(191, 93, 56, 0.08);
}

.wecom-sync-breakdown span {
  color: var(--muted);
  font-size: 12px;
}

.wecom-sync-breakdown strong {
  color: var(--ink);
  font-size: 22px;
}

.crm-toolbar {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(47, 128, 237, 0.12);
}

.crm-command-bar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 0.9fr);
  gap: 12px;
  align-items: stretch;
}

.crm-search {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
  padding: 10px 12px;
  border-radius: 15px;
  background: rgba(248, 251, 255, 0.92);
  border: 1px solid rgba(47, 128, 237, 0.12);
}

.crm-search span {
  color: var(--ink);
  font-weight: 800;
}

.crm-search input {
  min-height: 44px;
  border-radius: 12px;
  font-size: 15px;
}

.crm-mini-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.crm-mini-metrics button {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 12px;
  border-radius: 15px;
  border: 1px solid rgba(47, 128, 237, 0.1);
  background: rgba(248, 251, 255, 0.86);
  box-shadow: none;
  color: var(--muted);
  text-align: left;
}

.crm-mini-metrics b {
  color: var(--ink);
  font-size: 21px;
  line-height: 1;
}

.crm-mini-metrics span {
  font-size: 12px;
}

.crm-toolbar-label {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.crm-toolbar-label.subtle {
  margin-right: 4px;
}

.crm-shortcut-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
}

.crm-shortcut-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(47, 128, 237, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: none;
}

.crm-shortcut-chip:hover {
  box-shadow: none;
}

.crm-shortcut-chip.active {
  border-color: rgba(47, 128, 237, 0.34);
  background: linear-gradient(180deg, rgba(232, 242, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.crm-shortcut-chip span {
  color: var(--ink);
  font-size: 13px;
}

.crm-shortcut-chip strong {
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(47, 128, 237, 0.1);
  color: var(--accent-strong);
  font-size: 12px;
  line-height: 1;
}

.crm-advanced-filter {
  border-radius: 16px;
  border: 1px solid rgba(47, 128, 237, 0.1);
  background: rgba(255, 255, 255, 0.74);
}

.crm-advanced-filter summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 0 12px;
  cursor: pointer;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  list-style: none;
}

.crm-advanced-filter summary::-webkit-details-marker {
  display: none;
}

.crm-advanced-filter summary strong {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: right;
}

.crm-advanced-filter[open] {
  padding-bottom: 12px;
}

.crm-advanced-filter[open] summary {
  border-bottom: 1px solid rgba(47, 128, 237, 0.08);
  margin-bottom: 12px;
}

.crm-scope-hint {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 249, 243, 0.88);
  border: 1px solid rgba(191, 93, 56, 0.1);
}

.crm-scope-hint p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.crm-scope-hint p + p {
  margin-top: 6px;
}

.crm-list-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  text-align: left;
  padding: 0 2px;
}

.crm-list-summary strong {
  color: var(--ink);
  font-weight: 800;
}

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

.crm-filter-field {
  display: grid;
  gap: 6px;
  min-width: 150px;
  color: var(--muted);
  font-size: 13px;
}

.crm-filter-field select {
  min-width: 150px;
}

.crm-table {
  display: grid;
  gap: 9px;
  padding-top: 4px;
}

.crm-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.crm-pagination-pages,
.crm-pagination-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.crm-pagination-meta {
  justify-content: flex-end;
}

.crm-page-number {
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  font-weight: 800;
}

.crm-page-number.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  opacity: 1;
}

.crm-page-ellipsis {
  display: inline-flex;
  min-width: 32px;
  height: 44px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 24px;
  font-weight: 900;
}

.crm-page-size-select select {
  width: auto;
  min-width: 132px;
  min-height: 44px;
  padding: 0 40px 0 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 800;
}

.crm-table-header,
.crm-table-row,
.crm-summary-grid,
.crm-row-head,
.crm-row-meta,
.crm-detail-grid,
.crm-tag-wrap,
.crm-field-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.crm-table-header {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(230px, 1.2fr) minmax(112px, 0.45fr);
  gap: 12px;
  align-items: center;
  padding: 0 16px 7px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.crm-table-row {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) minmax(230px, 1.2fr) minmax(112px, 0.45fr);
  gap: 12px;
  align-items: center;
  text-align: left;
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid rgba(47, 128, 237, 0.11);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: none;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.crm-table-row:hover {
  transform: translateY(-1px);
  border-color: rgba(47, 128, 237, 0.24);
  box-shadow: 0 10px 22px rgba(18, 64, 128, 0.08);
}

.crm-table-row.active {
  border-color: rgba(47, 128, 237, 0.34);
  background: linear-gradient(180deg, rgba(232, 242, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 18px 30px rgba(47, 128, 237, 0.09);
}

.crm-table-cell {
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: var(--muted);
  line-height: 1.55;
  min-width: 0;
}

.crm-table-cell strong,
.crm-table-cell em {
  font-style: normal;
}

.crm-table-cell strong {
  color: var(--ink);
  font-size: 15px;
}

.crm-table-cell em {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.crm-table-action-cell {
  align-items: flex-end;
  text-align: right;
}

.crm-table-action-cell strong {
  color: var(--accent-strong);
}

.crm-detail-cta {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 30px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1.2;
}

.crm-detail-cta {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 8px 18px rgba(47, 128, 237, 0.18);
}

.crm-profile-card {
  margin-bottom: 16px;
}

.crm-profile-simple-hero {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(47, 128, 237, 0.1);
}

.recheck-crm-profile-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(47, 128, 237, 0.1);
  box-shadow: 0 12px 28px rgba(18, 64, 128, 0.06);
}

.crm-profile-command-bar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto minmax(320px, 0.95fr);
  gap: 10px;
  align-items: stretch;
}

.crm-profile-command-bar label {
  display: grid;
  gap: 7px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(248, 251, 255, 0.94);
  border: 1px solid rgba(47, 128, 237, 0.1);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.crm-profile-command-bar input {
  min-height: 42px;
  border-radius: 12px;
  font-size: 15px;
}

.crm-profile-search-actions {
  display: flex;
  gap: 8px;
  align-items: end;
}

.crm-profile-search-actions button {
  min-height: 42px;
  border-radius: 12px;
}

.crm-profile-mini-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.crm-profile-mini-stats span {
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 10px 12px;
  border-radius: 15px;
  border: 1px solid rgba(47, 128, 237, 0.1);
  background: rgba(248, 251, 255, 0.86);
  color: var(--muted);
  font-size: 12px;
}

.crm-profile-mini-stats span.warn {
  border-color: rgba(223, 128, 42, 0.18);
  background: rgba(255, 248, 236, 0.9);
}

.crm-profile-mini-stats b {
  color: var(--ink);
  font-size: 21px;
  line-height: 1;
}

.recheck-crm-table-wrap {
  overflow: auto;
}

.recheck-crm-table {
  width: 100%;
  min-width: 1120px;
  border-collapse: separate;
  border-spacing: 0 8px;
}

.recheck-crm-table th {
  padding: 0 14px 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: left;
}

.recheck-crm-table th:nth-child(1) {
  width: 18%;
}

.recheck-crm-table th:nth-child(2) {
  width: 18%;
}

.recheck-crm-table th:nth-child(3) {
  width: 18%;
}

.recheck-crm-table th:nth-child(4) {
  width: 18%;
}

.recheck-crm-table th:nth-child(5) {
  width: 18%;
}

.recheck-crm-table th:nth-child(6) {
  width: 10%;
  text-align: right;
}

.recheck-crm-table td {
  padding: 14px;
  border-top: 1px solid rgba(47, 128, 237, 0.1);
  border-bottom: 1px solid rgba(47, 128, 237, 0.1);
  background: rgba(255, 255, 255, 0.95);
  vertical-align: middle;
}

.recheck-crm-table td:first-child {
  border-left: 1px solid rgba(47, 128, 237, 0.1);
  border-radius: 16px 0 0 16px;
}

.recheck-crm-table td:last-child {
  border-right: 1px solid rgba(47, 128, 237, 0.1);
  border-radius: 0 16px 16px 0;
}

.recheck-crm-table tr.is-selected-crm td {
  border-color: rgba(47, 128, 237, 0.32);
  background: rgba(240, 247, 255, 0.98);
}

.recheck-crm-table td strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.recheck-crm-table td span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.crm-profile-chip-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.crm-match-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(47, 128, 237, 0.12);
  background: rgba(47, 128, 237, 0.08);
  color: var(--accent-strong);
  font-size: 12px;
  line-height: 1.25;
}

.crm-match-chip.matched {
  border-color: rgba(35, 161, 105, 0.16);
  background: rgba(35, 161, 105, 0.1);
  color: #157347;
}

.crm-match-chip.warn {
  border-color: rgba(223, 128, 42, 0.18);
  background: rgba(255, 248, 236, 0.94);
  color: #9a5a13;
}

.crm-match-chip.ok {
  border-color: rgba(35, 161, 105, 0.18);
  background: rgba(237, 251, 243, 0.94);
  color: #157347;
}

.crm-match-chip.danger {
  border-color: rgba(209, 69, 59, 0.18);
  background: rgba(255, 241, 240, 0.94);
  color: #ad2f2a;
}

.recheck-crm-row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.recheck-crm-row-actions .link-button {
  min-height: 34px;
  border-radius: 999px;
}

.recheck-crm-row-actions button.link-button {
  width: auto;
  padding-inline: 14px;
}

.recheck-crm-row-actions .primary-link {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  border-color: transparent;
}

.crm-profile-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 2px;
}

.crm-profile-page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.crm-detail-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.crm-detail-panel {
  position: sticky;
  top: 18px;
  align-self: start;
}

.crm-detail-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.crm-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.crm-detail-tabs button {
  box-shadow: none;
}

.crm-detail-tabs button.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: white;
}

.crm-more-tabs {
  display: inline-grid;
  gap: 8px;
}

.crm-more-tabs summary {
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(47, 128, 237, 0.08);
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 800;
}

.crm-more-tabs > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crm-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.activity-tabs,
.activity-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.activity-tabs {
  margin-top: 18px;
}

.activity-tabs button,
.activity-filter-row button {
  box-shadow: none;
}

.activity-tabs button.active,
.activity-filter-row button.active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: white;
}

.activity-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, auto)) minmax(260px, 1fr);
  gap: 12px;
  align-items: center;
  margin: 18px 0 0;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 249, 243, 0.78);
  border: 1px solid rgba(191, 93, 56, 0.08);
}

.activity-summary p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.activity-summary-card {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(191, 93, 56, 0.08);
}

.activity-summary-card strong {
  display: block;
  font-size: 24px;
  line-height: 1;
}

.activity-summary-card span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.activity-list {
  margin-top: 16px;
}

.crm-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.crm-summary-grid div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 251, 246, 0.82);
  border: 1px solid rgba(191, 93, 56, 0.08);
}

.compact-detail-grid {
  margin-top: 16px;
}

.crm-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.crm-detail-grid div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 251, 246, 0.8);
  border: 1px solid rgba(191, 93, 56, 0.08);
}

.crm-detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.crm-detail-grid strong {
  display: block;
  margin-top: 8px;
  line-height: 1.55;
}

.crm-copy-block {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 251, 246, 0.86);
  border: 1px solid rgba(191, 93, 56, 0.08);
}

.crm-copy-block pre {
  margin: 10px 0 0;
  white-space: pre-wrap;
  line-height: 1.7;
}

.profile-section-toggle-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.profile-collapsed-hint {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(47, 128, 237, 0.06);
  border: 1px solid rgba(47, 128, 237, 0.1);
  color: var(--muted);
  font-size: 13px;
}

.crm-tag-wrap {
  margin-top: 14px;
}

.crm-rules-list {
  display: grid;
  gap: 12px;
}

.crm-ai-panel {
  margin-bottom: 16px;
}

.crm-ai-card + .crm-ai-card {
  margin-top: 12px;
}

.crm-ai-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.automation-status-card {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 251, 246, 0.84);
  border: 1px solid rgba(191, 93, 56, 0.08);
}

.automation-status-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.wecom-check-list {
  display: grid;
  gap: 10px;
}

.wecom-check-item {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 251, 246, 0.84);
  border: 1px solid rgba(191, 93, 56, 0.08);
}

.wecom-check-item span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-weight: 800;
}

.wecom-check-item.ok span {
  background: #e6f6ed;
  color: #23784d;
}

.wecom-check-item.warn span {
  background: #fff2d9;
  color: #9a5a13;
}

.wecom-check-item strong {
  display: block;
  color: var(--ink);
}

.wecom-check-item p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.crm-rule-item {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(191, 93, 56, 0.08);
  background: rgba(255, 251, 246, 0.8);
}

.crm-sections-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.crm-section-fold {
  overflow: hidden;
  padding: 0;
}

.crm-section-summary {
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
}

.crm-section-summary::-webkit-details-marker {
  display: none;
}

.crm-section-summary-main h3 {
  margin: 0;
}

.crm-section-summary-main p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.crm-section-summary-side {
  display: flex;
  align-items: center;
  gap: 10px;
}

.crm-section-toggle {
  width: 12px;
  height: 12px;
  margin-top: 2px;
  border-right: 2px solid var(--accent-strong);
  border-bottom: 2px solid var(--accent-strong);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.crm-section-fold[open] .crm-section-toggle {
  transform: rotate(225deg);
}

.crm-section-fold .crm-field-list {
  padding: 0 20px 20px;
  border-top: 1px solid rgba(191, 93, 56, 0.08);
}

.crm-field-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.crm-field-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 251, 246, 0.8);
  border: 1px solid rgba(191, 93, 56, 0.08);
}

.crm-field-item.empty {
  opacity: 0.7;
}

.crm-field-item span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.crm-field-item strong {
  display: block;
  margin-top: 8px;
  line-height: 1.6;
}

.crm-followup-card + .crm-followup-card {
  margin-top: 12px;
}

.crm-summary-preview {
  background:
    radial-gradient(circle at top right, rgba(191, 93, 56, 0.09) 0%, transparent 38%),
    linear-gradient(180deg, rgba(255, 248, 239, 0.98) 0%, rgba(255, 254, 250, 0.98) 100%);
}

.crm-summary-main {
  display: grid;
  gap: 14px;
}

.crm-summary-id {
  margin-top: 8px;
  color: var(--muted);
}

.crm-summary-actions {
  margin-top: 2px;
}

.crm-summary-preview h3,
.crm-rule-preview h3,
.crm-ai-panel h3,
.crm-followup-panel h3 {
  letter-spacing: -0.02em;
}

.crm-rule-preview {
  background:
    radial-gradient(circle at top right, rgba(53, 92, 73, 0.08) 0%, transparent 40%),
    linear-gradient(180deg, rgba(247, 252, 248, 0.96) 0%, rgba(255, 252, 247, 0.96) 100%);
}

.crm-ai-card {
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.98) 0%, rgba(255, 248, 242, 0.96) 100%);
}

.crm-chat-archive-card {
  background:
    radial-gradient(circle at top left, rgba(44, 148, 232, 0.08) 0%, transparent 38%),
    linear-gradient(180deg, rgba(248, 252, 255, 0.98) 0%, rgba(255, 252, 247, 0.96) 100%);
}

.chat-archive-todos {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.chat-archive-todo {
  display: grid;
  gap: 5px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(47, 128, 237, 0.12);
}

.chat-archive-todo.high {
  border-color: rgba(214, 69, 93, 0.25);
  background: rgba(255, 244, 246, 0.82);
}

.chat-archive-todo.medium {
  border-color: rgba(191, 115, 40, 0.25);
  background: rgba(255, 249, 239, 0.84);
}

.chat-archive-todo strong {
  color: var(--accent-deep);
}

.chat-archive-todo span {
  color: var(--muted);
  font-size: 12px;
}

.chat-archive-todo p {
  margin: 0;
  line-height: 1.55;
}

.xiaogu-chat-card {
  grid-column: 1 / -1;
  border-color: rgba(47, 128, 237, 0.16);
  background:
    radial-gradient(circle at top right, rgba(47, 128, 237, 0.09) 0%, transparent 36%),
    linear-gradient(180deg, rgba(248, 252, 255, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.xiaogu-chat-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.xiaogu-chat-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.xiaogu-chat-list article {
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(47, 128, 237, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

.xiaogu-chat-list h4,
.xiaogu-chat-list p {
  margin: 0;
}

.xiaogu-chat-list p {
  margin-top: 6px;
  color: var(--muted);
}

.xiaogu-chat-list blockquote {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-left: 3px solid rgba(47, 128, 237, 0.28);
  border-radius: 12px;
  background: rgba(239, 247, 255, 0.82);
  color: var(--ink);
  line-height: 1.55;
}

.crm-section-card,
.crm-followup-card,
.template-card,
.node-setting-card,
.reminder-rule-card {
  background:
    linear-gradient(180deg, rgba(255, 253, 249, 0.98) 0%, rgba(255, 250, 244, 0.94) 100%);
}

.time-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.time-row input {
  width: 84px;
}

.reminder-rule-card.is-disabled {
  opacity: 0.72;
}

.card {
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 254, 250, 0.96) 0%, rgba(255, 250, 244, 0.94) 100%);
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.card,
.channel-code-card,
.channel-group-panel,
.channel-list-panel,
.settings-block,
.member-query-panel,
.member-summary-row article,
.member-package-card {
  box-shadow: 0 10px 22px rgba(83, 52, 36, 0.04);
}

.card-muted {
  opacity: 0.7;
}

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

.card h3 {
  margin: 0;
  font-size: 18px;
}

.card p,
.card pre {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-wrap;
}

.pill {
  padding: 6px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
}

.pill.done {
  background: #d9efe0;
  color: var(--ok);
}

.pill.success {
  background: #d9efe0;
  color: var(--ok);
}

.pill.warn,
.pill.cancelled {
  background: #ece6de;
  color: var(--warn);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  padding: 6px 10px;
  font-size: 12px;
  background: rgba(242, 234, 223, 0.92);
  color: #5a4537;
  border: 1px solid rgba(191, 93, 56, 0.08);
}

.tag.muted {
  color: #8a776b;
  background: rgba(245, 241, 235, 0.8);
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.reminder-manage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.reminder-manage-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 251, 246, 0.82);
  border: 1px solid rgba(191, 93, 56, 0.08);
}

.reminder-assign-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
}

.micro-copy {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.reminder-select-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.reminder-select-row input {
  width: auto;
  margin-top: 4px;
}

.reminder-history-panel {
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(253, 247, 240, 0.9);
  border: 1px solid rgba(191, 93, 56, 0.12);
}

.reminder-history-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.reminder-history-head strong {
  color: var(--accent-deep);
}

.reminder-history-head span {
  color: var(--muted);
  font-size: 13px;
}

.reminder-history-list {
  display: grid;
  gap: 10px;
}

.reminder-history-item {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(191, 93, 56, 0.08);
}

.reminder-history-item.is-failed {
  background: linear-gradient(180deg, rgba(255, 241, 239, 0.96), rgba(255, 250, 248, 0.92));
  border-color: rgba(197, 72, 52, 0.22);
  box-shadow: inset 0 0 0 1px rgba(197, 72, 52, 0.08);
}

.reminder-history-item p {
  margin: 6px 0 0;
}

.reminder-history-error {
  color: #b33c2d;
  font-weight: 700;
}

.reminder-history-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.capture-form-grid,
.capture-hint-grid,
.capture-result-list {
  display: grid;
  gap: 12px;
}

.capture-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.capture-hint {
  margin-top: 18px;
}

.capture-hint-card {
  background:
    radial-gradient(circle at top right, rgba(53, 92, 73, 0.08) 0%, transparent 42%),
    linear-gradient(180deg, rgba(247, 252, 248, 0.98) 0%, rgba(255, 252, 247, 0.96) 100%);
}

.capture-hint-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.capture-hint-grid div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(191, 93, 56, 0.08);
}

.capture-hint-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.capture-hint-grid strong {
  display: block;
  margin-top: 8px;
  line-height: 1.55;
}

.capture-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.capture-actions button {
  min-width: 190px;
}

.capture-result-head,
.capture-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.capture-result-head {
  align-items: center;
  justify-content: space-between;
}

.capture-result-meta {
  margin-top: 12px;
  color: #8a5b42;
  font-size: 13px;
}

.capture-result-list {
  margin-top: 14px;
}

.capture-result-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid rgba(191, 93, 56, 0.1);
}

.capture-result-item strong {
  display: block;
  color: var(--ink);
}

.capture-result-empty {
  margin-top: 12px;
}

.bind-box {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.bind-box label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.bind-box button {
  margin-top: 12px;
}

.quick-actions.large button.mini {
  flex: 1 1 calc(50% - 8px);
}

button.mini {
  padding: 8px 12px;
  font-size: 13px;
  background: #f1ece4;
  color: var(--ink);
}

.focus-card {
  background: linear-gradient(180deg, rgba(255, 245, 236, 0.98) 0%, rgba(255, 254, 250, 0.98) 100%);
}

.focus-patient {
  margin-bottom: 18px;
}

.promise-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 24px;
}

.promise-strip article {
  padding: 18px 20px;
  border-radius: 22px;
  background: rgba(255, 251, 246, 0.8);
  border: 1px solid rgba(200, 170, 146, 0.28);
  box-shadow: var(--shadow-soft);
}

.promise-strip p {
  margin: 0;
  color: var(--accent-strong);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.promise-strip strong {
  display: block;
  margin-top: 12px;
  line-height: 1.55;
  font-size: 16px;
}

.hero-note-stack {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.hero-note-stack section {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(164, 126, 102, 0.12);
}

.micro-title {
  margin: 0;
  color: var(--accent-strong);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-note-stack ol {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.85;
}

.result-box,
.empty-state {
  margin-top: 16px;
  border-radius: 18px;
  padding: 14px 16px;
  background: rgba(255, 246, 239, 0.94);
  border: 1px solid rgba(240, 215, 198, 0.9);
  color: #774329;
  white-space: pre-wrap;
}

.hidden {
  display: none;
}

.modal-backdrop.hidden {
  display: none !important;
}

body.modal-open {
  overflow: hidden;
}

@media (max-width: 960px) {
  .topbar,
  .hero,
  .layout,
  .grid-two,
  .stats,
  .quick-link-strip,
  .promise-strip,
  .hero-highlights,
  .crm-shell,
  .support-grid,
	  .crm-detail-grid,
	  .crm-detail-top,
	  .crm-summary-grid,
	  .crm-sections-grid,
	  .crm-field-list,
	  .member-compact-hero,
	  .member-priority-grid {
	    grid-template-columns: 1fr;
	  }

  .crm-toolbar {
    gap: 12px;
  }

  .recheck-hero {
    padding: 20px;
  }

  .recheck-hero .hero-note {
    display: none;
  }

  .activity-summary {
    grid-template-columns: 1fr;
  }

  .crm-command-bar {
    grid-template-columns: 1fr;
  }

  .crm-profile-command-bar {
    grid-template-columns: 1fr;
  }

  .crm-profile-mini-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crm-list-summary {
    justify-content: space-between;
    text-align: left;
  }

  .activity-crm-scope-grid {
    grid-template-columns: 1fr;
  }

  .crm-ai-grid {
    grid-template-columns: 1fr;
  }

  .wecom-sync-main,
  .wecom-sync-stats {
    grid-template-columns: 1fr;
  }

  .wecom-sync-breakdown {
    grid-template-columns: 1fr;
  }

  .recheck-toolbar-main,
  .member-query-head,
  .member-query-panel,
  .member-summary-row,
  .recheck-summary-grid,
  .recheck-list-header,
  .recheck-row {
    grid-template-columns: 1fr;
  }

  .member-query-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .member-table-tools,
  .member-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .member-pagination-actions,
  .member-page-size-bottom {
    justify-content: center;
  }

  .crm-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .crm-pagination-pages,
  .crm-pagination-meta {
    justify-content: flex-end;
  }

  .member-page-hint {
    text-align: left;
  }

  .recheck-summary-note,
  .recheck-row-actions {
    justify-content: flex-start;
  }

  .wecom-sync-actions {
    justify-content: stretch;
  }

  .capture-form-grid,
  .capture-hint-grid {
    grid-template-columns: 1fr;
  }

  .reminder-manage-grid {
    grid-template-columns: 1fr;
  }

  .reminder-assign-row {
    grid-template-columns: 1fr;
  }

  .settings-fields {
    grid-template-columns: 1fr;
  }

  .page-shell {
    width: min(100% - 20px, 1200px);
    padding-top: 20px;
  }

  .topbar {
    padding: 14px;
  }

  .topbar-nav {
    width: 100%;
  }

  .hero {
    padding: 24px;
  }

  .hero h1 {
    max-width: none;
  }

  .hero-note {
    padding: 20px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .crm-detail-panel {
    position: static;
  }

  .crm-table-header {
    display: none;
  }

  .crm-table-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .recheck-crm-table,
  .recheck-crm-table thead,
  .recheck-crm-table tbody,
  .recheck-crm-table tr,
  .recheck-crm-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .recheck-crm-table {
    min-width: 0;
    border-spacing: 0;
  }

  .recheck-crm-table thead {
    display: none;
  }

  .recheck-crm-table tr {
    margin-bottom: 10px;
    padding: 12px;
    border: 1px solid rgba(47, 128, 237, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
  }

  .recheck-crm-table td,
  .recheck-crm-table td:first-child,
  .recheck-crm-table td:last-child {
    padding: 6px 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .recheck-crm-row-actions {
    justify-content: flex-start;
  }

  .crm-command-bar {
    grid-template-columns: 1fr;
  }

  .crm-shortcut-row {
    justify-content: flex-start;
  }

  .crm-mini-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

body.sidebar-mode {
  background:
    linear-gradient(180deg, #fbf7f1 0%, #f5ede2 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body.sidebar-mode .page-shell {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  padding: max(10px, env(safe-area-inset-top)) 8px calc(74px + env(safe-area-inset-bottom));
  overflow-x: clip;
}

body.sidebar-mode .page-shell::before {
  display: none;
}

body.sidebar-mode .topbar,
body.sidebar-mode .promise-strip {
  display: none;
}

body.sidebar-mode .hero {
  display: none;
}

body.sidebar-mode .hero h1 {
  font-size: 26px;
}

body.sidebar-mode .hero-copy {
  font-size: 14px;
  line-height: 1.65;
}

body.sidebar-mode .hero-highlights,
body.sidebar-mode .quick-link-strip,
body.sidebar-mode .hero-actions,
body.sidebar-mode .crm-shell {
  display: none;
}

body.sidebar-mode .stats {
  display: none;
}

body.sidebar-mode .stat-card {
  padding: 14px 16px;
}

body.sidebar-mode .stat-card strong {
  font-size: 26px;
}

body.sidebar-mode .layout,
body.sidebar-mode .grid-two,
body.sidebar-mode .support-grid {
  grid-template-columns: 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

body.sidebar-mode .recheck-list-header {
  display: none;
}

body.sidebar-mode .recheck-row {
  grid-template-columns: 1fr;
}

body.sidebar-mode .recheck-page-shell .hero,
body.sidebar-mode .recheck-page-shell #recheck-page-help,
body.sidebar-mode .recheck-page-shell .member-package-note,
body.sidebar-mode .recheck-page-shell .member-executor-summary,
body.sidebar-mode .recheck-page-shell .hospital-service-list,
body.sidebar-mode .recheck-page-shell .hospital-executor-list {
  display: none !important;
}

body.sidebar-mode .recheck-page-shell .hospital-board-grid,
body.sidebar-mode .recheck-page-shell .member-summary-row,
body.sidebar-mode .recheck-page-shell .member-query-panel {
  grid-template-columns: 1fr;
}

body.sidebar-mode .recheck-page-shell .member-query-panel.member-query-panel-mobile {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px 8px;
  padding: 10px;
}

body.sidebar-mode .recheck-page-shell .member-query-panel.member-query-panel-mobile .member-query-field {
  min-width: 0;
}

body.sidebar-mode .recheck-page-shell .member-query-panel.member-query-panel-mobile .member-query-actions {
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.sidebar-mode .recheck-page-shell .member-query-panel.member-query-panel-mobile .member-query-mobile-hint {
  display: block;
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

body.sidebar-mode .recheck-page-shell .member-scroll-table {
  overflow-x: auto;
}

body.sidebar-mode .recheck-page-shell .member-summary-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.sidebar-mode .recheck-page-shell .member-card-grid {
  grid-template-columns: 1fr;
}

body.sidebar-mode .recheck-page-shell .member-card {
  padding: 12px;
  border-radius: 18px;
}

body.sidebar-mode .recheck-page-shell .member-card-section {
  padding: 10px;
}

body.sidebar-mode .recheck-page-shell .member-card-title-row strong {
  font-size: 17px;
}

body.sidebar-mode .recheck-page-shell .member-mini-field {
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: start;
}

body.sidebar-mode .recheck-page-shell .member-mini-field span {
  padding-top: 9px;
}

body.sidebar-mode .recheck-page-shell .member-card-actions-main,
body.sidebar-mode .recheck-page-shell .member-card-actions-meta {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
}

body.sidebar-mode .recheck-page-shell .member-card-actions-main > *,
body.sidebar-mode .recheck-page-shell .member-card-actions-meta > * {
  width: 100%;
}

body.sidebar-mode .recheck-page-shell .member-more-actions summary,
body.sidebar-mode .recheck-page-shell .member-save-chip,
body.sidebar-mode .recheck-page-shell .member-handled-check {
  justify-content: center;
}

body.sidebar-mode .recheck-page-shell .member-card .phone-action-row {
  gap: 6px;
  flex-wrap: wrap;
}

body.sidebar-mode .recheck-page-shell .member-card .phone-action-row .compact {
  flex: 1 1 84px;
}

body.sidebar-mode .recheck-page-shell .schedule-detail-head {
  display: grid;
  gap: 10px;
}

body.sidebar-mode .recheck-page-shell .schedule-month-workbench-head {
  display: grid;
  gap: 10px;
}

body.sidebar-mode .recheck-page-shell .schedule-month-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.sidebar-mode .recheck-page-shell .schedule-workbench-overview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.sidebar-mode .recheck-page-shell .schedule-detail-entrances {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.sidebar-mode .recheck-page-shell .schedule-workbench-top {
  grid-template-columns: 1fr;
}

body.sidebar-mode .recheck-page-shell .schedule-basic-top {
  grid-template-columns: 1fr;
}

body.sidebar-mode .recheck-page-shell .schedule-basic-phone {
  justify-items: start;
  text-align: left;
}

body.sidebar-mode .recheck-page-shell .schedule-basic-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.sidebar-mode .recheck-page-shell .schedule-basic-actions {
  justify-content: stretch;
}

body.sidebar-mode .recheck-page-shell .schedule-basic-actions > * {
  flex: 1 1 140px;
}

body.sidebar-mode .recheck-page-shell .schedule-node-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.sidebar-mode .recheck-page-shell .schedule-fact-grid {
  grid-template-columns: 1fr;
}

body.sidebar-mode .recheck-page-shell .schedule-workbench-actions-main {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.sidebar-mode .recheck-page-shell .smart-filter-strip {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px;
  padding: 8px;
}

body.sidebar-mode .recheck-page-shell .workbench-entry-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.sidebar-mode .recheck-page-shell .workbench-entry-card {
  padding: 14px;
  border-radius: 18px;
}

body.sidebar-mode .recheck-page-shell .workbench-entry-top strong {
  font-size: 18px;
}

body.sidebar-mode .recheck-page-shell .workbench-entry-meta b {
  font-size: 26px;
}

body.sidebar-mode .recheck-page-shell .workbench-entry-inline-stats {
  grid-template-columns: 1fr;
}

body.sidebar-mode .recheck-page-shell .schedule-workbench-overview {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.sidebar-mode .recheck-page-shell .compact-schedule-card .schedule-workbench-top {
  grid-template-columns: 1fr;
}

body.sidebar-mode .recheck-page-shell .compact-schedule-card .schedule-node-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.sidebar-mode .recheck-page-shell .compact-schedule-card .schedule-fact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.sidebar-mode .recheck-page-shell .compact-schedule-card .schedule-workbench-actions-main {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.sidebar-mode .recheck-page-shell .smart-filter-strip-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
}

body.sidebar-mode .recheck-page-shell .smart-filter-strip-title span {
  font-size: 13px;
  font-weight: 900;
  color: var(--accent-deep);
}

body.sidebar-mode .recheck-page-shell .smart-filter-strip-title small {
  font-size: 10px;
  color: var(--muted);
}

body.sidebar-mode .recheck-page-shell .smart-filter-strip button,
body.sidebar-mode .recheck-page-shell .year-special-filters button,
body.sidebar-mode .recheck-page-shell .member-secondary-entrances button {
  width: auto;
  min-height: 54px;
  padding: 8px 10px;
  border-radius: 14px;
  text-align: left;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 2px;
}

body.sidebar-mode .recheck-page-shell .smart-filter-strip button strong,
body.sidebar-mode .recheck-page-shell .year-special-filters button strong {
  margin-left: 0;
  font-size: 15px;
  line-height: 1.1;
}

body.sidebar-mode .recheck-page-shell .smart-filter-strip button,
body.sidebar-mode .recheck-page-shell .year-special-filters button {
  font-size: 12px;
  font-weight: 800;
}

body.sidebar-mode .recheck-page-shell .member-card-actions {
  gap: 8px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(245, 248, 252, 0.92);
  border: 1px solid rgba(47, 128, 237, 0.1);
}

body.sidebar-mode .recheck-page-shell .member-card-actions-main {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px;
}

body.sidebar-mode .recheck-page-shell .member-card-actions-main .member-handled-check {
  grid-column: 1 / -1;
}

body.sidebar-mode .recheck-page-shell .member-card-actions-meta {
  grid-template-columns: minmax(0, 88px) minmax(0, 1fr) !important;
  gap: 8px;
}

body.sidebar-mode .recheck-page-shell .member-card-actions-meta .member-save-chip {
  align-self: center;
  min-height: 40px;
}

body.sidebar-mode .recheck-page-shell .member-card-actions-meta .member-more-actions summary {
  min-height: 40px;
}

body.sidebar-mode .panel {
  padding: 10px 12px;
  border-radius: 16px;
  box-shadow: none;
  margin-bottom: 72px;
}

body.sidebar-mode .panel-head h2 {
  font-size: 17px;
  line-height: 1.25;
}

body.sidebar-mode .panel-head p {
  display: none;
}

body.sidebar-mode .sidebar-banner {
  display: none;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 16px;
  box-shadow: none;
}

body.sidebar-mode .sidebar-banner h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.3;
}

body.sidebar-mode .sidebar-banner button {
  width: auto;
  min-width: 128px;
}

body.sidebar-mode .sidebar-banner .eyebrow,
body.sidebar-mode .banner-copy {
  font-size: 12px;
}

body.sidebar-mode .focus-patient {
  margin: 0;
}

body.sidebar-mode .focus-patient .panel-head {
  display: none;
}

body.sidebar-mode .focus-card {
  padding: 14px;
}

body.sidebar-mode .card-head {
  align-items: flex-start;
  gap: 10px;
}

body.sidebar-mode .focus-card h3 {
  font-size: 20px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

body.sidebar-mode .focus-card p {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

body.sidebar-mode .pill,
body.sidebar-mode .tag {
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.2;
}

body.sidebar-mode .quick-actions.large {
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 12px;
}

body.sidebar-mode .wecom-profile-card {
  padding-bottom: 0;
}

body.sidebar-mode .wecom-profile-head,
.wecom-profile-head {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 9px;
  align-items: center;
  padding: 11px;
  border-radius: 14px;
  background: rgba(255, 252, 248, 0.96);
  border: 1px solid rgba(219, 193, 172, 0.56);
}

.wecom-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f0ece7;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 17px;
}

.wecom-profile-head h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.wecom-profile-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.wecom-profile-section {
  margin-top: 8px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 252, 248, 0.9);
  border: 1px solid rgba(219, 193, 172, 0.5);
}

.wecom-profile-section.compact-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.wecom-profile-section.compact-note strong,
.wecom-profile-section.compact-note p {
  display: block;
  margin: 0;
}

.wecom-profile-section.compact-note p {
  margin-top: 4px;
}

.wecom-profile-section.compact-note.warn {
  color: #9a5a13;
  background: #fff7e8;
}

.wecom-core-summary {
  display: grid;
  gap: 6px;
}

.wecom-core-summary div {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
}

.wecom-core-summary span {
  color: #8a776b;
  font-size: 12px;
}

.wecom-core-summary strong {
  color: var(--ink);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.wecom-core-summary em {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.wecom-app-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
}

.wecom-app-actions a,
.wecom-app-actions button {
  min-height: 38px;
  width: 100%;
  display: grid;
  place-items: center;
  padding: 6px;
  border: 1px solid rgba(44, 148, 232, 0.18);
  border-radius: 12px;
  background: #eef7ff;
  color: #246ea9;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.wecom-app-actions button:disabled {
  opacity: 0.55;
}

.wecom-profile-details {
  margin-top: 8px;
}

.wecom-profile-details summary {
  padding: 10px 11px;
  border-radius: 14px;
  background: rgba(255, 252, 248, 0.94);
  border: 1px solid rgba(219, 193, 172, 0.5);
  color: #7b6a60;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.wecom-recent-actions p {
  margin: 8px 0 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.wecom-recent-actions span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.wecom-empty-state {
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 22px 14px;
  border-radius: 16px;
  background: rgba(255, 252, 248, 0.96);
  border: 1px solid rgba(219, 193, 172, 0.56);
  text-align: center;
}

.wecom-empty-state h3 {
  margin: 0;
  font-size: 18px;
}

.wecom-empty-state p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.wecom-section-title {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.wecom-profile-line {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.wecom-profile-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(219, 193, 172, 0.38);
}

.wecom-profile-row:last-child {
  border-bottom: 0;
}

.wecom-profile-row span {
  color: #8a776b;
}

.wecom-profile-row strong {
  color: var(--ink);
  font-weight: 500;
  text-align: right;
  overflow-wrap: anywhere;
}

.wecom-timeline-item {
  margin: 8px 0 0;
  padding-left: 12px;
  border-left: 3px solid #2c94e8;
  color: var(--muted);
  line-height: 1.5;
}

.wecom-action-dock {
  position: sticky;
  left: auto;
  right: auto;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 6px max(8px, calc((100vw - 430px) / 2)) calc(6px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(219, 193, 172, 0.7);
  box-shadow: 0 -10px 24px rgba(80, 47, 28, 0.08);
}

.mobile-bottom-nav {
  display: none;
}

.mobile-today-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mobile-today-summary article,
.mobile-today-task {
  border: 1px solid rgba(47, 128, 237, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
}

.mobile-today-summary article {
  display: grid;
  gap: 5px;
  padding: 14px;
}

.mobile-today-summary span,
.mobile-today-task span {
  color: var(--muted);
  font-size: 12px;
}

.mobile-today-summary strong {
  color: var(--accent-deep);
  font-size: 28px;
  line-height: 1;
}

.mobile-today-summary em,
.mobile-today-task em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.mobile-today-summary .warn,
.mobile-today-task.warn {
  border-color: rgba(217, 119, 6, 0.24);
  background: linear-gradient(135deg, rgba(255, 251, 235, 0.96), rgba(255, 255, 255, 0.92));
}

.mobile-today-summary .danger,
.mobile-today-task.danger {
  border-color: rgba(220, 38, 38, 0.24);
  background: linear-gradient(135deg, rgba(254, 242, 242, 0.96), rgba(255, 255, 255, 0.92));
}

.mobile-today-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.mobile-today-task {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  padding: 14px;
  text-align: left;
}

.mobile-today-task strong {
  color: var(--ink);
  font-size: 14px;
}

.mobile-today-task em {
  align-self: center;
  grid-row: 1 / 3;
  grid-column: 2;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(47, 128, 237, 0.1);
  color: var(--accent-deep);
  font-weight: 900;
}

.wecom-action-dock a,
.wecom-action-dock button {
  display: grid;
  place-items: center;
  min-height: 36px;
  padding: 3px;
  border: 0;
  background: transparent;
  color: #7b6a60;
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.wecom-action-dock a[aria-disabled="true"],
.wecom-action-dock button:disabled {
  opacity: 0.42;
  pointer-events: none;
}

.wecom-sidebar-toast {
  position: fixed;
  left: 50%;
  bottom: calc(58px + env(safe-area-inset-bottom));
  z-index: 1000;
  width: min(360px, calc(100vw - 28px));
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(35, 120, 77, 0.96);
  color: #fff;
  box-shadow: 0 14px 36px rgba(27, 58, 43, 0.22);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
  transform: translate(-50%, 16px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.wecom-sidebar-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.sidebar-mode .wecom-profile-card .wecom-action-dock {
  width: 100%;
  margin-top: 12px;
}

.wecom-write-panel {
  display: grid;
  gap: 10px;
}

.wecom-write-panel label {
  display: grid;
  gap: 6px;
  color: #8a776b;
  font-size: 13px;
}

.wecom-write-panel input,
.wecom-write-panel textarea,
.wecom-write-panel select {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  font-size: 14px;
}

.wecom-write-panel textarea {
  resize: vertical;
}

.wecom-write-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.wecom-tag-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 82px;
  gap: 8px;
}

.wecom-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wecom-tag-chip button,
body.sidebar-mode .wecom-tag-chip button {
  width: 18px;
  min-height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(138, 119, 107, 0.16);
  color: #7b6a60;
  font-size: 14px;
  line-height: 1;
}

body.sidebar-mode .create-panel,
body.sidebar-mode .settings-panel,
body.sidebar-mode .activity-panel {
  display: none;
}

.wecom-debug-block {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(92, 52, 23, 0.06);
  border: 1px solid rgba(176, 102, 45, 0.14);
}

.wecom-debug-block p {
  margin: 0 0 6px;
  color: #70472d;
  font-size: 13px;
  line-height: 1.5;
}

.wecom-debug-block p:last-child {
  margin-bottom: 0;
}

body.sidebar-mode .stack-form {
  gap: 12px;
}

body.sidebar-mode .capture-form-grid {
  display: none;
}

body.sidebar-mode .capture-actions {
  flex-direction: column;
}

body.sidebar-mode input,
body.sidebar-mode select,
body.sidebar-mode textarea {
  padding: 11px 12px;
}

body.sidebar-mode button {
  width: 100%;
}

body.sidebar-mode .sidebar-banner button {
  display: none;
}

body.sidebar-mode .actions {
  flex-direction: column;
}

.home-secondary-dock {
  display: none !important;
}

#activity-panel.home-secondary-dock {
  display: block !important;
}

.settings-fold > .section-head {
  cursor: pointer;
  user-select: none;
}

.settings-fold > .section-head::after {
  content: "收起";
  margin-left: auto;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(138, 119, 107, 0.1);
  color: #7b6a60;
  font-size: 12px;
}

.settings-fold.is-folded > .section-head::after {
  content: "展开";
}

.settings-fold.is-folded > :not(.section-head) {
  display: none !important;
}

.member-executor-summary {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid rgba(138, 119, 107, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.member-executor-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

.member-executor-summary-grid article {
  padding: 12px;
  border-radius: 14px;
  background: rgba(47, 128, 237, 0.08);
}

.member-executor-summary-grid strong,
.member-executor-summary-grid span,
.member-executor-summary-grid p {
  display: block;
  margin: 0;
}

.member-executor-summary-grid span {
  color: #2f5f8f;
  font-size: 13px;
}

.member-executor-summary-grid p {
  margin-top: 5px;
  color: #7b6a60;
  font-size: 12px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(12, 32, 58, 0.42);
  backdrop-filter: blur(8px);
}

.recheck-modal {
  width: min(980px, 96vw);
  max-height: 88vh;
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
  background: #fafdff;
  border: 1px solid rgba(47, 128, 237, 0.18);
  box-shadow: 0 28px 80px rgba(12, 32, 58, 0.28);
}

.admin-member-entry {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(47, 128, 237, 0.14);
  background: rgba(239, 247, 255, 0.78);
}

.admin-member-entry span {
  color: var(--muted);
  line-height: 1.6;
}

.admin-member-modal .admin-member-form {
  gap: 12px;
}

.compact-modal {
  width: min(680px, 96vw);
}

.member-detail-modal {
  width: min(1040px, calc(100vw - 28px));
}

.recheck-create-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  min-height: 100vh;
  align-items: center;
  justify-items: center;
  place-items: center;
  padding: 18px;
  overflow-y: auto;
}

.create-member-modal {
  width: min(720px, calc(100vw - 28px));
  max-height: min(820px, calc(100vh - 36px));
  overflow: auto;
  align-self: center;
  margin: auto;
  gap: 12px;
  padding: 18px;
}

.create-member-page {
  padding: 0;
  overflow: hidden;
}

.create-member-form-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  background:
    radial-gradient(circle at top left, rgba(47, 128, 237, 0.06), transparent 34%),
    #fafdff;
}

.create-member-form-card .modal-head,
.create-member-form-card .create-page-hero,
.create-member-form-card .create-member-sections,
.create-member-form-card .create-bottom-note,
.create-member-form-card .create-error-box {
  width: 100%;
}

.create-member-form-card .modal-actions {
  position: sticky;
  bottom: 0;
  margin: 8px -20px -20px;
  padding: 14px 20px;
  border-top: 1px solid rgba(47, 128, 237, 0.12);
  background: rgba(250, 253, 255, 0.96);
  backdrop-filter: blur(8px);
}

.member-detail-page {
  position: relative;
  padding: 18px;
}

.modal-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.modal-head h3 {
  margin: 4px 0 0;
}

.create-page-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.create-member-modal .modal-actions {
  position: sticky;
  bottom: -18px;
  margin: 4px -18px -18px;
  padding: 12px 18px 14px;
  border-top: 1px solid rgba(47, 128, 237, 0.12);
  background: rgba(250, 253, 255, 0.96);
  backdrop-filter: blur(8px);
}

.create-member-modal [data-recheck-create-member] {
  min-width: 150px;
}

.create-member-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.create-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 12px;
  align-items: stretch;
}

.create-page-hero-main,
.create-page-hero-side {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 22px;
  border: 1px solid rgba(47, 128, 237, 0.14);
  background:
    radial-gradient(circle at top right, rgba(47, 128, 237, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.94));
  box-shadow: 0 18px 40px rgba(18, 64, 128, 0.08);
}

.create-page-hero-main {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.create-hero-chip {
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 96px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(47, 128, 237, 0.12);
  background: rgba(255, 255, 255, 0.84);
}

.create-hero-chip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.create-hero-chip strong {
  color: var(--accent-deep);
  font-size: 20px;
  line-height: 1.28;
}

.create-hero-chip.ok {
  border-color: rgba(47, 128, 237, 0.2);
  box-shadow: inset 0 0 0 1px rgba(47, 128, 237, 0.04);
}

.create-hero-chip.pending strong {
  color: #7f93ae;
}

.create-page-hero-side p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.create-helper-badge {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(47, 128, 237, 0.14);
  background: rgba(244, 249, 255, 0.92);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 900;
}

.create-helper-badge.ok {
  background: rgba(228, 246, 236, 0.95);
  border-color: rgba(47, 122, 83, 0.22);
  color: #247048;
}

.create-member-sections {
  display: grid;
  gap: 14px;
}

.create-member-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(47, 128, 237, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.94));
  box-shadow: 0 18px 34px rgba(18, 64, 128, 0.06);
}

.create-section-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(47, 128, 237, 0.08);
}

.create-section-title strong {
  color: var(--ink);
  font-size: 15px;
}

.create-section-title span {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.create-member-form-card .create-member-grid-primary,
.create-member-form-card .create-member-grid-money {
  grid-template-columns: repeat(4, minmax(160px, 1fr));
}

.create-member-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.create-member-grid input,
.create-member-grid select,
.create-member-grid textarea {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  font-size: 14px;
}

.create-member-grid input,
.create-member-grid select {
  height: 46px;
  line-height: 1.2;
  padding: 0 18px;
}

.create-member-grid select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 42px;
  background:
    linear-gradient(45deg, transparent 50%, #315f98 50%) calc(100% - 20px) 50% / 6px 6px no-repeat,
    linear-gradient(135deg, #315f98 50%, transparent 50%) calc(100% - 14px) 50% / 6px 6px no-repeat,
    rgba(255, 255, 255, 0.94);
}

.create-member-grid textarea {
  min-height: 124px;
  padding-top: 12px;
  resize: vertical;
}

.create-service-picker {
  display: grid;
  grid-column: 1 / -1;
  gap: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.create-service-card-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.create-service-card {
  display: grid;
  gap: 5px;
  min-height: 78px;
  padding: 12px 13px;
  border-radius: 18px;
  border: 1px solid rgba(47, 128, 237, 0.14);
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(240, 247, 255, 0.92));
  color: var(--ink);
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.create-service-card strong {
  color: var(--accent-deep);
  font-size: 15px;
}

.create-service-card span {
  color: var(--muted);
  font-size: 12px;
}

.create-service-card.active {
  border-color: rgba(47, 128, 237, 0.42);
  background: linear-gradient(135deg, rgba(230, 243, 255, 0.98), rgba(255, 252, 246, 0.96));
  box-shadow: 0 12px 24px rgba(47, 128, 237, 0.14);
}

.create-service-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(18, 64, 128, 0.1);
}

.locked-performance-field input[readonly] {
  border-color: rgba(37, 99, 235, 0.34);
  background: rgba(219, 234, 254, 0.7);
  color: #1d4ed8;
  font-weight: 800;
}

.locked-performance-field small,
.performance-lock-help {
  color: #1d4ed8;
  font-weight: 700;
}

.create-notes-field {
  grid-column: 1 / -1;
}

.create-bottom-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(47, 128, 237, 0.1);
  background: rgba(244, 249, 255, 0.86);
}

.create-bottom-note p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.member-detail-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.member-detail-kpis article {
  padding: 13px;
  border-radius: 16px;
  border: 1px solid rgba(47, 128, 237, 0.13);
  background: rgba(244, 249, 255, 0.88);
}

.member-detail-kpis span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.member-detail-kpis strong {
  display: block;
  margin-top: 5px;
  color: var(--accent-deep);
  font-size: 18px;
}

.member-related-bb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-related-bb p {
  flex-basis: 100%;
  margin: 0 0 4px;
  color: var(--muted);
  line-height: 1.55;
}

.member-service-flow-panel {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(239, 247, 255, 0.92), rgba(255, 255, 255, 0.78));
  border: 1px solid rgba(47, 128, 237, 0.16);
}

.member-service-flow-panel h4 {
  margin: 0 0 4px;
  color: var(--accent-deep);
}

.member-service-flow-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.member-service-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.member-flow-step {
  display: grid;
  gap: 4px;
  min-height: 70px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(47, 128, 237, 0.12);
  color: var(--ink);
  text-align: left;
}

.member-flow-step strong {
  color: var(--accent-deep);
}

.member-flow-step span {
  font-size: 12px;
  color: var(--muted);
}

.member-flow-step.is-current {
  background: #2f80ed;
  color: #fff;
  box-shadow: 0 12px 26px rgba(47, 128, 237, 0.18);
}

.member-flow-step.is-current strong,
.member-flow-step.is-current span {
  color: #fff;
}

.member-flow-step.is-passed {
  background: rgba(47, 122, 83, 0.1);
  border-color: rgba(47, 122, 83, 0.2);
}

.member-flow-benefit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.create-error-box {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 247, 219, 0.72);
  border: 1px solid rgba(191, 115, 40, 0.24);
}

.member-permission-mask {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 12px;
  color: #6b7b8d;
  background: rgba(239, 247, 255, 0.9);
  border: 1px dashed rgba(47, 128, 237, 0.2);
  font-size: 12px;
}

tr.is-highlighted {
  animation: member-row-highlight 2.8s ease both;
}

@keyframes member-row-highlight {
  0% {
    box-shadow: inset 0 0 0 999px rgba(47, 128, 237, 0.2);
  }
  100% {
    box-shadow: inset 0 0 0 999px rgba(47, 128, 237, 0);
  }
}

.create-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.admin-board-card {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 252, 248, 0.78);
  border: 1px solid rgba(201, 177, 158, 0.28);
}

.modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.modal-grid section,
.modal-list,
.openclaw-result article {
  padding: 14px;
  border: 1px solid rgba(201, 177, 158, 0.28);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.68);
}

.modal-list {
  display: grid;
  gap: 8px;
}

.modal-list article {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 247, 239, 0.74);
}

.member-log-item {
  position: relative;
  padding-left: 14px !important;
  border-left: 2px solid rgba(58, 116, 193, 0.14);
  background:
    linear-gradient(180deg, rgba(248, 252, 255, 0.97), rgba(242, 247, 255, 0.91)) !important;
}

.member-log-item::before {
  content: "";
  position: absolute;
  top: 15px;
  left: -6px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2d8cf0;
  box-shadow: 0 0 0 3px rgba(45, 140, 240, 0.12);
}

.member-log-item p {
  margin: 0;
  color: #607b99;
  font-size: 12px;
  line-height: 1.56;
}

.profile-log-list {
  gap: 9px;
}

.profile-log-item {
  position: relative;
  padding-left: 14px !important;
  border-left: 2px solid rgba(58, 116, 193, 0.14);
}

.profile-log-item::before {
  content: "";
  position: absolute;
  top: 15px;
  left: -6px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #2d8cf0;
  box-shadow: 0 0 0 3px rgba(45, 140, 240, 0.12);
}

.profile-log-item p {
  margin: 0;
  color: #607b99;
  font-size: 12px;
  line-height: 1.56;
}

.profile-followup-route-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.profile-followup-route-bar > * {
  min-height: 40px;
  justify-content: center;
}

.modal-list span,
.openclaw-result p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.member-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.member-detail-action-group {
  display: grid;
  gap: 8px;
  min-width: min(100%, 220px);
  padding: 10px 11px;
  border-radius: 16px;
  border: 1px solid rgba(58, 116, 193, 0.1);
  background:
    linear-gradient(180deg, rgba(248, 252, 255, 0.97), rgba(241, 248, 255, 0.91));
}

.member-detail-action-group > span {
  color: #5d7b9b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.member-detail-action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.member-detail-action-grid > * {
  width: 100%;
  min-height: 40px;
  justify-content: center;
}

.member-detail-action-grid-primary {
  grid-template-columns: 1fr;
}

.member-detail-head {
  padding-right: 126px;
}

.member-appointment-corner {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 9px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 950;
  letter-spacing: 0.05em;
  box-shadow: 0 16px 28px rgba(20, 84, 154, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  pointer-events: none;
}

.member-appointment-corner.booked {
  background: linear-gradient(135deg, #0aa96e, #087a56);
  color: #fff;
}

.member-appointment-corner.unbooked {
  background: linear-gradient(135deg, #f3a83c, #c76b1b);
  color: #fff;
}

.member-core-cell {
  position: relative;
}

.member-core-cell .member-appointment-corner.is-inline {
  top: -4px;
  right: -4px;
  min-width: 68px;
  padding: 5px 9px;
  font-size: 12px;
  box-shadow: 0 10px 18px rgba(20, 84, 154, 0.13);
}

.member-detail-edit-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(47, 128, 237, 0.14);
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 128, 237, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.92));
  box-shadow: 0 14px 34px rgba(18, 64, 128, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.member-detail-edit-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.member-detail-edit-head strong {
  color: #123f7a;
  font-size: 16px;
}

.member-detail-edit-head span {
  color: var(--muted);
  font-size: 12px;
}

.member-detail-edit-groups {
  display: grid;
  gap: 12px;
}

.member-detail-edit-group {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 18px;
  border: 1px solid rgba(58, 116, 193, 0.1);
  background:
    linear-gradient(180deg, rgba(250, 253, 255, 0.97), rgba(243, 249, 255, 0.92));
}

.member-detail-edit-group-head {
  display: grid;
  gap: 4px;
}

.member-detail-edit-group-head strong {
  color: #123f7a;
  font-size: 14px;
}

.member-detail-edit-group-head span {
  color: #64809f;
  font-size: 12px;
  line-height: 1.5;
}

.member-detail-edit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.member-detail-edit-grid label {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.member-detail-edit-grid label.wide {
  grid-column: span 2;
}

.member-detail-edit-grid label > span {
  color: #527197;
  font-size: 12px;
  font-weight: 900;
}

.button-danger,
button.button-danger,
a.button-danger {
  border-color: rgba(204, 67, 67, 0.2) !important;
  background: linear-gradient(180deg, rgba(255, 245, 245, 0.98), rgba(255, 255, 255, 0.92)) !important;
  color: #b4232a !important;
}

.member-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.member-detail-grid section {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(47, 128, 237, 0.12);
}

.member-detail-grid h4,
.modal-list h4 {
  margin: 0 0 10px;
}

.member-detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.member-detail-list div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 10px;
}

.member-detail-list dt {
  color: var(--muted);
  font-size: 12px;
}

.member-detail-list dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
  word-break: break-word;
}

.openclaw-result {
  display: grid;
  gap: 10px;
}

.channel-link-preview {
  max-width: 180px;
  padding: 7px 9px;
  border-radius: 10px;
  background: rgba(47, 128, 237, 0.08);
  color: #2f5f8f;
  font-size: 11px;
  line-height: 1.35;
  word-break: break-all;
}

.channel-side-meta.small strong {
  font-size: 14px;
}

.admin-page-shell .hero-copy {
  max-width: 720px;
}

.admin-app-shell {
  width: min(var(--app-max-width), calc(100% - var(--app-page-gutter)));
  margin: 0 auto;
  padding: 18px 0 52px;
}

.admin-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
  padding: 14px 18px;
  border: 1px solid rgba(47, 128, 237, 0.16);
  border-radius: 24px;
  background: rgba(250, 253, 255, 0.88);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
}

.admin-topbar .link-button {
  white-space: nowrap;
}

.admin-console {
  display: grid;
  grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr);
  gap: var(--app-shell-gap);
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(47, 128, 237, 0.16);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(232, 243, 255, 0.92) 100%);
  box-shadow: var(--shadow-soft);
}

.admin-sidebar-head h1 {
  margin: 8px 0 4px;
  font-size: 24px;
  color: var(--accent-deep);
}

.admin-sidebar-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.admin-side-nav {
  display: grid;
  gap: 8px;
}

.admin-side-nav button {
  width: 100%;
  justify-content: flex-start;
  padding: 12px 14px;
  border-radius: 16px;
  background: transparent;
  color: #24425f;
  box-shadow: none;
}

.admin-side-nav button:hover,
.admin-side-nav button.active {
  background: linear-gradient(135deg, #2f80ed 0%, #1558c0 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(47, 128, 237, 0.2);
}

.admin-content {
  min-width: 0;
}

.admin-content-panel.hidden {
  display: none;
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.admin-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.admin-status-card {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(138, 119, 107, 0.14);
}

.admin-status-card.ok {
  background: rgba(47, 122, 83, 0.08);
}

.admin-status-card.warn {
  background: rgba(191, 115, 40, 0.08);
}

.admin-status-card span,
.admin-status-card p {
  margin: 0;
  color: #7b6a60;
  font-size: 13px;
}

.admin-status-card strong {
  display: block;
  margin: 4px 0;
  font-size: clamp(22px, 3vw, 34px);
  color: #2f241d;
}

.admin-ops-bar,
.admin-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.admin-link-grid a {
  flex: 1 1 160px;
  padding: 14px;
  border-radius: 16px;
  background: rgba(47, 128, 237, 0.08);
  color: #2f5f8f;
  text-decoration: none;
  font-weight: 700;
}

.admin-employee-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(239, 247, 255, 0.84);
  border: 1px solid rgba(47, 128, 237, 0.14);
}

.admin-employee-toolbar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-employee-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.admin-employee-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) minmax(140px, 0.9fr) auto auto;
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(47, 128, 237, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.employee-active-check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.member-access-notice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(47, 128, 237, 0.1);
  border: 1px solid rgba(47, 128, 237, 0.18);
  color: var(--accent-deep);
}

.member-access-notice span {
  color: var(--muted);
  font-size: 13px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.admin-form-grid .full-span,
.admin-manual-archive {
  grid-column: 1 / -1;
}

.admin-archive-status {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 252, 247, 0.8);
  border: 1px solid rgba(138, 119, 107, 0.12);
}

.admin-archive-status p {
  margin: 0 0 6px;
}

.admin-manual-archive {
  display: block;
  margin-top: 12px;
}

.admin-list,
.admin-log-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.admin-list article,
.admin-log-list article {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(138, 119, 107, 0.12);
}

.admin-list.compact article {
  padding: 10px 12px;
}

.admin-list strong,
.admin-log-list strong {
  display: block;
  color: #2f241d;
}

.admin-list span,
.admin-log-list span,
.admin-list p,
.admin-log-list p {
  display: block;
  margin: 4px 0 0;
  color: #7b6a60;
  font-size: 13px;
}

.empty-state.small {
  padding: 12px;
  font-size: 13px;
}

.admin-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.result-box.warn {
  background: rgba(191, 115, 40, 0.1);
  border-color: rgba(191, 115, 40, 0.22);
}

.result-box.success {
  background: rgba(47, 122, 83, 0.1);
  border-color: rgba(47, 122, 83, 0.22);
}

.detail-mobile-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(47, 128, 237, 0.12);
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 140, 240, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 255, 0.92));
  box-shadow:
    0 12px 24px rgba(18, 64, 128, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.detail-mobile-guide-copy {
  display: grid;
  gap: 6px;
}

.detail-mobile-guide-copy span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7290ae;
}

.detail-mobile-guide-copy strong {
  font-size: 18px;
  line-height: 1.3;
  color: #173b64;
}

.detail-mobile-guide-copy p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: #62809f;
}

.detail-mobile-guide-actions {
  display: grid;
  gap: 8px;
  align-content: start;
}

.detail-mobile-guide-actions > * {
  width: 100%;
  min-height: 40px;
  justify-content: center;
}

.detail-next-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.detail-next-strip article {
  display: grid;
  gap: 5px;
  padding: 12px 13px;
  border-radius: 16px;
  border: 1px solid rgba(58, 116, 193, 0.1);
  background:
    linear-gradient(180deg, rgba(248, 252, 255, 0.97), rgba(242, 247, 255, 0.91));
}

.detail-next-strip span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7290ae;
}

.detail-next-strip strong {
  font-size: 15px;
  line-height: 1.4;
  color: #173b64;
}

.detail-next-strip p {
  margin: 0;
  font-size: 12px;
  line-height: 1.56;
  color: #64819f;
}

.profile-followup-result,
.member-detail-result {
  margin-top: 2px;
}

.home-mobile-priority-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.home-mobile-priority-card {
  display: grid;
  gap: 5px;
  padding: 13px 14px;
  border-radius: 18px;
  border: 1px solid rgba(58, 116, 193, 0.11);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.93));
  box-shadow:
    0 10px 22px rgba(18, 64, 128, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.home-mobile-priority-card span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7290ae;
}

.home-mobile-priority-card strong {
  font-size: 15px;
  line-height: 1.4;
  color: #173b64;
}

.home-mobile-priority-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.56;
  color: #64819f;
}

.crm-profile-mobile-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) repeat(2, minmax(0, 0.45fr));
  gap: 10px;
  margin-top: 10px;
}

.crm-profile-mobile-guide-copy,
.crm-profile-mobile-guide-focus,
.crm-profile-mobile-guide-facts article,
.crm-profile-pagination-guide {
  display: grid;
  gap: 5px;
  padding: 12px 13px;
  border-radius: 16px;
  border: 1px solid rgba(58, 116, 193, 0.1);
  background:
    linear-gradient(180deg, rgba(248, 252, 255, 0.97), rgba(242, 247, 255, 0.91));
}

.crm-profile-mobile-guide-copy span,
.crm-profile-mobile-guide-focus span,
.crm-profile-mobile-guide-facts span,
.crm-profile-pagination-guide span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7290ae;
}

.crm-profile-mobile-guide-copy strong,
.crm-profile-mobile-guide-focus strong,
.crm-profile-mobile-guide-facts strong,
.crm-profile-pagination-guide strong {
  font-size: 15px;
  line-height: 1.4;
  color: #173b64;
}

.crm-profile-mobile-guide-copy p,
.crm-profile-mobile-guide-focus p,
.crm-profile-pagination-guide p {
  margin: 0;
  font-size: 12px;
  line-height: 1.56;
  color: #64819f;
}

.crm-profile-mobile-guide-facts {
  display: grid;
  gap: 10px;
}

.member-table-mobile-guide,
.crm-profile-pagination-dock {
  display: grid;
  gap: 10px;
}

.member-table-mobile-guide {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  padding-bottom: 6px;
}

.member-table-mobile-guide-copy,
.member-table-mobile-guide-facts article {
  display: grid;
  gap: 5px;
  padding: 12px 13px;
  border-radius: 16px;
  border: 1px solid rgba(58, 116, 193, 0.1);
  background:
    linear-gradient(180deg, rgba(248, 252, 255, 0.97), rgba(242, 247, 255, 0.91));
}

.member-table-mobile-guide-copy span,
.member-table-mobile-guide-facts span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7290ae;
}

.member-table-mobile-guide-copy strong,
.member-table-mobile-guide-facts strong {
  font-size: 15px;
  line-height: 1.4;
  color: #173b64;
}

.member-table-mobile-guide-copy p {
  margin: 0;
  font-size: 12px;
  line-height: 1.56;
  color: #64819f;
}

.member-table-mobile-guide-facts {
  display: grid;
  gap: 10px;
}

.crm-profile-pagination-guide {
  margin-bottom: 8px;
}

.crm-profile-pagination-dock {
  grid-template-columns: 1fr 1fr;
  margin-top: 8px;
}

.crm-profile-pagination-dock > * {
  width: 100%;
  min-height: 40px;
  justify-content: center;
}

.smart-next-card {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, rgba(47, 128, 237, 0.12), rgba(255, 255, 255, 0.9));
}

.smart-next-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.smart-next-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(47, 128, 237, 0.14);
}

.smart-next-item.warn {
  background: rgba(183, 121, 31, 0.1);
  border-color: rgba(183, 121, 31, 0.22);
}

.smart-next-item.success {
  background: rgba(21, 149, 107, 0.1);
  border-color: rgba(21, 149, 107, 0.2);
}

.smart-next-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.inline-prompt-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(16, 32, 51, 0.28);
  backdrop-filter: blur(6px);
}

.confirm-action-bar {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 10001;
  width: min(720px, calc(100vw - 24px));
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(47, 128, 237, 0.18);
  box-shadow: 0 18px 48px rgba(21, 55, 99, 0.2);
  transform: translate(-50%, 18px);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.confirm-action-bar.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

.confirm-action-bar p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.confirm-action-buttons {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.inline-prompt {
  width: min(420px, 100%);
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 22px;
  background: var(--paper);
  border: 1px solid rgba(47, 128, 237, 0.18);
  box-shadow: var(--shadow);
}

.inline-prompt-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 980px) {
  .admin-topbar,
  .admin-employee-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .admin-console {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .admin-side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-employee-row {
    grid-template-columns: 1fr;
  }

  .admin-grid,
  .admin-form-grid,
  .employee-workbench-grid,
  .employee-mini-list,
  .create-member-grid,
  .member-priority-grid,
  .member-detail-grid,
  .hospital-board-grid,
  .modal-grid {
    grid-template-columns: 1fr;
  }

  .hospital-month-strip,
  .hospital-board-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sticky-hospital-board {
    position: static;
    margin-left: 0;
    margin-right: 0;
  }

  .modal-backdrop {
    padding: 12px;
  }

  .recheck-modal {
    width: 100%;
    padding: 14px;
  }
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.login-panel {
  width: min(460px, 100%);
}

.login-role-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.login-role-card {
  display: grid;
  gap: 6px;
  justify-items: start;
  min-height: 94px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(47, 128, 237, 0.14);
  background: rgba(239, 247, 255, 0.84);
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.login-role-card strong {
  color: var(--accent-deep);
  font-size: 16px;
}

.login-role-card span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.login-role-card.active {
  border-color: rgba(47, 128, 237, 0.42);
  background: linear-gradient(135deg, #2f80ed 0%, #1558c0 100%);
  color: #fff;
  box-shadow: 0 16px 30px rgba(47, 128, 237, 0.22);
}

.login-role-card.active strong,
.login-role-card.active span {
  color: #fff;
}

.global-toast-stack {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 9999;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - 28px));
}

.global-toast {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(36, 24, 19, 0.94);
  color: #fff;
  box-shadow: 0 18px 38px rgba(40, 28, 22, 0.18);
  font-size: 13px;
  line-height: 1.5;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.global-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.global-toast.warn {
  background: rgba(154, 90, 19, 0.96);
}

.global-toast.success {
  background: rgba(47, 122, 83, 0.96);
}

.executive-workbenches {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

.role-workbench-panel {
  overflow: hidden;
}

.role-metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.role-metric-grid.finance,
.role-metric-grid.ops {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.role-metric-card {
  min-height: 118px;
  display: grid;
  align-content: center;
  gap: 8px;
  text-align: left;
  border: 1px solid rgba(47, 128, 237, 0.14);
  border-radius: 22px;
  padding: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(235, 245, 255, 0.92));
  color: var(--ink);
  box-shadow: 0 14px 30px rgba(18, 64, 128, 0.08);
}

.role-metric-card:hover,
.finance-action-card:hover,
.role-shortcut-list button:hover,
.risk-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(18, 64, 128, 0.14);
}

.role-metric-card span,
.role-metric-card em {
  color: var(--muted);
  font-style: normal;
}

.role-metric-card strong {
  font-size: clamp(24px, 3vw, 34px);
  color: var(--accent-deep);
}

.role-metric-card.warn strong {
  color: var(--warn);
}

.role-metric-card.danger strong {
  color: #c53030;
}

.role-metric-card.ok strong {
  color: var(--ok);
}

.role-workbench-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
}

.role-insight-card {
  border: 1px solid rgba(47, 128, 237, 0.14);
  border-radius: 22px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.boss-smart-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px 20px;
  border-radius: 24px;
  border: 1px solid rgba(47, 128, 237, 0.14);
  background: linear-gradient(135deg, rgba(232, 244, 255, 0.96), rgba(255, 255, 255, 0.9));
  box-shadow: 0 16px 34px rgba(18, 64, 128, 0.08);
}

.boss-smart-copy span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.boss-smart-copy strong {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
  line-height: 1.25;
  color: var(--accent-deep);
}

.boss-smart-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.boss-smart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.role-rank-list,
.role-shortcut-list,
.channel-mini-list,
.finance-action-grid {
  display: grid;
  gap: 10px;
}

.finance-action-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.finance-action-card,
.role-shortcut-list button,
.risk-chip {
  border: 1px solid rgba(47, 128, 237, 0.14);
  border-radius: 18px;
  padding: 14px;
  background: rgba(244, 249, 255, 0.92);
  color: var(--ink);
  text-align: left;
}

.finance-action-card {
  min-height: 96px;
}

.finance-action-card strong,
.channel-mini-list strong {
  display: block;
  margin-bottom: 6px;
}

.finance-action-card span,
.channel-mini-list span {
  color: var(--muted);
  line-height: 1.5;
}

.finance-action-card.danger {
  border-color: rgba(197, 48, 48, 0.22);
  background: rgba(255, 245, 245, 0.92);
}

.role-rank-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px dashed rgba(47, 128, 237, 0.16);
}

.role-rank-item:last-child {
  border-bottom: 0;
}

.role-rank-item b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.risk-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.risk-chip {
  min-height: 86px;
}

.risk-chip span,
.risk-chip strong {
  display: block;
}

.risk-chip strong {
  margin-top: 8px;
  font-size: 24px;
}

.risk-chip.warn {
  background: rgba(255, 250, 235, 0.95);
  border-color: rgba(183, 121, 31, 0.24);
}

.risk-chip.ok {
  background: rgba(237, 253, 245, 0.9);
  border-color: rgba(21, 149, 107, 0.18);
}

.tag.danger {
  background: rgba(255, 245, 245, 0.92);
  color: #c53030;
  border-color: rgba(197, 48, 48, 0.22);
}

@media (max-width: 1180px) {
  .role-metric-grid,
  .role-metric-grid.finance,
  .role-metric-grid.ops,
  .finance-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .today-risk-strip,
  .contact-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .customer-bb-metrics,
  .customer-bb-two-col {
    grid-template-columns: 1fr;
  }

  .role-workbench-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .role-metric-grid,
  .role-metric-grid.finance,
  .role-metric-grid.ops,
  .finance-action-grid,
  .risk-chip-grid {
    grid-template-columns: 1fr;
  }

  .today-risk-strip,
  .contact-action-grid {
    grid-template-columns: 1fr;
  }

  .customer-bb-table {
    min-width: 760px;
  }
}

.crm-admin-shell {
  display: grid;
  grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr);
  gap: var(--app-shell-gap);
  align-items: start;
}

.crm-main-content {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.crm-admin-shell .topbar,
.crm-admin-shell .hero,
.crm-admin-shell .quick-link-strip {
  display: none;
}

.crm-main-content > .stats {
  display: none;
}

.crm-left-tree {
  position: sticky;
  top: 18px;
  z-index: 5;
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 16px;
  border-radius: 28px;
  border: 1px solid rgba(47, 128, 237, 0.18);
  background:
    radial-gradient(circle at 0 0, rgba(47, 128, 237, 0.2) 0, transparent 34%),
    linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(226, 240, 255, 0.94));
  box-shadow: var(--shadow-soft);
}

.crm-left-tree::-webkit-scrollbar {
  width: 6px;
}

.crm-left-tree::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(47, 128, 237, 0.25);
}

.crm-tree-brand {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(47, 128, 237, 0.14);
}

.crm-tree-brand .brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

.crm-tree-brand strong {
  display: block;
  font-size: 18px;
}

.crm-tree-account {
  display: grid;
  gap: 4px;
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(47, 128, 237, 0.12);
}

.crm-tree-account span,
.crm-tree-item small {
  color: var(--muted);
  font-size: 12px;
}

.crm-tree-account strong {
  color: var(--accent-deep);
}

.crm-tree-nav,
.crm-tree-group {
  display: grid;
  gap: 8px;
}

.crm-tree-group {
  padding: 12px 0;
  border-top: 1px dashed rgba(47, 128, 237, 0.15);
}

.crm-tree-group:first-child {
  border-top: 0;
  padding-top: 0;
}

.crm-tree-group p {
  margin: 0 0 2px;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.crm-tree-item {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-items: center;
  text-align: left;
  padding: 11px 12px;
  border-radius: 16px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  box-shadow: none;
}

.crm-tree-item::after {
  content: "›";
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: rgba(47, 128, 237, 0.58);
  font-size: 18px;
}

.crm-tree-item span,
.crm-tree-item small {
  grid-column: 1;
}

.crm-tree-item span {
  font-weight: 700;
}

.crm-tree-item:hover,
.crm-tree-item:focus-visible,
.crm-tree-item.is-active {
  border-color: rgba(47, 128, 237, 0.22);
  background: rgba(255, 255, 255, 0.94);
  transform: translateX(2px);
}

.crm-tree-item.is-active {
  color: var(--accent-strong);
  border-color: rgba(47, 128, 237, 0.32);
  box-shadow: inset 4px 0 0 rgba(47, 128, 237, 0.54);
}

.crm-tree-item.risk-entry {
  background: linear-gradient(135deg, rgba(255, 250, 235, 0.94), rgba(239, 247, 255, 0.92));
}

.crm-left-tree .hidden {
  display: none !important;
}

.recheck-admin-shell {
  grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr);
}

.recheck-main-content {
  gap: 12px;
}

.recheck-left-tree b {
  color: var(--accent-deep);
}

.recheck-left-tree .risk-entry b {
  color: var(--warn);
}

.recheck-primary-tree-action {
  border-color: rgba(47, 128, 237, 0.36);
  background: linear-gradient(135deg, #2f80ed, #64a7ff);
  color: #fff;
  box-shadow: 0 14px 28px rgba(47, 128, 237, 0.2);
}

.recheck-primary-tree-action span,
.recheck-primary-tree-action small,
.recheck-primary-tree-action b {
  color: #fff;
}

.recheck-left-tree .crm-tree-item.recheck-primary-tree-action,
.recheck-left-tree .crm-tree-item.recheck-primary-tree-action:hover,
.recheck-left-tree .crm-tree-item.recheck-primary-tree-action:focus-visible {
  border-color: rgba(47, 128, 237, 0.48);
  background: linear-gradient(135deg, #1768d8, #4b9bff) !important;
  color: #fff !important;
  box-shadow: 0 14px 28px rgba(47, 128, 237, 0.22);
}

.recheck-left-tree .crm-tree-item.recheck-primary-tree-action::after,
.recheck-left-tree .crm-tree-item.recheck-primary-tree-action span,
.recheck-left-tree .crm-tree-item.recheck-primary-tree-action small,
.recheck-left-tree .crm-tree-item.recheck-primary-tree-action b {
  color: #fff !important;
  opacity: 1;
}

.recheck-left-tree .crm-tree-item.recheck-primary-tree-action small {
  color: rgba(255, 255, 255, 0.86) !important;
}

.recheck-flow-panel {
  padding: 0;
  overflow: hidden;
}

.recheck-page-intro {
  display: none;
}

.recheck-admin-shell #recheck-page-help {
  margin-bottom: 0;
}

.recheck-admin-shell .sticky-hospital-board {
  top: 12px;
}

.recheck-admin-shell .member-query-head {
  align-items: center;
}

.recheck-admin-shell .member-query-head .recheck-toolbar-actions {
  display: none;
}

.recheck-visual-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(47, 128, 237, 0.16);
  background:
    radial-gradient(circle at 100% 0, rgba(47, 128, 237, 0.14) 0, transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(238, 247, 255, 0.9));
}

.recheck-visual-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.recheck-visual-head h3 {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 34px);
  letter-spacing: -0.04em;
}

.recheck-visual-head p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.recheck-visual-kpis,
.recheck-smart-actions,
.recheck-visual-grid {
  display: grid;
  gap: 12px;
}

.recheck-visual-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.recheck-visual-kpi {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(47, 128, 237, 0.14);
  background: rgba(255, 255, 255, 0.78);
}

.recheck-visual-kpi span,
.recheck-visual-kpi em {
  display: block;
  color: var(--muted);
  font-style: normal;
}

.recheck-visual-kpi strong {
  display: block;
  margin: 8px 0;
  color: var(--accent-deep);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
}

.recheck-visual-kpi.green strong {
  color: var(--ok);
}

.recheck-visual-kpi.warn strong {
  color: var(--warn);
}

.recheck-smart-actions {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.recheck-smart-action {
  min-height: 102px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 10px;
  align-content: center;
  text-align: left;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(47, 128, 237, 0.14);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
}

.recheck-smart-action strong,
.recheck-smart-action span {
  grid-column: 1;
}

.recheck-smart-action span {
  color: var(--muted);
  line-height: 1.45;
}

.recheck-smart-action b {
  grid-row: 1 / span 2;
  grid-column: 2;
  align-self: center;
  color: var(--accent-deep);
  font-size: 28px;
}

.recheck-smart-action.warn b {
  color: var(--warn);
}

.recheck-smart-action.danger b {
  color: #c53030;
}

.recheck-smart-action:hover,
.recheck-insight-panel:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(18, 64, 128, 0.12);
}

.recheck-visual-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.recheck-insight-panel {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(47, 128, 237, 0.14);
  background: rgba(255, 255, 255, 0.78);
}

.recheck-bar-list {
  display: grid;
  gap: 12px;
}

.recheck-bar-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px auto;
  gap: 10px;
  align-items: center;
}

.recheck-bar-item strong,
.recheck-bar-item span {
  display: block;
}

.recheck-bar-item span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.recheck-bar-item b {
  color: var(--accent-deep);
  font-size: 13px;
  text-align: right;
}

.recheck-bar-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(47, 128, 237, 0.1);
}

.recheck-bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
}

.simple-flow-panel {
  padding: 0;
  overflow: hidden;
  border-color: rgba(47, 128, 237, 0.2);
  background:
    radial-gradient(circle at 100% 0, rgba(47, 128, 237, 0.18) 0, transparent 36%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 244, 255, 0.92));
}

.simple-flow-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 22px 24px 16px;
}

.simple-flow-head h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: -0.04em;
}

.simple-flow-head p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.simple-flow-primary {
  min-width: 160px;
  border: 0;
  border-radius: 18px;
  padding: 14px 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 18px 34px rgba(47, 128, 237, 0.22);
}

.simple-flow-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0 24px 18px;
}

.simple-flow-step {
  min-height: 126px;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 6px 12px;
  align-content: start;
  text-align: left;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(47, 128, 237, 0.14);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  box-shadow: none;
}

.simple-flow-step b {
  grid-row: 1 / span 2;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.simple-flow-step span {
  font-size: 17px;
  font-weight: 800;
}

.simple-flow-step em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.55;
}

.simple-flow-step.warn b {
  background: rgba(255, 250, 235, 0.96);
  color: var(--warn);
}

.simple-flow-step.ok b {
  background: rgba(237, 253, 245, 0.96);
  color: var(--ok);
}

.simple-flow-step:hover,
.simple-flow-primary:hover,
.simple-flow-shortcuts button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(18, 64, 128, 0.12);
}

.simple-flow-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px 24px 22px;
  border-top: 1px solid rgba(47, 128, 237, 0.12);
  background: rgba(255, 255, 255, 0.44);
}

.simple-flow-shortcuts button {
  border: 1px solid rgba(47, 128, 237, 0.16);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--accent-deep);
  box-shadow: none;
}

.risk-workbench-panel {
  overflow: hidden;
}

.risk-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.risk-center-card {
  min-height: 142px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(47, 128, 237, 0.14);
  background: rgba(245, 250, 255, 0.92);
  color: var(--ink);
  text-align: left;
}

.risk-center-card:hover,
.risk-closure-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(18, 64, 128, 0.12);
}

.risk-center-card span {
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(47, 128, 237, 0.1);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 700;
}

.risk-center-card strong {
  font-size: 16px;
}

.risk-center-card b {
  font-size: 34px;
  color: var(--accent-deep);
}

.risk-center-card em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.5;
}

.risk-center-card.high.has-risk {
  border-color: rgba(197, 48, 48, 0.26);
  background: linear-gradient(145deg, rgba(255, 245, 245, 0.96), rgba(255, 255, 255, 0.9));
}

.risk-center-card.high.has-risk b,
.risk-center-card.high.has-risk span {
  color: #c53030;
}

.risk-center-card.medium.has-risk {
  border-color: rgba(183, 121, 31, 0.26);
  background: linear-gradient(145deg, rgba(255, 250, 235, 0.96), rgba(255, 255, 255, 0.9));
}

.risk-center-card.medium.has-risk b,
.risk-center-card.medium.has-risk span {
  color: var(--warn);
}

.risk-center-card.is-clear b {
  color: var(--ok);
}

.risk-closure-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.risk-closure-card {
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(47, 128, 237, 0.14);
  background: rgba(255, 255, 255, 0.78);
}

.risk-mini-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.risk-mini-metrics span {
  padding: 12px;
  border-radius: 16px;
  background: rgba(239, 247, 255, 0.92);
  color: var(--muted);
  line-height: 1.45;
}

.risk-mini-metrics b {
  display: block;
  color: var(--accent-deep);
  font-size: 18px;
}

.global-search-panel {
  margin-top: 14px;
}

.phone-action-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}

.phone-action-value {
  color: var(--ink);
  font-weight: 900;
}

.phone-action-row .compact {
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 9px;
  font-size: 12px;
}

.create-context-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-top: 8px;
  padding: 9px;
  border: 1px solid rgba(47, 128, 237, 0.16);
  border-radius: 13px;
  background: rgba(239, 248, 255, 0.92);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.create-context-quick.warn {
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(255, 247, 237, 0.95);
}

.create-context-quick.ok {
  border-color: rgba(47, 128, 237, 0.18);
}

.create-context-quick strong {
  color: var(--accent-deep);
}

.create-context-quick a {
  color: var(--accent-deep);
  font-weight: 900;
  text-decoration: none;
}

.boss-mobile-report-card {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid rgba(47, 128, 237, 0.16);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(239, 248, 255, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: 0 14px 30px rgba(18, 64, 128, 0.08);
}

.boss-mobile-report-card span,
.boss-mobile-report-card em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.boss-mobile-report-card strong {
  display: block;
  margin-top: 3px;
  color: var(--accent-deep);
  font-size: 24px;
}

.boss-mobile-report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.boss-mobile-report-grid p {
  margin: 0;
  padding: 9px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(47, 128, 237, 0.12);
}

.boss-mobile-report-grid b {
  display: block;
  color: var(--accent-deep);
  font-size: 15px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-task-meta,
.reminder-result-note {
  display: grid;
  gap: 6px;
}

.employee-task-note,
.reminder-result-note input {
  min-height: 38px;
  border-radius: 12px;
}

.global-search-box {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.global-search-box span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.global-search-box input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(47, 128, 237, 0.18);
  border-radius: 18px;
  padding: 0 18px;
  background: linear-gradient(180deg, #fff, #f8fbff);
  color: var(--ink);
  font-size: 16px;
  outline: none;
}

.global-search-box input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.12);
}

.global-search-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.global-search-hints span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  background: rgba(241, 248, 255, 0.96);
  border: 1px solid rgba(58, 116, 193, 0.12);
  color: #4f7094;
  font-size: 12px;
  font-weight: 700;
}

.global-search-results {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.global-search-card,
.global-search-empty {
  min-height: 112px;
  border: 1px solid rgba(47, 128, 237, 0.14);
  border-radius: 20px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  text-align: left;
}

.global-search-card {
  cursor: pointer;
}

.global-search-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(35, 82, 128, 0.12);
}

.global-search-card span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(47, 128, 237, 0.1);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 900;
}

.global-search-card strong,
.global-search-empty strong {
  display: block;
  margin-top: 8px;
  font-size: 16px;
}

.global-search-card em,
.global-search-empty span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-style: normal;
  font-size: 13px;
}

.global-search-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.boss-mobile-home {
  display: none;
}

.boss-desktop-home {
  display: block;
}

.today-risk-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.today-risk-strip.finance {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.today-risk-card {
  display: grid;
  gap: 6px;
  min-width: 0;
  text-align: left;
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(47, 128, 237, 0.12);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 26px rgba(18, 64, 128, 0.06);
}

.today-risk-card span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.today-risk-card strong {
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.today-risk-card em {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  font-style: normal;
}

.today-risk-card.warn {
  border-color: rgba(210, 145, 45, 0.22);
  background: rgba(255, 250, 242, 0.98);
}

.today-risk-card.danger {
  border-color: rgba(200, 86, 86, 0.2);
  background: rgba(255, 245, 245, 0.98);
}

.unified-profile-card {
  grid-column: 1 / -1;
}

.customer-panorama-card {
  border-color: rgba(47, 128, 237, 0.18);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 255, 0.88));
}

.unified-profile-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.unified-profile-grid article {
  padding: 14px;
  border-radius: 18px;
  background: rgba(239, 247, 255, 0.9);
  border: 1px solid rgba(47, 128, 237, 0.14);
}

.unified-profile-grid article.warn {
  background: #fff8ec;
}

.unified-profile-grid span,
.saved-view-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.unified-profile-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--accent-deep);
  font-size: 18px;
}

.unified-profile-grid p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.customer-panorama-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.customer-panorama-section,
.customer-bb-card {
  padding: 14px;
  border-radius: 20px;
  border: 1px solid rgba(47, 128, 237, 0.14);
  background: rgba(255, 255, 255, 0.82);
}

.contact-action-section {
  grid-column: 1 / -1;
}

.contact-action-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.contact-action-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  text-align: left;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(47, 128, 237, 0.14);
  background: rgba(247, 251, 255, 0.98);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(18, 64, 128, 0.05);
}

.contact-action-card span {
  color: var(--muted);
  font-size: 12px;
}

.contact-action-card strong {
  font-size: 18px;
  line-height: 1.25;
}

.contact-action-card em {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-style: normal;
}

.contact-action-card.disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.contact-action-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.customer-bb-summary {
  display: grid;
  gap: 14px;
  margin-top: 12px;
}

.customer-bb-summary-card {
  display: grid;
  gap: 12px;
}

.customer-bb-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.customer-bb-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.customer-bb-metric {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(47, 128, 237, 0.14);
  background: rgba(239, 247, 255, 0.78);
}

.customer-bb-metric span,
.customer-bb-table td span,
.customer-bb-list span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.customer-bb-metric strong {
  display: block;
  margin-top: 6px;
  color: var(--accent-deep);
  font-size: 22px;
}

.customer-bb-metric p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.customer-bb-table-wrap {
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(47, 128, 237, 0.12);
  background: rgba(255, 255, 255, 0.92);
}

.customer-bb-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
}

.customer-bb-table th,
.customer-bb-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(47, 128, 237, 0.1);
  text-align: left;
  vertical-align: top;
}

.customer-bb-table th {
  background: rgba(239, 247, 255, 0.96);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.customer-bb-table td strong,
.customer-bb-list strong {
  display: block;
  color: var(--ink);
  line-height: 1.45;
}

.customer-bb-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.customer-bb-subcard {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(47, 128, 237, 0.12);
  background: rgba(247, 251, 255, 0.92);
}

.customer-bb-list {
  display: grid;
  gap: 10px;
}

.customer-bb-list article {
  padding: 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(47, 128, 237, 0.08);
}

.customer-bb-list p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.customer-bb-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(227, 242, 255, 0.96);
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 800;
  border: 1px solid rgba(47, 128, 237, 0.12);
}

.customer-bb-status.refund {
  background: rgba(255, 244, 244, 0.96);
  color: #b54747;
  border-color: rgba(181, 71, 71, 0.14);
}

.customer-panorama-section h4,
.customer-bb-card h4 {
  margin: 0;
}

.customer-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.customer-mini-grid div {
  padding: 10px;
  border-radius: 14px;
  background: rgba(239, 247, 255, 0.72);
}

.customer-mini-grid span,
.customer-mini-grid strong {
  display: block;
}

.customer-mini-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.customer-mini-grid strong {
  margin-top: 5px;
  color: var(--ink);
  line-height: 1.45;
}

.customer-tag-row {
  margin-top: 10px;
}

.unified-profile-links,
.saved-view-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}

.saved-view-row {
  padding: 10px;
  border-radius: 16px;
  background: rgba(239, 247, 255, 0.76);
}

.saved-view-row .tiny {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 12px;
}

.unified-profile-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.unified-profile-list article {
  padding: 10px 12px;
  border-radius: 14px;
  background: white;
  border: 1px solid rgba(47, 128, 237, 0.12);
}

.unified-profile-list span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.customer-bb-card {
  margin-top: 14px;
}

.customer-bb-tabs .active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: white;
}

.customer-bb-frame {
  width: 100%;
  height: min(62vh, 680px);
  margin-top: 12px;
  border: 1px solid rgba(47, 128, 237, 0.16);
  border-radius: 18px;
  background: white;
}

@media (max-width: 1180px) {
  .crm-admin-shell {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .risk-overview-grid,
  .risk-closure-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .simple-flow-head,
  .simple-flow-steps {
    grid-template-columns: 1fr;
  }

  .recheck-visual-head,
  .recheck-visual-kpis,
  .recheck-smart-actions,
  .recheck-visual-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .simple-flow-primary {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .crm-admin-shell {
    display: block;
  }

  .crm-left-tree {
    position: static;
    max-height: none;
    margin-bottom: 14px;
  }

  .crm-tree-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

@media (max-width: 640px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-summary,
  .admin-topbar .link-button {
    width: 100%;
    text-align: center;
  }

  .login-role-cards {
    grid-template-columns: 1fr;
  }

  .crm-tree-nav,
  .risk-overview-grid,
  .risk-closure-grid,
  .risk-mini-metrics,
  .simple-flow-steps,
  .recheck-visual-head,
  .recheck-visual-kpis,
  .recheck-smart-actions,
  .recheck-visual-grid {
    grid-template-columns: 1fr;
  }

  .page-shell,
  .recheck-page-shell {
    width: 100%;
    max-width: 100%;
    padding-left: 8px;
    padding-right: 8px;
    box-sizing: border-box;
  }

  .crm-admin-shell,
  .recheck-admin-shell {
    display: block;
  }

  .crm-left-tree,
  .recheck-page-shell .recheck-left-tree {
    position: static;
    top: auto;
    width: 100%;
    max-width: 100%;
    margin-bottom: 12px;
    padding: 10px;
    border-radius: 16px;
    overflow: hidden;
    box-sizing: border-box;
  }

  .crm-tree-nav {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .crm-tree-item,
  .recheck-page-shell .recheck-left-tree .crm-tree-item {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .recheck-main-content,
  .crm-main-content {
    width: 100%;
    min-width: 0;
    gap: 12px;
  }

  .sticky-hospital-board {
    position: static;
    margin-left: 0;
    margin-right: 0;
    border-radius: 16px;
  }

  .hospital-board-grid,
  .member-summary-row,
  .member-query-panel,
  .customer-bb-two-col,
  .customer-bb-metrics {
    grid-template-columns: 1fr;
  }

  .member-query-head {
    display: grid;
    gap: 8px;
  }

  .member-query-head h3,
  .member-query-head p,
  .recheck-visual-head h3,
  .recheck-visual-head p {
    word-break: break-word;
  }

  .member-scroll-table,
  .customer-bb-table-wrap,
  .recheck-list,
  .recheck-flow-panel {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }

  .member-scroll-table table,
  .customer-bb-table {
    min-width: 720px;
  }

  .recheck-list-header,
  .recheck-row {
    min-width: 720px;
  }

  .recheck-bar-item {
    grid-template-columns: 1fr;
  }

  .simple-flow-head,
  .simple-flow-steps,
  .simple-flow-shortcuts {
    padding-left: 16px;
    padding-right: 16px;
  }

  .crm-left-tree {
    padding: 12px;
    border-radius: 22px;
  }

  .boss-mobile-home {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px;
    border-radius: 24px;
    background: linear-gradient(135deg, #0f5fb8, #2f80ed);
    color: white;
    box-shadow: var(--shadow-soft);
  }

  .boss-mobile-home div {
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
  }

  .boss-mobile-home span {
    display: block;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12px;
  }

  .boss-mobile-home strong {
    display: block;
    margin-top: 5px;
    font-size: 20px;
  }

  .boss-mobile-home button {
    grid-column: 1 / -1;
    background: white;
    color: var(--accent-deep);
  }

  .boss-desktop-home {
    display: none;
  }

  .boss-mobile-dashboard {
    margin-top: 4px;
  }

  .boss-mobile-kpi.primary {
    grid-column: 1 / -1;
  }

  .boss-mobile-kpi.warn {
    background: rgba(255, 245, 217, 0.22);
  }

  .boss-mobile-kpi.danger {
    background: rgba(255, 221, 221, 0.24);
  }

  .boss-mobile-kpi em {
    display: block;
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.72);
    font-style: normal;
    font-size: 12px;
  }

  .boss-mobile-rank {
    grid-column: 1 / -1;
    padding: 12px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.14);
  }

  .boss-mobile-rank > div {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 0;
    background: transparent;
  }

  .boss-mobile-rank p {
    display: grid;
    grid-template-columns: 24px 1fr auto;
    align-items: center;
    gap: 8px;
    margin: 10px 0 0;
    color: white;
  }

  .boss-mobile-rank b {
    width: 22px;
    height: 22px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
  }

  .boss-mobile-rank em {
    color: white;
    font-style: normal;
    font-weight: 900;
  }

  .boss-mobile-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .boss-mobile-actions button {
    grid-column: auto;
  }

  .boss-mobile-actions .ghost {
    background: rgba(255, 255, 255, 0.16);
    color: white;
    border-color: rgba(255, 255, 255, 0.26);
  }

  .unified-profile-grid,
  .xiaogu-chat-summary-grid {
    grid-template-columns: 1fr;
  }

  .customer-panorama-sections,
  .customer-mini-grid {
    grid-template-columns: 1fr;
  }

  .customer-bb-frame {
    display: none;
  }

  body.admin-mode .hero,
  body.admin-mode .global-search-panel,
  body.admin-mode .quick-link-strip,
  body.admin-mode .simple-flow-panel,
  body.admin-mode .stats,
  body.admin-mode .crm-shell,
  body.admin-mode .home-secondary-dock,
  body.admin-mode .support-grid,
  body.admin-mode #finance-workbench-panel,
  body.admin-mode #ops-workbench-panel,
  body.admin-mode #risk-workbench-panel {
    display: none !important;
  }

  body.admin-mode .topbar-nav {
    display: none;
  }

  body.admin-mode .executive-workbenches,
  body.admin-mode #boss-workbench-panel {
    display: block;
  }
}

body.sidebar-mode .crm-admin-shell {
  display: block;
}

body.sidebar-mode .crm-left-tree {
  display: none;
}

body.sidebar-mode .crm-main-content {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.home-section-hidden {
  display: none !important;
}

body.home-compact-mode .crm-main-content {
  gap: 12px;
}

body.home-compact-mode .global-search-panel {
  order: 1;
}

body.home-compact-mode .simple-flow-panel {
  order: 4;
}

body.home-compact-mode .executive-workbenches {
  order: 2;
}

body.home-compact-mode .quick-link-strip {
  order: 3;
}

body.home-compact-mode #role-workbenches {
  display: grid;
}

body.home-compact-mode .role-workbench-panel:not(.hidden) {
  display: block;
}

body.home-compact-mode .panel-head p {
  max-width: 680px;
}

body.home-compact-mode .role-metric-grid {
  margin-bottom: 12px;
}

body.home-compact-mode .simple-flow-shortcuts {
  padding-top: 10px;
  padding-bottom: 12px;
}

body.home-compact-mode .simple-flow-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.home-compact-mode .crm-tree-item.is-active {
  background: rgba(255, 255, 255, 0.98);
}

body:not(.home-compact-mode) .home-compact-only {
  display: none !important;
}

body:not([data-home-view="crm"]) #crm-shell-section {
  display: none !important;
}

body[data-home-view="crm"] #crm-shell-section {
  display: grid !important;
}

body:not([data-home-view="activity"]) #activity-panel.home-secondary-dock {
  display: none !important;
}

body[data-home-view="activity"] #activity-panel.home-secondary-dock {
  display: block !important;
}

:root {
  --app-max-width: none;
  --app-page-gutter: 4px;
  --app-sidebar-width: 224px;
  --app-shell-gap: 14px;
  --surface-blue: rgba(246, 251, 255, 0.94);
  --surface-white: rgba(255, 255, 255, 0.88);
  --surface-line: rgba(47, 128, 237, 0.14);
}

body {
  overflow-x: hidden;
}

html {
  overflow-x: hidden;
}

.page-shell {
  width: calc(100% - var(--app-page-gutter));
  max-width: none;
  padding-top: 14px;
}

.crm-admin-shell,
.recheck-admin-shell {
  grid-template-columns: var(--app-sidebar-width) minmax(0, 1fr);
  gap: var(--app-shell-gap);
}

.crm-main-content,
.recheck-main-content,
.panel,
.card,
.crm-shell > *,
.support-grid > *,
.role-workbench-panel,
.recheck-workbench-panel,
.risk-workbench-panel,
.global-search-panel {
  min-width: 0;
}

.crm-main-content {
  gap: 14px;
}

.crm-left-tree {
  top: 14px;
  max-height: calc(100vh - 28px);
  padding: 14px;
  border-radius: 22px;
}

.crm-tree-brand {
  grid-template-columns: 42px 1fr;
  gap: 10px;
}

.crm-tree-brand .brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.crm-tree-brand strong {
  font-size: 16px;
}

.crm-tree-account {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 15px;
}

.crm-tree-group {
  gap: 7px;
  padding: 10px 0;
}

.crm-tree-item {
  min-height: 54px;
  padding: 9px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
}

.crm-tree-item:hover,
.crm-tree-item:focus-visible,
.crm-tree-item.is-active {
  transform: translateX(1px);
}

.panel,
.hero,
.stat-card,
.card,
.channel-code-card,
.channel-group-panel,
.channel-list-panel,
.settings-block,
.member-query-panel,
.member-summary-row article,
.member-package-card,
.role-metric-card,
.role-insight-card,
.finance-action-card,
.risk-chip,
.risk-center-card,
.risk-closure-card,
.global-search-card,
.global-search-empty,
.customer-panorama-section,
.customer-bb-card,
.unified-profile-grid article,
.employee-work-card,
.employee-task-board,
.employee-task-item,
.activity-summary,
.crm-toolbar,
.crm-table-row,
.crm-detail-grid div,
.crm-summary-grid div,
.crm-field-item,
.crm-rule-item,
.wecom-sync-panel,
.recheck-visual-panel,
.recheck-visual-kpi,
.recheck-smart-action,
.recheck-insight-panel,
.simple-flow-panel,
.simple-flow-step {
  border-color: var(--surface-line);
  background-color: var(--surface-white);
  box-shadow: 0 12px 28px rgba(18, 64, 128, 0.07);
}

.panel,
.card {
  border-radius: 22px;
}

.panel {
  padding: 18px;
}

.panel::before {
  background: linear-gradient(90deg, rgba(47, 128, 237, 0.36), rgba(47, 128, 237, 0));
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.panel-head h2 {
  font-size: clamp(20px, 1.8vw, 25px);
}

.panel-head p {
  max-width: 760px;
  margin-top: 4px;
}

.executive-workbenches,
.employee-workbench-panel,
.risk-workbench-panel,
.crm-shell,
.recheck-workbench-panel,
.support-grid,
.activity-panel,
.create-panel,
.settings-panel {
  margin-bottom: 0;
}

.role-metric-grid,
.role-metric-grid.finance,
.role-metric-grid.ops {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.role-workbench-grid {
  grid-template-columns: minmax(280px, 1.08fr) minmax(240px, 0.96fr) minmax(240px, 0.96fr);
  gap: 12px;
}

.finance-action-grid,
.risk-overview-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.risk-closure-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.simple-flow-head {
  padding: 18px 20px 14px;
}

.simple-flow-steps {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 0 20px 16px;
}

.simple-flow-shortcuts {
  padding: 12px 20px 18px;
}

.global-search-panel {
  margin-top: 0;
}

.global-search-results {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.crm-shell {
  grid-template-columns: minmax(560px, 1.08fr) minmax(460px, 0.92fr);
  gap: 14px;
  align-items: start;
}

.crm-detail-panel {
  top: 14px;
  max-height: calc(100vh - 28px);
  overflow: auto;
}

.crm-toolbar {
  padding: 14px;
  border-radius: 18px;
}

.crm-command-bar {
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
}

.crm-filter-row {
  gap: 8px;
}

.crm-filter-field {
  min-width: 132px;
}

.crm-filter-field select {
  min-width: 132px;
}

.crm-table {
  gap: 8px;
}

.crm-table-header,
.crm-table-row {
  grid-template-columns: minmax(190px, 1.25fr) minmax(150px, 0.9fr) minmax(170px, 1fr) minmax(130px, 0.65fr);
  gap: 10px;
}

.crm-table-row {
  padding: 13px 14px;
  border-radius: 17px;
}

.crm-table-cell strong {
  overflow-wrap: anywhere;
}

.crm-detail-grid,
.crm-summary-grid,
.crm-field-list,
.unified-profile-grid,
.xiaogu-chat-summary-grid,
.customer-mini-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.customer-panorama-sections {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.customer-bb-frame {
  height: min(58vh, 620px);
}

.support-grid,
.layout,
.grid-two {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 14px;
}

.activity-summary {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.activity-summary > p {
  grid-column: 1 / -1;
}

.member-query-panel {
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  align-items: end;
}

.member-query-actions {
  align-self: end;
  grid-column: 4 / 6;
  justify-self: stretch;
  width: 100%;
}

.member-table-tools {
  margin: 12px 0 8px;
}

.member-scroll-table {
  overflow: auto;
}

.member-data-table {
  min-width: 1080px;
}

.recheck-visual-kpis,
.recheck-smart-actions,
.recheck-visual-grid,
.hospital-board-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.recheck-bar-item {
  grid-template-columns: minmax(0, 1fr) 86px auto;
}

input,
select,
textarea {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(47, 128, 237, 0.16);
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(47, 128, 237, 0.48);
  box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.1);
}

button {
  box-shadow: 0 10px 20px rgba(47, 128, 237, 0.14);
}

button.ghost,
a.ghost,
a.ghost:visited,
button.mini,
.quick-link-card,
button.quick-link-card,
.stat-button,
.crm-shortcut-chip,
.simple-flow-shortcuts button {
  border-color: rgba(47, 128, 237, 0.14);
  background: rgba(244, 249, 255, 0.94);
  color: var(--accent-deep);
}

.stat-button.active,
.crm-shortcut-chip.active,
.activity-crm-scope-item.active,
.recheck-package-card.active,
.recheck-project-card.active,
.recheck-hospital-card.active,
.crm-table-row.active {
  border-color: rgba(47, 128, 237, 0.32);
  background: linear-gradient(180deg, rgba(232, 244, 255, 0.98), rgba(255, 255, 255, 0.98));
  box-shadow: 0 14px 28px rgba(18, 64, 128, 0.1);
}

.tag {
  background: rgba(232, 244, 255, 0.92);
  color: var(--accent-deep);
  border-color: rgba(47, 128, 237, 0.12);
}

.pill.warn,
.pill.cancelled,
.risk-chip.warn {
  background: rgba(255, 250, 235, 0.95);
}

.result-box,
.empty-state {
  background: rgba(239, 247, 255, 0.94);
  border-color: rgba(47, 128, 237, 0.16);
  color: var(--accent-deep);
}

body.admin-mode .page-shell,
.recheck-page-shell {
  width: calc(100% - var(--app-page-gutter));
  max-width: none;
}

@media (max-width: 1280px) {
  :root {
    --app-sidebar-width: 208px;
    --app-shell-gap: 12px;
  }

  .crm-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .crm-detail-panel {
    position: static;
    max-height: none;
  }

  .role-workbench-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .member-appointment-corner {
    top: 10px;
    right: 10px;
    min-width: 72px;
    padding: 7px 10px;
    font-size: 13px;
  }

  .member-card {
    padding-top: 44px;
  }

  .member-detail-head {
    padding-top: 44px;
    padding-right: 0;
  }

  .member-detail-edit-grid {
    grid-template-columns: 1fr;
  }

  .member-detail-edit-grid label.wide {
    grid-column: auto;
  }

  .member-detail-edit-head {
    display: grid;
  }

  .page-shell {
    width: calc(100% - var(--app-page-gutter));
    padding-top: 8px;
  }

  .crm-admin-shell,
  .recheck-admin-shell {
    display: block;
  }

  .crm-left-tree {
    position: static;
    max-height: none;
    margin-bottom: 10px;
  }

  .crm-tree-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel {
    padding: 14px;
    border-radius: 19px;
  }

  .panel-head {
    display: grid;
  }

  .crm-table-header {
    display: none;
  }

  .crm-table-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .support-grid,
  .layout,
  .grid-two,
  .capture-form-grid,
  .settings-fields {
    grid-template-columns: 1fr;
  }

  .recheck-bar-item {
    grid-template-columns: 1fr;
  }

  .member-priority-grid,
  .member-detail-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .create-page-hero,
  .create-page-hero-main,
  .create-member-form-card .create-member-grid,
  .create-member-form-card .create-member-grid-primary,
  .create-member-form-card .create-member-grid-money,
  .member-detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .create-service-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-query-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-query-actions {
    grid-column: 1 / -1;
  }

  .member-compact-hero,
  .create-member-form-card .modal-head,
  .member-detail-page .modal-head {
    grid-template-columns: 1fr;
  }

  .member-query-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  :root {
    --app-page-gutter: 2px;
    --app-shell-gap: 8px;
  }

  html,
  body {
    font-size: 14px;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .page-shell,
  body.admin-mode .page-shell,
  .recheck-page-shell {
    width: calc(100vw - var(--app-page-gutter));
    max-width: 100%;
    padding-top: 4px;
    overflow-x: clip;
  }

  .crm-admin-shell,
  .recheck-admin-shell {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .create-service-card-grid {
    grid-template-columns: 1fr;
  }

  .crm-tree-nav,
  .crm-table-row,
  .crm-profile-command-bar,
  .crm-profile-mini-stats,
  .role-metric-grid,
  .role-metric-grid.finance,
  .role-metric-grid.ops,
  .finance-action-grid,
  .risk-overview-grid,
  .risk-closure-grid,
  .risk-mini-metrics,
  .global-search-results,
  .crm-detail-grid,
  .crm-summary-grid,
  .crm-field-list,
  .customer-panorama-sections,
  .customer-mini-grid,
  .unified-profile-grid,
  .xiaogu-chat-summary-grid {
    grid-template-columns: 1fr;
  }

  .crm-left-tree {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    max-width: 100%;
    max-height: none;
    padding: 7px;
    border-radius: 0 0 18px 18px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  .crm-left-tree::-webkit-scrollbar {
    display: none;
  }

  .crm-tree-brand,
  .crm-tree-account {
    display: none;
  }

  .crm-tree-group {
    display: contents;
  }

  .crm-tree-group p {
    display: none;
  }

  .crm-tree-nav {
    display: flex;
    grid-template-columns: none;
    gap: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 1px;
    scrollbar-width: none;
  }

  .crm-tree-nav::-webkit-scrollbar {
    display: none;
  }

  .crm-tree-item {
    flex: 0 0 126px;
    min-height: 50px;
    padding: 8px 10px;
    border-radius: 14px;
  }

  .crm-tree-item span {
    font-size: 13px;
  }

  .crm-tree-item small {
    font-size: 11px;
  }

  .topbar.simple-topbar,
  .topbar-summary {
    display: none;
  }

  .member-compact-hero {
    padding: 12px;
    border-radius: 17px;
  }

  .recheck-main-content {
    gap: 8px;
  }

  .member-compact-hero h3 {
    font-size: 20px;
  }

  .recheck-toolbar-actions,
  .member-query-actions,
  .modal-actions,
  .member-detail-actions,
  .role-shortcut-list,
  .boss-mobile-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .recheck-toolbar-actions > *,
  .member-query-actions > *,
  .modal-actions > *,
  .member-detail-actions > *,
  .role-shortcut-list > *,
  .boss-mobile-actions > * {
    width: 100%;
  }

  .simple-flow-head,
  .simple-flow-steps,
  .simple-flow-shortcuts {
    padding-left: 14px;
    padding-right: 14px;
  }

  .member-priority-grid,
  .member-summary-row,
  .member-query-panel,
  .member-table-tools,
  .member-page-size,
  .member-batch-actions,
  .member-pagination {
    grid-template-columns: 1fr;
  }

  .member-table-tools {
    align-items: stretch;
  }

  .member-page-size {
    justify-content: stretch;
  }

  .member-page-size-option {
    justify-content: center;
  }

  .member-scroll-table {
    overflow: visible;
    border: 0;
    background: transparent;
  }

  .member-data-table,
  .member-data-table thead,
  .member-data-table tbody,
  .member-data-table tr,
  .member-data-table th,
  .member-data-table td {
    display: block;
    width: 100%;
  }

  .member-data-table {
    min-width: 0;
    border-spacing: 0;
  }

  .member-data-table thead {
    display: none;
  }

  .member-data-table tr {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 18px;
    border: 1px solid rgba(47, 128, 237, 0.14);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 12px 26px rgba(18, 64, 128, 0.08);
  }

  .member-data-table td,
  .member-data-table td:first-child,
  .member-data-table .member-action-col {
    position: static;
    padding: 10px 0;
    border: 0;
    border-bottom: 1px solid rgba(47, 128, 237, 0.08);
    background: transparent;
  }

  .member-data-table td:last-child {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .member-data-table td::before {
    content: attr(data-mobile-label);
    display: block;
    margin-bottom: 7px;
    color: var(--accent-deep);
    font-size: 12px;
    font-weight: 900;
  }

  .member-select-col {
    text-align: left;
  }

  .member-mini-field {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .member-executors-stack section {
    padding: 10px;
  }

  .member-row-actions {
    grid-template-columns: 1fr 1fr;
  }

  .member-row-actions > .member-more-actions,
  .member-row-actions > .member-save-chip,
  .member-row-actions > .member-handled-check {
    grid-column: 1 / -1;
  }

  .crm-pagination-pages,
  .crm-pagination-meta {
    justify-content: flex-start;
  }

  .crm-page-number,
  .crm-pagination-pages button {
    min-width: 40px;
    height: 40px;
  }

  body.home-compact-mode .simple-flow-steps {
    grid-template-columns: 1fr;
  }

  .crm-page-size-select select {
    width: 100%;
  }

  .customer-bb-frame {
    display: none;
  }

  .member-detail-kpis,
  .create-page-hero,
  .create-page-hero-main,
  .create-member-form-card .create-member-grid,
  .create-member-form-card .create-member-grid-primary,
  .create-member-form-card .create-member-grid-money {
    grid-template-columns: 1fr;
  }

  .create-member-page,
  .create-member-form-card,
  .member-detail-page {
    padding: 8px;
    border-radius: 14px;
  }

  .create-member-form-card {
    gap: 10px;
  }

  .create-member-section {
    padding: 10px;
    border-radius: 14px;
  }

  .create-section-title {
    display: grid;
  }

  .create-section-title span {
    text-align: left;
  }

  .create-member-form-card .modal-head,
  .member-detail-page .modal-head {
    gap: 10px;
  }

  .create-member-form-card .modal-head .link-button,
  .member-detail-page .modal-head .link-button {
    width: 100%;
  }

  .create-page-hero-main,
  .create-page-hero-side,
  .create-bottom-note,
  .member-detail-grid section {
    padding: 10px;
    border-radius: 14px;
  }

  .create-bottom-note {
    display: grid;
  }

  .member-detail-list div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .member-detail-kpis article {
    padding: 12px;
  }

  .member-detail-grid {
    grid-template-columns: 1fr;
  }

  .create-member-form-card .modal-actions {
    position: static;
    margin: 8px 0 0;
    padding: 0;
    border-top: 0;
    background: transparent;
  }

  input,
  select,
  textarea,
  button,
  .link-button {
    min-height: 42px;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 7px max(8px, calc((100vw - 430px) / 2)) calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(47, 128, 237, 0.16);
    background: rgba(248, 252, 255, 0.96);
    box-shadow: 0 -14px 30px rgba(18, 64, 128, 0.13);
    backdrop-filter: blur(14px);
  }

  .mobile-bottom-nav a,
  .mobile-bottom-nav button {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 46px;
    padding: 5px 2px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: #31527c;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
  }

  .mobile-bottom-nav a::before,
  .mobile-bottom-nav button::before {
    content: "";
    width: 18px;
    height: 18px;
    margin-bottom: 2px;
    border-radius: 7px;
    background: linear-gradient(135deg, rgba(47, 128, 237, 0.18), rgba(26, 86, 219, 0.08));
  }

  .mobile-bottom-nav .is-active {
    background: linear-gradient(135deg, rgba(47, 128, 237, 0.14), rgba(255, 255, 255, 0.92));
    color: var(--accent-deep);
  }

  .mobile-bottom-nav b {
    position: absolute;
    top: 3px;
    right: 16%;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid rgba(248, 252, 255, 0.98);
    border-radius: 999px;
    background: #e11d48;
    color: #fff;
    font-size: 10px;
    line-height: 14px;
    font-weight: 900;
  }

  .mobile-bottom-nav b[data-badge-level="danger"] {
    background: #e11d48;
  }

  .mobile-bottom-nav b[data-badge-level="warn"] {
    background: #f59e0b;
  }

  .mobile-bottom-nav b[data-badge-level="ok"] {
    background: #2f80ed;
  }

  #global-search-panel {
    position: sticky;
    top: 8px;
    z-index: 35;
  }

  .global-search-box {
    gap: 6px;
  }

  .phone-action-row {
    display: flex;
    width: 100%;
    margin-top: 6px;
  }

  .phone-action-row .compact {
    flex: 1 1 74px;
  }

  .create-phone-field {
    grid-column: 1 / -1;
  }

  .boss-mobile-report-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-today-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-today-summary article {
    padding: 12px;
  }

  .mobile-today-task {
    grid-template-columns: 1fr;
  }

  .mobile-today-task em {
    grid-row: auto;
    grid-column: auto;
    justify-self: start;
  }
}

/* 左侧栏目不再做独立滚动，避免左边出现第二个下拉条。 */
.crm-left-tree,
.recheck-page-shell .recheck-left-tree {
  max-height: none;
  overflow: visible;
  align-self: start;
}

.crm-left-tree::-webkit-scrollbar,
.recheck-page-shell .recheck-left-tree::-webkit-scrollbar {
  display: none;
}

.recheck-page-shell .recheck-left-tree .crm-tree-group {
  padding: 8px 0;
  gap: 6px;
}

.recheck-page-shell .recheck-left-tree .crm-tree-item {
  min-height: 48px;
  padding: 8px 10px;
}

.recheck-page-shell .recheck-left-tree .crm-tree-account,
.recheck-page-shell .recheck-left-tree .crm-tree-brand {
  padding-bottom: 10px;
}

@media (min-width: 921px) {
  .recheck-page-shell .recheck-left-tree {
    position: sticky;
    top: 14px;
  }
}

.recheck-page-shell .recheck-left-tree {
  z-index: 60;
  pointer-events: auto;
  isolation: isolate;
}

.recheck-page-shell .recheck-main-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.recheck-page-shell .recheck-left-tree,
.recheck-page-shell .recheck-left-tree * {
  pointer-events: auto;
}


/* Homepage first-screen reduction */
body.home-compact-mode #simple-flow-panel,
body.home-compact-mode #crm-shell-section,
body.home-compact-mode #support-grid-section,
body.home-compact-mode #activity-panel,
body.home-compact-mode #create-patient-panel,
body.home-compact-mode #settings-panel {
    display: none !important;
}

body.home-compact-mode .crm-main-content {
    gap: 18px;
}

body.home-compact-mode .topbar.simple-topbar {
    margin-bottom: 14px;
}

body.home-compact-mode #global-search-panel {
    position: sticky;
    top: 16px;
    z-index: 20;
    margin-bottom: 16px;
}

body.home-compact-mode .quick-link-strip {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 18px;
}

body.home-compact-mode #role-workbenches,
body.home-compact-mode #employee-workbench-panel,
body.home-compact-mode #risk-workbench-panel,
body.home-compact-mode #mobile-today-panel {
    margin-top: 0;
}

body.home-compact-mode .home-main-grid,
body.home-compact-mode .support-grid,
body.home-compact-mode .crm-shell {
    margin-top: 0;
}

/* Homepage compact mode round 2 */
body.home-compact-mode .crm-main-content {
    padding: 18px 18px 24px;
    gap: 14px;
}

body.home-compact-mode #global-search-panel {
    padding: 18px 20px;
    border-radius: 22px;
}

body.home-compact-mode #global-search-panel h2 {
    margin: 0 0 8px;
    font-size: 18px;
}

body.home-compact-mode #global-search-panel p {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.55;
}

body.home-compact-mode .boss-smart-strip {
    margin-bottom: 12px;
    padding: 16px 18px;
    border-radius: 22px;
}

body.home-compact-mode .boss-smart-copy strong {
    font-size: 20px;
}

body.home-compact-mode .boss-smart-copy p {
    font-size: 13px;
}

body.home-compact-mode #global-search-panel .search-input,
body.home-compact-mode #global-search-panel input {
    min-height: 44px;
}

body.home-compact-mode .quick-link-strip {
    padding: 10px 14px;
    min-height: auto;
}

body.home-compact-mode #boss-workbench-panel {
    padding: 18px 20px 20px;
    border-radius: 24px;
}

body.home-compact-mode #boss-workbench-panel .panel-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

body.home-compact-mode #boss-workbench-panel .panel-head h2 {
    margin: 0;
    font-size: 18px;
}

body.home-compact-mode #boss-workbench-panel .panel-head p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

body.home-compact-mode .role-metric-grid {
    gap: 12px;
}

body.home-compact-mode .role-metric-card {
    min-height: 116px;
    padding: 16px 16px 14px;
    border-radius: 22px;
}

body.home-compact-mode .role-metric-card strong {
    font-size: 30px;
    line-height: 1.05;
}

body.home-compact-mode .role-metric-card span,
body.home-compact-mode .role-metric-card em {
    font-size: 13px;
}

body.home-compact-mode .role-workbench-grid {
    margin-top: 14px;
    gap: 12px;
}

body.home-compact-mode .role-insight-card {
    padding: 16px;
    border-radius: 20px;
}

body.home-compact-mode .section-head.compact-head {
    margin-bottom: 10px;
}

body.home-compact-mode .risk-chip-grid,
body.home-compact-mode .role-shortcut-list {
    gap: 10px;
}

body.home-compact-mode .risk-chip,
body.home-compact-mode .role-shortcut-list button {
    min-height: 44px;
}

/* Final mobile override for recheck page */
body.sidebar-mode .recheck-page-shell .smart-filter-strip {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.sidebar-mode .recheck-page-shell .member-card-actions-main {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}

body.sidebar-mode .recheck-page-shell .member-card-actions-meta {
    display: grid !important;
    grid-template-columns: minmax(0, 88px) minmax(0, 1fr) !important;
}

@media (min-width: 1280px) {
    body.home-compact-mode .crm-main-content {
        gap: 12px;
    }

    body.home-compact-mode .role-metric-grid {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    body.home-compact-mode .page-shell,
    body.home-compact-mode .crm-admin-shell,
    body.home-compact-mode .crm-main-content {
        width: 100%;
        max-width: 100%;
    }

    body.home-compact-mode .crm-main-content {
        padding: 10px 10px 96px;
        gap: 10px;
    }

    body.home-compact-mode .crm-left-tree {
        position: sticky;
        top: 0;
        z-index: 40;
        background: rgba(234, 242, 255, 0.96);
        backdrop-filter: blur(10px);
        border-radius: 0 0 16px 16px;
        box-shadow: 0 10px 26px rgba(16, 32, 51, 0.08);
    }

    body.home-compact-mode #global-search-panel {
        display: block !important;
        position: static;
        top: auto;
        margin: 0;
        padding: 14px;
        border-radius: 18px;
    }

    body.home-compact-mode #global-search-panel .section-head.compact-head {
        display: block !important;
        margin-bottom: 8px;
    }

    body.home-compact-mode #global-search-panel .section-head.compact-head .tag {
        display: inline-flex;
        margin-top: 8px;
    }

    body.home-compact-mode #global-search-panel h2 {
        display: block;
        margin: 0 0 4px;
        font-size: 22px;
        line-height: 1.2;
    }

    body.home-compact-mode #global-search-panel p {
        display: block;
        margin: 0;
        font-size: 13px;
        line-height: 1.5;
    }

    body.home-compact-mode #global-search-panel .global-search-box > span {
        display: block;
        margin: 10px 0 6px;
        font-size: 12px;
        color: var(--muted);
    }

    body.home-compact-mode #global-search-panel input {
        height: 44px;
        min-height: 44px;
        border-radius: 14px;
        font-size: 15px;
    }

    body.home-compact-mode #global-search-panel .global-search-hints {
        margin-top: 8px;
        gap: 6px;
    }

    body.home-compact-mode #global-search-panel .global-search-hints span {
        min-height: 28px;
        padding: 0 10px;
        font-size: 11px;
    }

    body.home-compact-mode #global-search-panel .global-search-results {
        display: block !important;
        margin-top: 10px;
        padding: 10px 12px;
        border-radius: 14px;
        max-height: 220px;
        overflow-y: auto;
    }

    body.home-compact-mode .quick-link-strip {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 9px !important;
        padding: 12px !important;
        border-radius: 18px !important;
        background:
          linear-gradient(180deg, rgba(249, 252, 255, 0.96), rgba(243, 248, 253, 0.92)) !important;
    }

    body.home-compact-mode .quick-link-strip-head {
        gap: 4px !important;
        padding: 2px 2px 4px !important;
    }

    body.home-compact-mode .quick-link-strip-head strong {
        font-size: 16px !important;
    }

    body.home-compact-mode .quick-link-strip-head p {
        font-size: 12px !important;
    }

    body.home-compact-mode #boss-workbench-panel {
        padding: 14px;
        border-radius: 18px;
    }

    body.home-compact-mode #boss-workbench-panel .panel-head {
        display: block !important;
        margin-bottom: 10px;
    }

    body.home-compact-mode #boss-workbench-panel .panel-head h2 {
        font-size: 26px;
        line-height: 1.2;
    }

    body.home-compact-mode #boss-workbench-panel .panel-head p {
        margin-top: 4px;
        font-size: 13px;
        line-height: 1.45;
    }

    body.home-compact-mode .boss-mobile-home {
        display: none !important;
    }

    body.home-compact-mode .boss-desktop-home {
        display: block !important;
    }

    body.home-compact-mode .boss-smart-strip {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 14px;
        border-radius: 18px;
    }

    body.home-compact-mode .boss-smart-copy strong {
        font-size: 18px;
    }

    body.home-compact-mode .boss-smart-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    body.home-compact-mode .role-metric-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
    }

    body.home-compact-mode .role-metric-card {
        min-height: 92px;
        padding: 12px;
        border-radius: 16px;
    }

    body.home-compact-mode .role-metric-card strong {
        font-size: 22px;
    }

    body.home-compact-mode .role-metric-card span,
    body.home-compact-mode .role-metric-card em {
        font-size: 12px;
    }

    body.home-compact-mode .role-workbench-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 10px;
    }

    body.home-compact-mode .role-insight-card {
        padding: 14px;
        border-radius: 16px;
    }

    body.home-compact-mode .role-insight-card:first-child {
        display: none !important;
    }

    body.home-compact-mode .risk-chip-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    body.home-compact-mode .risk-chip,
    body.home-compact-mode .role-shortcut-list button {
        min-height: 40px;
        padding: 10px 12px;
        border-radius: 12px;
    }

    body.home-compact-mode .role-shortcut-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 560px) {
    body.home-compact-mode #boss-workbench-panel .role-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 560px) {
    body.home-compact-mode #boss-workbench-panel .role-metric-card {
        min-width: 0;
        width: 100%;
    }

    body.home-compact-mode #boss-workbench-panel .role-metric-card strong {
        font-size: 18px;
        line-height: 1.1;
        word-break: break-word;
    }

    body.home-compact-mode #boss-workbench-panel .role-metric-card span,
    body.home-compact-mode #boss-workbench-panel .role-metric-card em {
        font-size: 11px;
        line-height: 1.4;
        word-break: break-word;
    }

    body.home-compact-mode .boss-smart-actions {
        grid-template-columns: 1fr;
    }

    body.home-compact-mode #boss-workbench-panel .role-metric-grid,
    body.home-compact-mode #risk-workbench-panel .risk-chip-grid,
    body.home-compact-mode .role-shortcut-list,
    body.home-compact-mode .mobile-bottom-nav {
        overflow-x: clip;
    }

    .mobile-bottom-nav {
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }
}

/* 2026-05-26 UI29 会员工作台收敛版：固定三院入口，压低旧后台表格噪音。 */
.recheck-page-shell {
  max-width: 1760px !important;
}

.recheck-page-shell .crm-admin-shell {
  display: grid !important;
  grid-template-columns: 208px minmax(0, 1fr) !important;
  gap: 6px !important;
  align-items: flex-start !important;
}

.recheck-page-shell .recheck-left-tree {
  position: fixed !important;
  top: 10px !important;
  left: calc(var(--app-page-gutter) / 2) !important;
  width: 208px !important;
  min-width: 208px !important;
  max-height: calc(100vh - 20px) !important;
  padding: 10px !important;
  overflow-y: auto !important;
  background:
    radial-gradient(circle at 20% 0%, rgba(49, 126, 255, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(248, 252, 255, 0.96), rgba(231, 242, 255, 0.94)) !important;
  border: 1px solid rgba(91, 151, 231, 0.22) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 42px rgba(26, 78, 145, 0.12) !important;
}

.recheck-page-shell .crm-tree-brand,
.recheck-page-shell .crm-tree-account {
  padding: 10px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
}

.recheck-page-shell .crm-tree-group {
  padding-top: 8px !important;
  margin-top: 8px !important;
  border-top: 1px dashed rgba(65, 128, 213, 0.2) !important;
}

.recheck-page-shell .crm-tree-group:first-child {
  border-top: 0 !important;
}

.recheck-page-shell .crm-tree-group p {
  margin: 0 0 6px !important;
  color: #1e5cb6 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  letter-spacing: 0.06em !important;
}

.recheck-page-shell .crm-tree-item {
  min-height: 48px !important;
  margin-bottom: 6px !important;
  padding: 8px 10px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.62) !important;
  border: 1px solid rgba(85, 143, 224, 0.12) !important;
}

.recheck-page-shell .crm-tree-item span {
  font-size: 14px !important;
  font-weight: 900 !important;
  color: #11243b !important;
}

.recheck-page-shell .crm-tree-item small {
  margin-top: 2px !important;
  font-size: 11px !important;
  color: #5f738c !important;
  opacity: 1 !important;
}

.recheck-page-shell .crm-tree-item:hover {
  background: rgba(255, 255, 255, 0.92) !important;
  transform: translateY(-1px) !important;
}

.recheck-page-shell .crm-tree-item.is-active,
.recheck-page-shell .crm-tree-item[aria-current="page"],
.recheck-page-shell .crm-tree-item.recheck-primary-tree-action {
  background: rgba(255, 255, 255, 0.98) !important;
  color: #1458ad !important;
  border-color: rgba(47, 128, 237, 0.26) !important;
  box-shadow: inset 4px 0 0 rgba(47, 128, 237, 0.54), 0 10px 24px rgba(24, 74, 137, 0.08) !important;
}

.recheck-page-shell .crm-tree-item.is-active span,
.recheck-page-shell .crm-tree-item.is-active small,
.recheck-page-shell .crm-tree-item[aria-current="page"] span,
.recheck-page-shell .crm-tree-item[aria-current="page"] small,
.recheck-page-shell .crm-tree-item.recheck-primary-tree-action span,
.recheck-page-shell .crm-tree-item.recheck-primary-tree-action small {
  color: #1458ad !important;
}

.recheck-page-shell .recheck-main-content {
  grid-column: 2 !important;
  min-width: 0 !important;
  width: 100% !important;
}

.recheck-page-shell .member-compact-hero,
.recheck-page-shell .member-query-panel,
.recheck-page-shell .member-summary-row article,
.recheck-page-shell .member-scroll-table {
  border: 1px solid rgba(79, 139, 220, 0.18) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(55, 139, 255, 0.09), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.94)) !important;
  box-shadow: 0 18px 48px rgba(24, 74, 137, 0.1) !important;
}

.recheck-page-shell .member-compact-hero {
  padding: 28px 32px !important;
  border-radius: 30px !important;
}

.recheck-page-shell .member-compact-hero h3 {
  font-size: clamp(34px, 3.2vw, 56px) !important;
  line-height: 1.05 !important;
}

.recheck-page-shell .member-query-panel {
  grid-template-columns: repeat(4, minmax(190px, 1fr)) !important;
  gap: 14px !important;
  padding: 18px !important;
  border-radius: 26px !important;
}

.recheck-page-shell .member-query-field span,
.recheck-page-shell .member-query-panel label > span {
  color: #5d718d !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.recheck-page-shell .member-query-panel select,
.recheck-page-shell .member-query-panel input,
.recheck-page-shell .recheck-date-trigger {
  height: 46px !important;
  min-height: 46px !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.94) !important;
}

.recheck-page-shell .member-summary-row {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(160px, 1fr)) !important;
  gap: 14px !important;
}

.recheck-page-shell .member-summary-row article {
  min-height: 96px !important;
  padding: 18px 20px !important;
  border-radius: 24px !important;
}

.recheck-page-shell .member-summary-row span {
  color: #607590 !important;
  font-size: 14px !important;
  font-weight: 850 !important;
}

.recheck-page-shell .member-summary-row strong {
  display: block !important;
  margin-top: 8px !important;
  color: #0f2744 !important;
  font-size: 31px !important;
  letter-spacing: -0.04em !important;
}

.recheck-page-shell .member-scroll-table {
  padding: 14px !important;
  border-radius: 28px !important;
  overflow: auto !important;
}

.recheck-page-shell .member-data-table {
  width: 100% !important;
  min-width: 1160px !important;
  border-collapse: separate !important;
  border-spacing: 0 8px !important;
  background: transparent !important;
}

.recheck-page-shell .member-card-list {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px !important;
}

.recheck-page-shell .member-card {
  border: 1px solid rgba(79, 139, 220, 0.18) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(55, 139, 255, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.94)) !important;
  box-shadow: 0 16px 42px rgba(24, 74, 137, 0.09) !important;
}

.recheck-page-shell .member-data-table thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 3 !important;
  padding: 13px 16px !important;
  background: linear-gradient(180deg, #edf6ff, #e5f1ff) !important;
  color: #17437c !important;
  border-top: 1px solid rgba(73, 133, 215, 0.14) !important;
  border-bottom: 1px solid rgba(73, 133, 215, 0.16) !important;
  font-size: 14px !important;
  font-weight: 950 !important;
}

.recheck-page-shell .member-data-table thead th:first-child {
  border-radius: 18px 0 0 18px !important;
}

.recheck-page-shell .member-data-table thead th:last-child {
  border-radius: 0 18px 18px 0 !important;
}

.recheck-page-shell .member-data-table tbody tr {
  filter: drop-shadow(0 10px 24px rgba(26, 80, 145, 0.06)) !important;
}

.recheck-page-shell .member-data-table td {
  padding: 14px 16px !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-top: 1px solid rgba(70, 132, 214, 0.1) !important;
  border-bottom: 1px solid rgba(70, 132, 214, 0.1) !important;
  color: #18304d !important;
  vertical-align: top !important;
}

.recheck-page-shell .member-data-table td:first-child {
  border-left: 1px solid rgba(70, 132, 214, 0.1) !important;
  border-radius: 18px 0 0 18px !important;
}

.recheck-page-shell .member-data-table td:last-child {
  border-right: 1px solid rgba(70, 132, 214, 0.1) !important;
  border-radius: 0 18px 18px 0 !important;
}

.recheck-page-shell .member-data-table tbody tr:hover td {
  background: #f9fcff !important;
  border-color: rgba(47, 128, 237, 0.22) !important;
}

.recheck-page-shell .member-data-table input,
.recheck-page-shell .member-data-table select,
.recheck-page-shell .member-data-table textarea {
  height: 42px !important;
  min-height: 42px !important;
  border-radius: 14px !important;
  border-color: rgba(74, 132, 212, 0.16) !important;
  background: #fbfdff !important;
  box-shadow: none !important;
}

.recheck-page-shell .member-action-col button,
.recheck-page-shell .member-action-col .ghost,
.recheck-page-shell .member-data-table .compact {
  min-height: 34px !important;
  padding: 7px 12px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  box-shadow: none !important;
}

.recheck-page-shell .member-action-col button:not(.ghost) {
  background: linear-gradient(135deg, #287cff, #155bd7) !important;
  color: #fff !important;
}

.recheck-page-shell .member-action-col .ghost,
.recheck-page-shell .member-data-table .compact.ghost {
  background: #eef6ff !important;
  color: #1458ad !important;
}

/* 2026-05-26 高端工作台视觉层：只强化客户画像页字体、色彩和绩效卡片质感。 */
.recheck-page-shell {
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif !important;
  color: #102033 !important;
}

.recheck-page-shell .brand-kicker,
.recheck-page-shell .eyebrow,
.recheck-page-shell .crm-tree-group p,
.recheck-page-shell .member-query-field span,
.recheck-page-shell .member-summary-row span,
.recheck-page-shell .workbench-entry-top span,
.recheck-page-shell .member-data-table th,
.recheck-page-shell .tiantan-executor-chip span {
  color: #60738d !important;
  letter-spacing: 0.04em !important;
}

.recheck-page-shell h1,
.recheck-page-shell h2,
.recheck-page-shell h3,
.recheck-page-shell .crm-tree-brand strong,
.recheck-page-shell .member-card-title-row strong {
  color: #0b1f36 !important;
  font-weight: 900 !important;
  letter-spacing: -0.04em !important;
}

.recheck-page-shell .crm-tree-item span,
.recheck-page-shell .workbench-entry-card strong,
.recheck-page-shell .member-summary-row strong,
.recheck-page-shell .member-data-table td strong {
  color: #123f82 !important;
}

.recheck-page-shell .member-compact-hero,
.recheck-page-shell .workbench-entry-card,
.recheck-page-shell .member-query-panel,
.recheck-page-shell .member-summary-row article,
.recheck-page-shell .member-scroll-table,
.recheck-page-shell .member-card {
  background:
    radial-gradient(circle at 92% 0%, rgba(46, 116, 255, 0.1), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.94)) !important;
  border-color: rgba(65, 128, 213, 0.18) !important;
}

/* 2026-05-26 UI36：入口分色、筛选控件和绩效区做成更像高端业务工作台。 */
.recheck-page-shell .member-compact-hero {
  position: relative !important;
  overflow: hidden !important;
  padding: 24px 28px !important;
  background:
    radial-gradient(circle at 86% -10%, rgba(48, 128, 255, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 247, 255, 0.94)) !important;
}

.recheck-page-shell .member-compact-hero::after {
  content: "" !important;
  position: absolute !important;
  inset: auto 28px 0 28px !important;
  height: 3px !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #2f80ed, #12b3a8, #f59e0b) !important;
  opacity: 0.75 !important;
}

.recheck-page-shell .member-compact-hero h3 {
  font-size: clamp(30px, 2.8vw, 46px) !important;
}

.recheck-page-shell .workbench-entry-card {
  position: relative !important;
  overflow: hidden !important;
  min-height: 142px !important;
  gap: 9px !important;
  padding: 15px 16px !important;
  border-radius: 22px !important;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease !important;
}

.recheck-page-shell .workbench-entry-card::before {
  content: "" !important;
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  width: 5px !important;
  background: var(--entry-accent, #2f80ed) !important;
}

.recheck-page-shell .workbench-entry-card.summary {
  --entry-accent: #1d4ed8;
  background:
    radial-gradient(circle at 92% 0%, rgba(29, 78, 216, 0.16), transparent 32%),
    linear-gradient(145deg, rgba(248, 251, 255, 0.99), rgba(232, 242, 255, 0.94)) !important;
}

.recheck-page-shell .workbench-entry-card.year {
  --entry-accent: #0f766e;
  background:
    radial-gradient(circle at 92% 0%, rgba(20, 184, 166, 0.15), transparent 32%),
    linear-gradient(145deg, rgba(246, 254, 252, 0.99), rgba(232, 248, 245, 0.94)) !important;
}

.recheck-page-shell .workbench-entry-card.primary,
.recheck-page-shell .workbench-entry-card.hospital {
  --entry-accent: #2563eb;
  background:
    radial-gradient(circle at 92% 0%, rgba(37, 99, 235, 0.14), transparent 32%),
    linear-gradient(145deg, rgba(248, 251, 255, 0.99), rgba(241, 247, 255, 0.94)) !important;
}

.recheck-page-shell .workbench-entry-card.service {
  --entry-accent: #c2410c;
  background:
    radial-gradient(circle at 92% 0%, rgba(249, 115, 22, 0.13), transparent 32%),
    linear-gradient(145deg, rgba(255, 252, 247, 0.99), rgba(255, 246, 237, 0.94)) !important;
}

.recheck-page-shell .workbench-entry-card.reminder {
  --entry-accent: #0891b2;
  background:
    radial-gradient(circle at 92% 0%, rgba(8, 145, 178, 0.14), transparent 32%),
    linear-gradient(145deg, rgba(243, 252, 255, 0.99), rgba(236, 253, 245, 0.94)) !important;
}

.recheck-page-shell .workbench-entry-card.is-empty {
  --entry-accent: #94a3b8;
  opacity: 0.72 !important;
  background:
    radial-gradient(circle at 92% 0%, rgba(148, 163, 184, 0.1), transparent 32%),
    linear-gradient(145deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.9)) !important;
  border-style: dashed !important;
  box-shadow: 0 10px 24px rgba(71, 85, 105, 0.05) !important;
}

.recheck-page-shell .workbench-entry-card.is-empty:hover {
  opacity: 0.9 !important;
}

.recheck-page-shell .workbench-entry-card.active {
  border-color: color-mix(in srgb, var(--entry-accent, #2f80ed) 42%, transparent) !important;
  box-shadow: 0 22px 46px rgba(30, 85, 160, 0.16) !important;
}

.recheck-page-shell .workbench-entry-top span {
  color: var(--entry-accent, #60738d) !important;
}

.recheck-page-shell .workbench-entry-card strong {
  color: #10294d !important;
  font-size: 20px !important;
  line-height: 1.16 !important;
}

.recheck-page-shell .workbench-entry-meta b {
  color: var(--entry-accent, #123f82) !important;
  font-size: 27px !important;
}

.recheck-page-shell .workbench-entry-card p {
  display: -webkit-box !important;
  overflow: hidden !important;
  color: #64748b !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

.recheck-page-shell .member-query-panel {
  align-items: end !important;
  background:
    radial-gradient(circle at 98% 0%, rgba(18, 179, 168, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.95)) !important;
}

.recheck-page-shell .member-query-panel select,
.recheck-page-shell .member-query-panel input,
.recheck-page-shell .recheck-date-trigger {
  border: 1px solid rgba(68, 132, 219, 0.18) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 8px 18px rgba(24, 74, 137, 0.05) !important;
}

.recheck-page-shell .member-query-actions button:not(.ghost) {
  min-height: 46px !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #246bfe, #114ccf) !important;
  box-shadow: 0 12px 24px rgba(36, 107, 254, 0.2) !important;
}

.recheck-page-shell .member-query-actions .ghost {
  min-height: 46px !important;
  border-radius: 16px !important;
  background: #eef6ff !important;
  color: #1458ad !important;
}

.recheck-page-shell .member-summary-row article {
  min-height: 88px !important;
  background:
    radial-gradient(circle at 90% 0%, rgba(47, 128, 237, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.94)) !important;
}

.recheck-page-shell .member-summary-row strong {
  font-size: 28px !important;
}

.recheck-page-shell .member-data-table thead th {
  background: linear-gradient(180deg, #eef7ff, #dfeeff) !important;
}

.recheck-page-shell .member-data-table td {
  background: rgba(255, 255, 255, 0.98) !important;
}

.recheck-page-shell .member-core-cell {
  display: grid !important;
  gap: 8px !important;
  min-width: 210px !important;
  padding: 2px !important;
}

.recheck-page-shell .member-core-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

.recheck-page-shell .member-core-head strong {
  overflow: hidden !important;
  color: #0f2744 !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-core-head small {
  flex: 0 0 auto !important;
  padding: 4px 8px !important;
  border-radius: 999px !important;
  background: #eef6ff !important;
  color: #1458ad !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

.recheck-page-shell .member-core-phone,
.recheck-page-shell .member-core-edit {
  display: grid !important;
  gap: 6px !important;
}

.recheck-page-shell .member-core-phone {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: center !important;
}

.recheck-page-shell .member-core-edit {
  grid-template-columns: 34px minmax(0, 1fr) !important;
  align-items: center !important;
}

.recheck-page-shell .member-core-edit span {
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.recheck-page-shell .member-core-hint {
  font-size: 12px !important;
}

.recheck-page-shell .tiantan-executor-summary {
  grid-column: 1 / -1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 7px 9px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, rgba(238, 246, 255, 0.96), rgba(255, 250, 241, 0.92)) !important;
  border: 1px solid rgba(77, 137, 218, 0.14) !important;
}

.recheck-page-shell .tiantan-executor-summary span {
  color: #60738d !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

.recheck-page-shell .tiantan-executor-summary small {
  overflow: hidden !important;
  color: #123f82 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .tiantan-executor-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.recheck-page-shell .tiantan-executor-chip {
  min-width: 0 !important;
  padding: 9px 10px !important;
  border-radius: 16px !important;
  background:
    radial-gradient(circle at 96% 0%, rgba(20, 88, 173, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(255, 252, 247, 0.98), rgba(255, 247, 238, 0.9)) !important;
  border: 1px solid rgba(205, 149, 83, 0.18) !important;
  box-shadow: 0 10px 24px rgba(74, 46, 18, 0.05) !important;
}

.recheck-page-shell .tiantan-executor-chip strong {
  overflow: hidden !important;
  color: #1458ad !important;
  font-size: 15px !important;
  font-weight: 900 !important;
  line-height: 1.18 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .tiantan-executor-chip small {
  overflow: hidden !important;
  color: #536984 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .tiantan-executor-chip em {
  color: #087443 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

@media (max-width: 1180px) {
  .recheck-page-shell .crm-admin-shell {
    display: block !important;
  }

  .recheck-page-shell .recheck-left-tree {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    min-width: 0 !important;
    max-height: none !important;
    margin-bottom: 14px !important;
  }

  .recheck-page-shell .crm-tree-nav {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .recheck-page-shell .crm-tree-group {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .recheck-page-shell .member-query-panel,
  .recheck-page-shell .member-summary-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .recheck-page-shell .recheck-main-content {
    grid-column: auto !important;
  }

  .recheck-page-shell .member-card-list {
    grid-template-columns: 1fr !important;
  }

  .recheck-page-shell .workbench-entry-card {
    min-height: 132px !important;
  }
}

@media (max-width: 760px) {
  .recheck-page-shell .member-scroll-table {
    min-width: 0 !important;
    overflow: visible !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .recheck-page-shell .member-data-table {
    min-width: 0 !important;
  }

  .recheck-page-shell .member-query-panel,
  .recheck-page-shell .member-summary-row {
    grid-template-columns: 1fr !important;
  }

  .recheck-page-shell .member-compact-hero {
    padding: 18px !important;
  }

  .recheck-page-shell .member-compact-hero h3 {
    font-size: 30px !important;
  }

  .recheck-page-shell .workbench-entry-card {
    min-height: 118px !important;
    padding: 13px 14px !important;
  }

  .recheck-page-shell .workbench-entry-card strong {
    font-size: 18px !important;
  }

  .recheck-page-shell .workbench-entry-meta b {
    font-size: 24px !important;
  }

  .recheck-page-shell .member-card {
    gap: 10px !important;
    padding: 14px !important;
  }

  .recheck-page-shell .member-card-grid,
  .recheck-page-shell .member-card-actions,
  .recheck-page-shell .member-card-actions-main,
  .recheck-page-shell .member-card-actions-meta {
    gap: 8px !important;
  }

  .recheck-page-shell .member-card-section {
    padding: 11px !important;
  }

  .recheck-page-shell .member-card-actions-main > *,
  .recheck-page-shell .member-card-actions-meta > * {
    min-height: 38px !important;
  }
}

/* Premium visual skin: polish only, keep layout and data structure unchanged. */
:root {
  --premium-ink: #102238;
  --premium-muted: #63758d;
  --premium-blue: #2169d6;
  --premium-blue-strong: #0f4fa8;
  --premium-cyan: #27a7d8;
  --premium-gold: #c98b38;
  --premium-green: #0d9a6f;
  --premium-surface: rgba(255, 255, 255, 0.9);
  --premium-surface-strong: rgba(255, 255, 255, 0.97);
  --premium-line: rgba(58, 116, 193, 0.16);
  --premium-line-strong: rgba(58, 116, 193, 0.25);
  --premium-shadow: 0 18px 44px rgba(18, 55, 102, 0.11);
  --premium-shadow-soft: 0 10px 26px rgba(18, 55, 102, 0.08);
  --premium-glow: 0 0 0 1px rgba(255, 255, 255, 0.72) inset;
}

body {
  color: var(--premium-ink);
  font-family: "HarmonyOS Sans SC", "PingFang SC", "MiSans", "Microsoft YaHei", sans-serif;
  background:
    radial-gradient(circle at 8% -8%, rgba(61, 131, 227, 0.24) 0, transparent 34%),
    radial-gradient(circle at 96% 2%, rgba(39, 167, 216, 0.16) 0, transparent 28%),
    linear-gradient(135deg, #f5f9ff 0%, #edf5ff 45%, #f7fbff 100%);
  letter-spacing: -0.01em;
}

.page-shell::before {
  background:
    radial-gradient(circle, rgba(33, 105, 214, 0.15) 0%, rgba(33, 105, 214, 0) 70%);
}

.topbar,
.hero,
.panel,
.stat-card,
.card,
.crm-left-tree,
.global-search-panel,
.recheck-workbench-panel,
.member-query-panel,
.member-scroll-table,
.member-card,
.workbench-entry-card,
.schedule-basic-card,
.schedule-workbench-card,
.activity-summary,
.crm-toolbar,
.crm-table-row,
.crm-detail-panel,
.employee-task-item,
.employee-work-card,
.quick-link-card,
.simple-flow-step,
.simple-flow-panel {
  border-color: var(--premium-line) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 255, 0.88)) !important;
  box-shadow: var(--premium-shadow-soft), var(--premium-glow) !important;
}

.hero,
.crm-left-tree,
.recheck-left-tree,
.recheck-page-shell .member-compact-hero {
  background:
    radial-gradient(circle at 100% 0%, rgba(39, 167, 216, 0.13), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(237, 246, 255, 0.92)) !important;
}

.hero,
.topbar,
.crm-left-tree,
.panel {
  box-shadow: var(--premium-shadow), var(--premium-glow) !important;
}

.panel::before,
.simple-flow-panel::before {
  background: linear-gradient(90deg, rgba(33, 105, 214, 0.58), rgba(39, 167, 216, 0.26), transparent) !important;
}

.brand-mark {
  background:
    radial-gradient(circle at 30% 18%, rgba(255, 255, 255, 0.36), transparent 30%),
    linear-gradient(145deg, #2b8df2 0%, #1255b4 70%, #0a3d86 100%) !important;
  box-shadow: 0 16px 30px rgba(21, 85, 180, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.36) !important;
}

.brand-kicker,
.eyebrow,
.workbench-entry-top span,
.member-card-status-label,
.member-card-section h4,
.crm-tree-group-title,
.member-query-panel label,
.schedule-basic-field span,
.schedule-node-card small,
.schedule-fact-card small {
  color: var(--premium-muted) !important;
  letter-spacing: 0.08em;
}

.hero h1,
.panel-head h2,
.member-query-head h3,
.member-compact-hero h3,
.workbench-entry-top strong,
.member-card-title-row strong,
.schedule-basic-title-row strong,
.crm-table-cell strong,
.global-search-card strong,
.stat-card strong,
.member-summary-row strong {
  color: var(--premium-ink) !important;
  font-weight: 900 !important;
  letter-spacing: -0.035em;
}

.hero-copy,
.panel-head p,
.workbench-entry-card p,
.member-query-head p,
.member-compact-hero p,
.crm-table-cell em,
.global-search-card p,
.member-card-phone-row,
.member-page-hint {
  color: var(--premium-muted) !important;
}

.crm-tree-item,
.recheck-left-tree .crm-tree-item,
button.ghost,
a.ghost,
a.ghost:visited,
button.mini,
.stat-button,
.crm-shortcut-chip,
.member-page-size-option,
.member-more-actions summary,
.member-quick-filters,
.simple-flow-shortcuts button,
.activity-tabs button,
.activity-filter-row button {
  border-color: rgba(69, 128, 201, 0.16) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(239, 247, 255, 0.86)) !important;
  color: #174f96 !important;
  box-shadow: 0 8px 18px rgba(19, 74, 143, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

.crm-tree-item:hover,
.crm-tree-item:focus-visible,
.crm-tree-item.is-active,
.stat-button.active,
.crm-shortcut-chip.active,
.activity-tabs button.active,
.activity-filter-row button.active,
.recheck-package-card.active,
.recheck-project-card.active,
.recheck-hospital-card.active,
.member-priority-card.active,
.workbench-entry-card.active,
.crm-table-row.active {
  border-color: rgba(33, 105, 214, 0.34) !important;
  background:
    radial-gradient(circle at 96% 8%, rgba(39, 167, 216, 0.13), transparent 28%),
    linear-gradient(180deg, rgba(237, 247, 255, 0.98), rgba(255, 255, 255, 0.94)) !important;
  box-shadow: 0 16px 34px rgba(18, 82, 166, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
}

.hero-button,
.workbench-entry-action,
.simple-flow-primary,
.stack-form button:not(.ghost),
.modal-actions button:not(.ghost),
.member-query-actions button:not(.ghost),
.member-row-actions button:not(.ghost),
.schedule-basic-actions button:not(.ghost),
.schedule-workbench-actions button:not(.ghost),
.capture-actions button:not(.ghost),
.hero-actions button:not(.ghost-link) {
  border: 1px solid rgba(16, 79, 168, 0.08) !important;
  background:
    radial-gradient(circle at 28% 0%, rgba(255, 255, 255, 0.34), transparent 32%),
    linear-gradient(135deg, #2d8cf0 0%, #1767ca 52%, #0f4fa8 100%) !important;
  color: #fff !important;
  box-shadow: 0 14px 28px rgba(25, 100, 202, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

button:hover:not(:disabled),
.hero-button:hover,
.quick-link-card:hover,
.workbench-entry-card:hover,
.member-card:hover,
.schedule-basic-card:hover,
.crm-table-row:hover,
.global-search-card:hover {
  filter: saturate(1.03);
  transform: translateY(-1px);
}

button.ghost:hover,
a.ghost:hover,
button.mini:hover,
.stat-button:hover,
.crm-shortcut-chip:hover,
.member-more-actions summary:hover {
  background:
    linear-gradient(180deg, rgba(241, 248, 255, 0.98), rgba(255, 255, 255, 0.94)) !important;
  border-color: rgba(33, 105, 214, 0.28) !important;
  color: #0f4fa8 !important;
}

.hero-button.ghost-link {
  color: #174f96 !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(240, 248, 255, 0.9)) !important;
  border-color: rgba(33, 105, 214, 0.18) !important;
}

input,
select,
textarea,
.member-cell-input,
.global-search-box,
.recheck-date-trigger {
  border-color: rgba(58, 116, 193, 0.18) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.92)) !important;
  color: var(--premium-ink) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

input:focus,
select:focus,
textarea:focus,
.recheck-date-trigger:focus-visible,
.recheck-date-trigger.active {
  border-color: rgba(33, 105, 214, 0.46) !important;
  box-shadow: 0 0 0 4px rgba(33, 105, 214, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
}

.tag,
.pill,
.schedule-status-pill,
.member-card-status,
.member-lock-chip,
.member-save-chip,
.topbar-summary,
.note-chip {
  border-color: rgba(33, 105, 214, 0.14) !important;
  background:
    linear-gradient(180deg, rgba(240, 248, 255, 0.98), rgba(255, 255, 255, 0.9)) !important;
  color: #1558a8 !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
}

.pill.warn,
.workbench-entry-card.reminder,
.schedule-node-card.accent,
.member-priority-card.warn,
.member-priority-card.danger {
  border-color: rgba(201, 139, 56, 0.22) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(201, 139, 56, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(255, 251, 243, 0.98), rgba(255, 255, 255, 0.92)) !important;
}

.schedule-status-pill.status-done,
.schedule-status-pill.status-success,
.member-priority-card.green,
.audit-chip.ok {
  border-color: rgba(13, 154, 111, 0.2) !important;
  background:
    linear-gradient(180deg, rgba(238, 253, 247, 0.98), rgba(255, 255, 255, 0.92)) !important;
  color: #08734f !important;
}

.member-data-table th,
.member-data-table th:first-child,
.member-data-table th.member-action-col {
  background:
    linear-gradient(180deg, #eef7ff 0%, #e3f0ff 100%) !important;
  color: #134b91 !important;
  border-color: rgba(58, 116, 193, 0.16) !important;
}

.member-data-table td,
.member-data-table td:first-child,
.member-data-table .member-action-col {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(250, 253, 255, 0.96)) !important;
  border-color: rgba(58, 116, 193, 0.12) !important;
}

.member-data-table tbody tr td,
.crm-table-row,
.member-card,
.schedule-basic-card,
.schedule-workbench-card {
  box-shadow: 0 12px 26px rgba(18, 64, 128, 0.075), inset 0 1px 0 rgba(255, 255, 255, 0.76) !important;
}

.member-card-section,
.schedule-basic-field,
.schedule-node-card,
.schedule-fact-card,
.member-summary-row article,
.member-package-card,
.audit-chip,
.tiantan-executor-chip,
.recheck-page-shell .tiantan-executor-summary {
  border-color: rgba(58, 116, 193, 0.13) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(246, 250, 255, 0.9)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}

.quick-link-card,
.workbench-entry-card,
.member-priority-card,
.employee-work-card,
.employee-task-item,
.global-search-card,
.activity-summary-card {
  position: relative;
  overflow: hidden;
}

.quick-link-card::before,
.workbench-entry-card::before,
.member-priority-card::before,
.employee-work-card::before,
.employee-task-item::before,
.global-search-card::before,
.activity-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  pointer-events: none;
}

.workbench-entry-meta b,
.member-priority-card strong,
.schedule-node-card strong,
.schedule-fact-card strong,
.member-core-head strong,
.tiantan-executor-chip strong {
  color: var(--premium-blue-strong) !important;
}

.schedule-fact-card.money strong,
.audit-chip.ok strong {
  color: var(--premium-green) !important;
}

.crm-tree-account,
.hero-note,
.member-table-tools,
.recheck-date-picker-panel,
.member-more-actions > div,
.result-box,
.empty-state {
  border-color: rgba(58, 116, 193, 0.16) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(242, 248, 255, 0.92)) !important;
  box-shadow: 0 12px 28px rgba(18, 64, 128, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.76) !important;
}

.recheck-date-day.selected {
  background:
    linear-gradient(135deg, #2d8cf0, #0f4fa8) !important;
  box-shadow: 0 12px 24px rgba(25, 100, 202, 0.24) !important;
}

.crm-table-header,
.member-data-table thead {
  color: #164e91 !important;
}

::selection {
  background: rgba(33, 105, 214, 0.18);
  color: var(--premium-ink);
}

.button-primary {
  background:
    radial-gradient(circle at 28% 0%, rgba(255, 255, 255, 0.34), transparent 32%),
    linear-gradient(135deg, #2d8cf0 0%, #1767ca 52%, #0f4fa8 100%) !important;
  color: #fff !important;
  border-color: rgba(16, 79, 168, 0.08) !important;
  box-shadow: 0 14px 28px rgba(25, 100, 202, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.28) !important;
}

.button-secondary {
  background:
    linear-gradient(180deg, rgba(241, 248, 255, 0.98), rgba(255, 255, 255, 0.94)) !important;
  color: #0f4fa8 !important;
  border-color: rgba(33, 105, 214, 0.2) !important;
  box-shadow: 0 10px 20px rgba(18, 82, 166, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}

.button-view {
  background:
    linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(255, 255, 255, 0.94)) !important;
  color: #5a6f89 !important;
  border-color: rgba(125, 147, 173, 0.16) !important;
  box-shadow: 0 8px 18px rgba(62, 88, 120, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}

.button-danger,
.ghost.compact.danger,
.link-button.danger {
  background:
    linear-gradient(180deg, rgba(255, 242, 241, 0.98), rgba(255, 255, 255, 0.94)) !important;
  color: #b33a30 !important;
  border-color: rgba(209, 69, 59, 0.2) !important;
  box-shadow: 0 10px 20px rgba(176, 54, 45, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}

.quick-link-card,
.workbench-entry-card,
.member-card,
.schedule-basic-card,
.global-search-card,
.crm-table-row,
.panel,
.hero {
  animation: premiumFadeLift 420ms ease both;
}

@keyframes premiumFadeLift {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.quick-link-card,
.workbench-entry-card {
  position: relative;
  padding-left: 18px;
}

.quick-link-card::after,
.workbench-entry-card::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 18px;
  width: 22px;
  height: 22px;
  border-radius: 9px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.92), transparent 34%),
    linear-gradient(145deg, rgba(45, 140, 240, 0.22), rgba(19, 85, 180, 0.1));
  box-shadow:
    0 7px 16px rgba(33, 105, 214, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
  opacity: 0.95;
}

.quick-link-card p,
.workbench-entry-top span {
  padding-left: 30px;
}

.quick-link-card strong,
.workbench-entry-top strong {
  padding-left: 30px;
}

.quick-link-card[data-dashboard-action="crm-overview"]::after,
.mobile-bottom-nav [data-mobile-icon="profile"]::before,
.recheck-mobile-bottom-nav [data-mobile-icon="profile"]::before {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4.5h10A2.5 2.5 0 0 1 19.5 7v10A2.5 2.5 0 0 1 17 19.5H7A2.5 2.5 0 0 1 4.5 17V7A2.5 2.5 0 0 1 7 4.5Z'/%3E%3Cpath d='M8.5 9.2h7'/%3E%3Cpath d='M8.5 12h7'/%3E%3Cpath d='M8.5 14.8h4.2'/%3E%3C/svg%3E") center/18px 18px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4.5h10A2.5 2.5 0 0 1 19.5 7v10A2.5 2.5 0 0 1 17 19.5H7A2.5 2.5 0 0 1 4.5 17V7A2.5 2.5 0 0 1 7 4.5Z'/%3E%3Cpath d='M8.5 9.2h7'/%3E%3Cpath d='M8.5 12h7'/%3E%3Cpath d='M8.5 14.8h4.2'/%3E%3C/svg%3E") center/18px 18px no-repeat;
}

.mobile-bottom-nav [data-mobile-icon="home"]::before,
.recheck-mobile-bottom-nav [data-mobile-icon="home"]::before {
  -webkit-mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 10.5 12 4l7.5 6.5'/%3E%3Cpath d='M6.5 9.8V19.5h11V9.8'/%3E%3Cpath d='M10 19.5v-5h4v5'/%3E%3C/svg%3E\") center/18px 18px no-repeat;
  mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 10.5 12 4l7.5 6.5'/%3E%3Cpath d='M6.5 9.8V19.5h11V9.8'/%3E%3Cpath d='M10 19.5v-5h4v5'/%3E%3C/svg%3E\") center/18px 18px no-repeat;
}

.mobile-bottom-nav [data-mobile-icon="todo"]::before,
.recheck-mobile-bottom-nav [data-mobile-icon="todo"]::before {
  -webkit-mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4.5' width='14' height='15' rx='2.5'/%3E%3Cpath d='M8.5 8.5h7'/%3E%3Cpath d='M8.5 12h7'/%3E%3Cpath d='m8.5 15.5 1.4 1.4 3.2-3.2'/%3E%3C/svg%3E\") center/18px 18px no-repeat;
  mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4.5' width='14' height='15' rx='2.5'/%3E%3Cpath d='M8.5 8.5h7'/%3E%3Cpath d='M8.5 12h7'/%3E%3Cpath d='m8.5 15.5 1.4 1.4 3.2-3.2'/%3E%3C/svg%3E\") center/18px 18px no-repeat;
}

.mobile-bottom-nav [data-mobile-icon="messages"]::before {
  -webkit-mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 6.5h13A2.5 2.5 0 0 1 21 9v6a2.5 2.5 0 0 1-2.5 2.5h-7l-4.5 3v-3H5.5A2.5 2.5 0 0 1 3 15V9a2.5 2.5 0 0 1 2.5-2.5Z'/%3E%3Cpath d='M7.8 10h8.4'/%3E%3Cpath d='M7.8 13h5.4'/%3E%3C/svg%3E\") center/18px 18px no-repeat;
  mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 6.5h13A2.5 2.5 0 0 1 21 9v6a2.5 2.5 0 0 1-2.5 2.5h-7l-4.5 3v-3H5.5A2.5 2.5 0 0 1 3 15V9a2.5 2.5 0 0 1 2.5-2.5Z'/%3E%3Cpath d='M7.8 10h8.4'/%3E%3Cpath d='M7.8 13h5.4'/%3E%3C/svg%3E\") center/18px 18px no-repeat;
}

.mobile-bottom-nav [data-mobile-icon="risk"]::before,
.recheck-mobile-bottom-nav [data-mobile-icon="risk"]::before {
  -webkit-mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4.5 20 18H4L12 4.5Z'/%3E%3Cpath d='M12 9v4.8'/%3E%3Cpath d='M12 16.4h.01'/%3E%3C/svg%3E\") center/18px 18px no-repeat;
  mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4.5 20 18H4L12 4.5Z'/%3E%3Cpath d='M12 9v4.8'/%3E%3Cpath d='M12 16.4h.01'/%3E%3C/svg%3E\") center/18px 18px no-repeat;
}

.mobile-bottom-nav [data-mobile-icon="messages"]::before,
.mobile-bottom-nav [data-mobile-icon="mine"]::before,
.recheck-mobile-bottom-nav [data-mobile-icon="review"]::before,
.mobile-bottom-nav [data-mobile-icon="plus"]::before,
.recheck-mobile-bottom-nav [data-mobile-icon="plus"]::before {
  background-color: #175fb8 !important;
}

.mobile-bottom-nav [data-mobile-icon="mine"]::before {
  -webkit-mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 12.2a3.4 3.4 0 1 0 0-6.8 3.4 3.4 0 0 0 0 6.8Z'/%3E%3Cpath d='M5.8 18.3a7 7 0 0 1 12.4 0'/%3E%3C/svg%3E\") center/18px 18px no-repeat;
  mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 12.2a3.4 3.4 0 1 0 0-6.8 3.4 3.4 0 0 0 0 6.8Z'/%3E%3Cpath d='M5.8 18.3a7 7 0 0 1 12.4 0'/%3E%3C/svg%3E\") center/18px 18px no-repeat;
}

.recheck-mobile-bottom-nav [data-mobile-icon="review"]::before {
  -webkit-mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.8 12a7.2 7.2 0 1 0 2.1-5.1'/%3E%3Cpath d='M4.8 6.8v3.7h3.7'/%3E%3Cpath d='M12 8.4V12l2.5 1.7'/%3E%3C/svg%3E\") center/18px 18px no-repeat;
  mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.8 12a7.2 7.2 0 1 0 2.1-5.1'/%3E%3Cpath d='M4.8 6.8v3.7h3.7'/%3E%3Cpath d='M12 8.4V12l2.5 1.7'/%3E%3C/svg%3E\") center/18px 18px no-repeat;
}

.mobile-bottom-nav [data-mobile-icon="plus"]::before,
.recheck-mobile-bottom-nav [data-mobile-icon="plus"]::before {
  -webkit-mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E\") center/18px 18px no-repeat;
  mask: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 5v14'/%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E\") center/18px 18px no-repeat;
}

.member-card-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.member-summary-fact {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(58, 116, 193, 0.12);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.9));
}

.member-summary-fact span {
  color: var(--premium-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.member-summary-fact strong {
  color: var(--premium-blue-strong);
  font-size: 14px;
  line-height: 1.28;
}

.member-summary-fact.tone-review {
  border-color: rgba(45, 140, 240, 0.18);
  background: linear-gradient(180deg, rgba(237, 247, 255, 0.98), rgba(255, 255, 255, 0.92));
}

.member-summary-fact.tone-medicine {
  border-color: rgba(201, 139, 56, 0.22);
  background: linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(255, 255, 255, 0.92));
}

.member-summary-fact.tone-done {
  border-color: rgba(13, 154, 111, 0.2);
  background: linear-gradient(180deg, rgba(238, 253, 247, 0.98), rgba(255, 255, 255, 0.92));
}

.member-summary-fact.tone-danger {
  border-color: rgba(209, 69, 59, 0.2);
  background: linear-gradient(180deg, rgba(255, 242, 241, 0.98), rgba(255, 255, 255, 0.92));
}

.member-summary-fact.tone-deferred {
  border-color: rgba(125, 147, 173, 0.18);
  background: linear-gradient(180deg, rgba(245, 248, 252, 0.98), rgba(255, 255, 255, 0.92));
}

.member-summary-fact.tone-pending {
  border-color: rgba(223, 128, 42, 0.18);
  background: linear-gradient(180deg, rgba(255, 248, 236, 0.96), rgba(255, 255, 255, 0.92));
}

.empty-state,
.wecom-empty-state {
  position: relative;
  overflow: hidden;
  min-height: 84px;
}

.empty-state::before,
.wecom-empty-state::before {
  content: "";
  position: absolute;
  right: 16px;
  top: 16px;
  width: 34px;
  height: 34px;
  border-radius: 14px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.94), transparent 34%),
    linear-gradient(145deg, rgba(45, 140, 240, 0.18), rgba(19, 85, 180, 0.08));
  box-shadow:
    0 7px 16px rgba(33, 105, 214, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

/* Premium mobile skin: bottom dock and narrow cards only, no layout changes. */
@media (max-width: 760px) {
  body {
    background:
      radial-gradient(circle at 16% -6%, rgba(45, 140, 240, 0.2) 0, transparent 34%),
      radial-gradient(circle at 88% 2%, rgba(39, 167, 216, 0.14) 0, transparent 32%),
      linear-gradient(180deg, #f7fbff 0%, #edf5ff 100%) !important;
  }

  .topbar,
  .hero,
  .panel,
  .member-card,
  .schedule-basic-card,
  .schedule-workbench-card,
  .workbench-entry-card,
  .global-search-card,
  .crm-table-row,
  .employee-task-item,
  .mobile-today-task {
    border-color: rgba(58, 116, 193, 0.14) !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 250, 255, 0.91)) !important;
    box-shadow: 0 12px 28px rgba(18, 64, 128, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
  }

  .panel-head h2,
  .member-card-title-row strong,
  .schedule-basic-title-row strong,
  .workbench-entry-top strong {
    letter-spacing: -0.025em !important;
  }

  .member-card-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .member-summary-fact {
    padding: 10px 11px;
    border-radius: 15px;
  }

  .member-summary-fact strong {
    font-size: 13px;
  }

  .mobile-bottom-nav {
    left: 8px !important;
    right: 8px !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 6px !important;
    padding: 7px !important;
    border: 1px solid rgba(58, 116, 193, 0.16) !important;
    border-radius: 28px !important;
    background:
      radial-gradient(circle at 50% 0%, rgba(45, 140, 240, 0.1), transparent 56%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(236, 246, 255, 0.82)) !important;
    box-shadow:
      0 -10px 28px rgba(18, 64, 128, 0.08),
      0 18px 46px rgba(18, 64, 128, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
    backdrop-filter: blur(20px) saturate(1.22) !important;
  }

  .mobile-bottom-nav a,
  .mobile-bottom-nav button {
    min-width: 0 !important;
    min-height: 62px !important;
    gap: 3px !important;
    padding: 7px 2px 6px !important;
    border: 1px solid transparent !important;
    border-radius: 21px !important;
    background: transparent !important;
    color: #244b78 !important;
    box-shadow: none !important;
    font-size: 13px !important;
    font-weight: 950 !important;
    line-height: 1.08 !important;
    letter-spacing: -0.02em !important;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.72);
  }

  .mobile-bottom-nav a::before,
  .mobile-bottom-nav button::before {
    width: 26px !important;
    height: 26px !important;
    margin: 0 0 4px !important;
    border-radius: 10px !important;
    background:
      radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.92), transparent 34%),
      linear-gradient(145deg, rgba(45, 140, 240, 0.18), rgba(19, 85, 180, 0.08)) !important;
    box-shadow:
      0 7px 16px rgba(33, 105, 214, 0.11),
      inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
    background-color: #175fb8 !important;
  }

  .mobile-bottom-nav a:hover,
  .mobile-bottom-nav button:hover,
  .mobile-bottom-nav .is-active {
    border-color: rgba(45, 140, 240, 0.18) !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(237, 247, 255, 0.88)) !important;
    color: #0f4fa8 !important;
    box-shadow: 0 10px 22px rgba(18, 82, 166, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
    transform: translateY(-1px);
  }

  .mobile-bottom-nav .is-active::before {
    background:
      radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.92), transparent 34%),
      linear-gradient(145deg, rgba(45, 140, 240, 0.34), rgba(19, 85, 180, 0.18)) !important;
  }

  .mobile-bottom-nav b {
    top: 5px !important;
    right: 12px !important;
    min-width: 24px !important;
    height: 20px !important;
    padding: 0 6px !important;
    border: 2px solid rgba(255, 255, 255, 0.96) !important;
    border-radius: 999px !important;
    background:
      radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.4), transparent 34%),
      linear-gradient(135deg, #ff3d68, #d80f45) !important;
    color: #fff !important;
    font-size: 11px !important;
    font-weight: 950 !important;
    line-height: 16px !important;
    box-shadow: 0 7px 14px rgba(216, 15, 69, 0.28) !important;
  }

  .mobile-bottom-nav b[data-badge-level="warn"] {
    background:
      radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.42), transparent 34%),
      linear-gradient(135deg, #ffb020, #f08a00) !important;
    box-shadow: 0 7px 14px rgba(240, 138, 0, 0.26) !important;
  }

  .mobile-bottom-nav b[data-badge-level="ok"] {
    background:
      radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.42), transparent 34%),
      linear-gradient(135deg, #2d8cf0, #0f4fa8) !important;
    box-shadow: 0 7px 14px rgba(33, 105, 214, 0.25) !important;
  }

  .quick-link-card::after,
  .workbench-entry-card::after {
    left: 14px;
    top: 16px;
    width: 20px;
    height: 20px;
    border-radius: 8px;
  }

  .quick-link-card p,
  .workbench-entry-top span,
  .quick-link-card strong,
  .workbench-entry-top strong {
    padding-left: 28px;
  }
}

/* 20260530mobileuipolish1: tighten mobile workbench rhythm and detail-page hierarchy. */
@media (max-width: 560px) {
  body.home-compact-mode {
    background:
      radial-gradient(circle at 14% -2%, rgba(45, 140, 240, 0.18) 0, transparent 34%),
      linear-gradient(180deg, #f7fbff 0%, #edf5ff 100%) !important;
  }

  body.home-compact-mode .crm-main-content {
    padding: 10px 10px 118px !important;
    gap: 12px !important;
  }

  body.home-compact-mode #global-search-panel,
  body.home-compact-mode .role-workbench-panel:not(.hidden),
  body.home-compact-mode #employee-workbench-panel,
  body.home-compact-mode #mobile-today-panel {
    border-radius: 20px !important;
    border: 1px solid rgba(58, 116, 193, 0.14) !important;
    background:
      radial-gradient(circle at 100% 0%, rgba(45, 140, 240, 0.1), transparent 26%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 250, 255, 0.93)) !important;
    box-shadow:
      0 16px 34px rgba(18, 64, 128, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  }

  body.home-compact-mode #global-search-panel {
    padding: 16px !important;
  }

  body.home-compact-mode #global-search-panel h2 {
    font-size: 20px !important;
    line-height: 1.18 !important;
  }

  body.home-compact-mode #global-search-panel p {
    margin-top: 4px !important;
    color: #55708d !important;
  }

  body.home-compact-mode #global-search-panel .global-search-results {
    margin-top: 12px !important;
    padding: 12px !important;
    border: 1px solid rgba(58, 116, 193, 0.12) !important;
    background: rgba(241, 248, 255, 0.88) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  }

  body.home-compact-mode .role-workbench-panel:not(.hidden) {
    padding: 16px !important;
  }

  body.home-compact-mode .role-workbench-panel .panel-head {
    display: grid !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
  }

  body.home-compact-mode .role-workbench-panel .panel-head h2 {
    font-size: 22px !important;
    line-height: 1.2 !important;
    letter-spacing: -0.03em !important;
  }

  body.home-compact-mode .role-workbench-panel .panel-head p {
    color: #5a7290 !important;
    line-height: 1.5 !important;
  }

  body.home-compact-mode .boss-smart-strip {
    gap: 10px !important;
    padding: 15px !important;
    border-radius: 18px !important;
  }

  body.home-compact-mode .boss-smart-copy span {
    margin-bottom: 6px !important;
    font-size: 11px !important;
  }

  body.home-compact-mode .boss-smart-copy strong {
    font-size: 17px !important;
    line-height: 1.28 !important;
  }

  body.home-compact-mode .boss-smart-copy p {
    font-size: 12px !important;
    line-height: 1.55 !important;
  }

  body.home-compact-mode .role-metric-grid,
  body.home-compact-mode #boss-workbench-panel .role-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  body.home-compact-mode .role-metric-card {
    min-height: 96px !important;
    padding: 13px 12px !important;
    border-radius: 16px !important;
    gap: 6px !important;
  }

  body.home-compact-mode .role-metric-card strong {
    font-size: 21px !important;
    line-height: 1.06 !important;
  }

  body.home-compact-mode .role-metric-card span,
  body.home-compact-mode .role-metric-card em {
    font-size: 11px !important;
    line-height: 1.38 !important;
    color: #66809c !important;
  }

  body.home-compact-mode .role-workbench-grid {
    gap: 10px !important;
  }

  body.home-compact-mode .role-insight-card {
    padding: 14px !important;
    border-radius: 18px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.93)) !important;
  }

  body.home-compact-mode .role-insight-card h3,
  body.home-compact-mode .role-insight-card strong {
    letter-spacing: -0.02em !important;
  }

  body.home-compact-mode .risk-chip-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 9px !important;
  }

  body.home-compact-mode .risk-chip,
  body.home-compact-mode .role-shortcut-list button,
  body.home-compact-mode .finance-action-card {
    min-height: 48px !important;
    padding: 12px !important;
    border-radius: 16px !important;
  }

  body.home-compact-mode .risk-chip strong {
    font-size: 20px !important;
  }

  body.home-compact-mode .mobile-bottom-nav {
    left: 8px !important;
    right: 8px !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    padding: 7px !important;
    border-radius: 26px !important;
  }

  body.home-compact-mode .mobile-bottom-nav a,
  body.home-compact-mode .mobile-bottom-nav button {
    min-height: 60px !important;
    border-radius: 18px !important;
    font-size: 12px !important;
  }

  body.home-compact-mode .mobile-bottom-nav a span,
  body.home-compact-mode .mobile-bottom-nav button span {
    max-width: 100%;
    line-height: 1.1 !important;
    word-break: break-word;
  }

  .member-detail-page {
    padding: 14px !important;
    border-radius: 20px !important;
    gap: 14px !important;
    background:
      radial-gradient(circle at 100% 0%, rgba(45, 140, 240, 0.11), transparent 28%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.94)) !important;
    box-shadow:
      0 18px 38px rgba(18, 64, 128, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
    margin-bottom: 14px !important;
  }

  .member-detail-page .modal-head,
  .member-detail-head {
    display: grid !important;
    gap: 10px !important;
    padding-right: 0 !important;
    align-items: start !important;
  }

  .member-detail-head h3,
  .member-detail-page .modal-head h3 {
    font-size: 22px !important;
    line-height: 1.22 !important;
    letter-spacing: -0.03em !important;
  }

  .member-appointment-corner,
  .member-core-cell .member-appointment-corner.is-inline {
    position: static !important;
    justify-self: start !important;
    min-width: 0 !important;
    width: fit-content !important;
    padding: 7px 12px !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
    box-shadow: 0 10px 18px rgba(20, 84, 154, 0.13) !important;
    margin-bottom: 2px !important;
  }

  .member-detail-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .member-detail-actions > * {
    width: 100% !important;
    min-height: 42px !important;
  }

  .member-detail-action-group {
    min-width: 0 !important;
    padding: 11px !important;
    border-radius: 15px !important;
    gap: 7px !important;
  }

  .member-detail-action-grid {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .member-detail-action-grid > * {
    min-height: 41px !important;
  }

  .member-detail-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .member-detail-kpis article {
    padding: 12px !important;
    border-radius: 16px !important;
    min-height: 86px;
    align-content: start;
  }

  .member-detail-kpis span {
    font-size: 11px !important;
    letter-spacing: 0.04em !important;
  }

  .member-detail-kpis strong {
    font-size: 17px !important;
    line-height: 1.16 !important;
    word-break: break-word;
  }

  .member-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .member-detail-grid section {
    padding: 13px !important;
    border-radius: 17px !important;
  }

  .member-detail-grid h4 {
    font-size: 14px !important;
    letter-spacing: -0.01em !important;
  }

  .member-detail-list {
    gap: 10px !important;
  }

  .member-detail-list div {
    gap: 4px !important;
    padding: 0 0 8px !important;
    border-bottom: 1px dashed rgba(58, 116, 193, 0.14);
  }

  .member-detail-list div:last-child {
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
  }

  .member-detail-list dt {
    font-size: 11px !important;
    color: #6883a1 !important;
    letter-spacing: 0.04em !important;
  }

  .member-detail-list dd {
    font-size: 14px !important;
    line-height: 1.5 !important;
    color: #16385f !important;
  }

  .member-detail-edit-panel {
    padding: 13px !important;
    border-radius: 18px !important;
    gap: 10px !important;
  }

  .member-detail-edit-head {
    display: grid !important;
    gap: 4px !important;
  }

  .member-detail-edit-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 9px !important;
  }

  .member-detail-edit-grid label.wide {
    grid-column: 1 / -1 !important;
  }
}

/* 20260530homeentrypolish2: make /mine and /messages feel like explicit landing views instead of half-home states. */
body.home-open-route-active[data-home-open-route="mine"] #employee-workbench-panel,
body.home-open-route-active[data-home-open-route="messages"] #support-grid-section {
  display: block !important;
}

body.home-open-route-active[data-home-open-route="mine"] #employee-workbench-panel {
  box-shadow:
    0 20px 40px rgba(18, 64, 128, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
}

body.home-open-route-active[data-home-open-route="messages"] #support-grid-section {
  display: grid !important;
  gap: 14px !important;
}

body.home-open-route-active[data-home-open-route="messages"] #chat-context-panel {
  display: none !important;
}

body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel {
  border: 1px solid rgba(58, 116, 193, 0.16) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(45, 140, 240, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.94)) !important;
  box-shadow:
    0 18px 36px rgba(18, 64, 128, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
}

@media (max-width: 560px) {
  body.home-compact-mode .quick-link-strip,
  body.home-compact-mode .home-mobile-priority-strip,
  body.home-compact-mode #simple-flow-panel,
  body.home-compact-mode #role-workbenches,
  body.home-compact-mode #stats,
  body.home-compact-mode #crm-shell-section,
  body.home-compact-mode #support-grid-section,
  body.home-compact-mode #activity-panel,
  body.home-compact-mode #create-patient-panel,
  body.home-compact-mode #settings-panel {
    display: none !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .crm-main-content,
  body.home-open-route-active[data-home-open-route="messages"] .crm-main-content {
    padding-bottom: 112px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] #global-search-panel,
  body.home-open-route-active[data-home-open-route="mine"] #employee-workbench-panel,
  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel {
    border-radius: 20px !important;
    border: 1px solid rgba(58, 116, 193, 0.14) !important;
    background:
      radial-gradient(circle at 100% 0%, rgba(45, 140, 240, 0.1), transparent 28%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.94)) !important;
    box-shadow:
      0 16px 34px rgba(18, 64, 128, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] #global-search-panel,
  body.home-compact-mode #global-search-panel {
    padding: 15px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] #employee-workbench-panel,
  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel {
    padding: 15px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] #employee-workbench-panel .panel-head,
  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel .panel-head {
    display: grid !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] #employee-workbench-panel .panel-head h2,
  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel .panel-head h2 {
    font-size: 22px !important;
    line-height: 1.18 !important;
    letter-spacing: -0.03em !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] #employee-workbench-panel .panel-head p,
  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel .panel-head p {
    color: #58708d !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] #support-grid-section {
    gap: 10px !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] .capture-form-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] .capture-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] .capture-actions > * {
    width: 100% !important;
    min-height: 44px !important;
  }
}

/* 20260530recheckmobilecards3: tighten the lower half of member cards based on real mobile-page inspection. */
@media (max-width: 560px) {
  .recheck-page-shell .member-card-top {
    gap: 7px !important;
  }

  .recheck-page-shell .customer-tag-row,
  .recheck-page-shell .audit-tag-row,
  .recheck-page-shell .cleanup-action-row,
  .recheck-page-shell .cleanup-status-row {
    gap: 5px !important;
    margin-top: 1px !important;
  }

  .recheck-page-shell .customer-tag-row small,
  .recheck-page-shell .audit-tag-row small,
  .recheck-page-shell .cleanup-action-row small,
  .recheck-page-shell .cleanup-status-row small {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  .recheck-page-shell .member-card-hint {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 5px !important;
    margin-top: 1px !important;
  }

  .recheck-page-shell .member-card-summary-strip {
    gap: 6px !important;
  }

  .recheck-page-shell .member-card-summary-strip > * {
    min-height: 54px !important;
    padding: 8px 9px !important;
  }

  .recheck-page-shell .member-summary-fact span {
    font-size: 10px !important;
    line-height: 1.3 !important;
  }

  .recheck-page-shell .member-summary-fact strong {
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  .recheck-page-shell .member-card-section.member-card-section-executors {
    gap: 6px !important;
    padding-top: 9px !important;
    padding-bottom: 9px !important;
  }

  .recheck-page-shell .tiantan-executor-summary,
  .recheck-page-shell .member-executor-summary {
    padding: 8px 9px !important;
    border-radius: 13px !important;
  }

  .recheck-page-shell .member-card-actions {
    gap: 7px !important;
    padding-top: 0 !important;
  }

  .recheck-page-shell .member-card-actions-main {
    gap: 7px !important;
  }

  .recheck-page-shell .member-card-actions-main .member-handled-check {
    min-height: 34px !important;
    font-size: 12px !important;
  }

  .recheck-page-shell .member-card-actions-main button,
  .recheck-page-shell .member-card-actions-main .link-button {
    min-height: 40px !important;
    padding: 9px 10px !important;
    font-size: 12px !important;
  }

  .recheck-page-shell .member-card-actions-meta {
    grid-template-columns: minmax(0, 1fr) 96px !important;
    gap: 7px !important;
  }

  .recheck-page-shell .member-card-actions-meta .member-save-chip {
    min-height: 36px !important;
    padding: 7px 9px !important;
    font-size: 11px !important;
  }

  .recheck-page-shell .member-card-actions-meta .member-more-actions {
    min-width: 96px !important;
  }

  .recheck-page-shell .member-card-actions-meta .member-more-actions summary {
    min-width: 96px !important;
    min-height: 36px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
  }

  .recheck-page-shell .member-card-actions-meta .member-more-actions > div {
    gap: 5px !important;
    margin-top: 5px !important;
    padding: 7px !important;
    border-radius: 12px !important;
  }

  .recheck-page-shell .member-card-actions-meta .member-more-actions > div > * {
    min-height: 36px !important;
    padding: 8px 10px !important;
    font-size: 11px !important;
  }

  .recheck-page-shell .member-pagination {
    gap: 8px !important;
    padding: 10px !important;
    border-radius: 16px !important;
    margin-top: 0 !important;
    margin-bottom: 8px !important;
  }

  .recheck-page-shell .member-page-size-bottom {
    gap: 7px !important;
  }

  .recheck-page-shell .member-page-size-bottom > span:first-child {
    margin-bottom: -1px !important;
  }

  .recheck-page-shell .member-pagination-actions {
    gap: 7px !important;
  }

  .recheck-page-shell .member-pagination-actions button {
    min-height: 40px !important;
    padding: 9px 10px !important;
    font-size: 12px !important;
  }
}

/* 20260530recheckmobilecontrols1: streamline mobile filters, pagination, and bottom action blocks. */
@media (max-width: 560px) {
  .recheck-page-shell .member-query-shell {
    gap: 12px !important;
  }

  .recheck-page-shell .member-query-panel,
  .recheck-page-shell .member-table-tools,
  .recheck-page-shell .member-pagination,
  .recheck-page-shell .member-secondary-entrances,
  .recheck-page-shell .year-special-filters,
  .recheck-page-shell .member-quick-filters {
    border-radius: 18px !important;
    border: 1px solid rgba(58, 116, 193, 0.14) !important;
    background:
      radial-gradient(circle at 100% 0%, rgba(45, 140, 240, 0.08), transparent 28%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.94)) !important;
    box-shadow:
      0 14px 28px rgba(18, 64, 128, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  }

  .recheck-page-shell .member-query-panel {
    gap: 10px !important;
    padding: 14px !important;
  }

  .recheck-page-shell .member-query-panel label {
    gap: 6px !important;
    padding: 10px 11px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(58, 116, 193, 0.1) !important;
    background: rgba(248, 252, 255, 0.88) !important;
  }

  .recheck-page-shell .member-query-field span,
  .recheck-page-shell .member-query-panel label > span {
    font-size: 11px !important;
    letter-spacing: 0.04em !important;
    color: #69809d !important;
  }

  .recheck-page-shell .member-query-panel select,
  .recheck-page-shell .member-query-panel input,
  .recheck-page-shell .recheck-date-trigger {
    height: 44px !important;
    min-height: 44px !important;
    border-radius: 14px !important;
    font-size: 14px !important;
  }

  .recheck-page-shell .member-query-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    padding-top: 2px !important;
  }

  .recheck-page-shell .member-query-actions > * {
    width: 100% !important;
    min-height: 44px !important;
  }

  .recheck-page-shell .member-query-actions > *:first-child {
    grid-column: 1 / -1 !important;
  }

  .recheck-page-shell .member-secondary-entrances,
  .recheck-page-shell .year-special-filters,
  .recheck-page-shell .member-quick-filters {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    padding: 12px !important;
  }

  .recheck-page-shell .member-secondary-entrances button,
  .recheck-page-shell .year-special-filters button,
  .recheck-page-shell .member-quick-filters button {
    min-height: 62px !important;
    padding: 11px 12px !important;
    border-radius: 15px !important;
    align-content: start !important;
    justify-items: start !important;
    text-align: left !important;
    white-space: normal !important;
    line-height: 1.18 !important;
  }

  .recheck-page-shell .member-secondary-entrances button strong,
  .recheck-page-shell .year-special-filters button strong,
  .recheck-page-shell .member-quick-filters button strong {
    font-size: 14px !important;
    line-height: 1.2 !important;
  }

  .recheck-page-shell .member-secondary-entrances button span,
  .recheck-page-shell .year-special-filters button span,
  .recheck-page-shell .member-quick-filters button span {
    margin-top: 4px !important;
    color: #637b97 !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  .recheck-page-shell .member-quick-filters button {
    min-height: 54px !important;
    align-items: center !important;
    justify-content: space-between !important;
  }

  .recheck-page-shell .member-table-tools {
    display: grid !important;
    gap: 10px !important;
    padding: 12px !important;
  }

  .recheck-page-shell .member-table-tools-primary,
  .recheck-page-shell .member-table-tools-secondary {
    display: grid !important;
    gap: 10px !important;
  }

  .recheck-page-shell .member-page-size {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    padding: 0 !important;
  }

  .recheck-page-shell .member-page-size-option {
    min-height: 46px !important;
    padding: 10px 8px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(58, 116, 193, 0.12) !important;
    background: rgba(248, 252, 255, 0.92) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
    font-size: 12px !important;
    font-weight: 900 !important;
  }

  .recheck-page-shell .member-batch-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .recheck-page-shell .member-batch-actions > * {
    width: 100% !important;
    min-height: 44px !important;
  }

  .recheck-page-shell .member-scroll-table {
    padding: 0 !important;
    margin-top: 2px !important;
  }

  .recheck-page-shell .member-pagination {
    display: grid !important;
    gap: 10px !important;
    padding: 12px !important;
    margin-top: 4px !important;
    margin-bottom: 6px !important;
  }

  .recheck-page-shell .member-pagination-with-size {
    gap: 12px !important;
  }

  .recheck-page-shell .member-pagination-actions {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .recheck-page-shell .member-pagination-actions > * {
    min-height: 44px !important;
  }

  .recheck-page-shell .member-pagination-actions button {
    width: 100% !important;
    border-radius: 14px !important;
  }

  .recheck-page-shell .member-pagination-actions span {
    min-width: 76px !important;
    text-align: center !important;
    color: #5d7591 !important;
    font-size: 12px !important;
    font-weight: 900 !important;
  }

  .recheck-page-shell .member-page-size-bottom {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .recheck-page-shell .recheck-summary-note {
    display: grid !important;
    gap: 4px !important;
    padding: 0 2px !important;
    color: #607792 !important;
    font-size: 12px !important;
  }
}

/* 20260530recheckmobilecards2: tighten mobile member cards, action rows, and pagination rhythm based on real long-page inspection. */
@media (max-width: 560px) {
  .recheck-page-shell .recheck-left-tree,
  .recheck-page-shell .topbar.simple-topbar,
  .recheck-page-shell .panel-head,
  .recheck-page-shell .recheck-flow-panel {
    display: none !important;
  }

  .recheck-page-shell .recheck-admin-shell,
  .recheck-page-shell .recheck-main-content {
    display: block !important;
  }

  .recheck-page-shell .recheck-main-content {
    gap: 0 !important;
  }

  .recheck-page-shell .recheck-workbench-panel {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .recheck-page-shell .recheck-page-intro {
    display: none !important;
  }

  .recheck-page-shell .recheck-workbench-panel {
    margin-top: 0 !important;
    padding-top: 14px !important;
  }

  .member-list-mobile-hero {
    padding: 14px !important;
    border-radius: 20px !important;
    gap: 10px !important;
  }

  .member-list-mobile-hero-copy strong {
    font-size: 19px !important;
    line-height: 1.32 !important;
  }

  .member-list-mobile-hero-copy p {
    font-size: 12px !important;
    line-height: 1.58 !important;
  }

  .member-list-mobile-hero-facts {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .member-list-mobile-hero-facts article {
    min-height: 74px !important;
    padding: 11px !important;
    border-radius: 15px !important;
  }

  .member-list-mobile-hero-facts strong {
    font-size: 16px !important;
  }

  .member-list-mobile-hero-focus {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .member-list-mobile-hero-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
  }

  .member-list-mobile-hero-actions > * {
    min-height: 40px !important;
    justify-content: center !important;
  }

  .recheck-page-shell .member-compact-hero-mobile-actions {
    gap: 10px !important;
    padding: 13px !important;
  }

  .recheck-page-shell .member-compact-hero-mobile-actions h3 {
    font-size: 18px !important;
    line-height: 1.28 !important;
  }

  .recheck-page-shell .member-compact-hero-mobile-actions p {
    font-size: 12px !important;
    line-height: 1.52 !important;
  }

  .recheck-page-shell .member-compact-hero-mobile-actions .recheck-toolbar-actions {
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 7px !important;
  }

  .recheck-page-shell .member-compact-hero-mobile-actions .recheck-toolbar-actions > * {
    min-height: 40px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }

  .recheck-page-shell .member-card-list {
    gap: 10px !important;
  }

  .recheck-page-shell .member-card {
    gap: 9px !important;
    padding: 12px !important;
    border-radius: 18px !important;
    box-shadow:
      0 12px 24px rgba(18, 64, 128, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  }

  .recheck-page-shell .member-card-top {
    gap: 8px !important;
  }

  .recheck-page-shell .member-card-title-row {
    align-items: flex-start !important;
    gap: 6px !important;
  }

  .recheck-page-shell .member-card-title-row strong {
    font-size: 17px !important;
    line-height: 1.18 !important;
  }

  .recheck-page-shell .member-card-phone-row {
    gap: 6px !important;
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  .recheck-page-shell .member-card-phone-row > span:first-child {
    flex: 1 1 100% !important;
  }

  .recheck-page-shell .member-card-hint,
  .recheck-page-shell .member-card-hint .tag,
  .recheck-page-shell .member-card-hint .warning-chip,
  .recheck-page-shell .member-card-hint .status-chip {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  .recheck-page-shell .member-card-status {
    gap: 4px !important;
    padding: 8px 10px !important;
    border-radius: 14px !important;
    background: rgba(243, 248, 255, 0.82) !important;
    border: 1px solid rgba(58, 116, 193, 0.1) !important;
  }

  .recheck-page-shell .member-card-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 7px !important;
  }

  .recheck-page-shell .member-card-summary-strip > * {
    min-height: 58px !important;
    padding: 9px 10px !important;
    border-radius: 14px !important;
  }

  .recheck-page-shell .member-card-grid {
    gap: 8px !important;
  }

  .recheck-page-shell .member-card-editor {
    gap: 8px !important;
  }

  .recheck-page-shell .member-card-editor summary {
    padding: 10px 11px !important;
    border-radius: 14px !important;
  }

  .recheck-page-shell .member-card-editor summary span {
    font-size: 10px !important;
  }

  .recheck-page-shell .member-card-editor summary strong {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  .recheck-page-shell .member-card-editor-body {
    gap: 8px !important;
  }

  .recheck-page-shell .member-card-section {
    gap: 7px !important;
    padding: 10px !important;
    border-radius: 15px !important;
  }

  .recheck-page-shell .member-card-section h4 {
    font-size: 11px !important;
    letter-spacing: 0.05em !important;
  }

  .recheck-page-shell .member-card-section .field-grid,
  .recheck-page-shell .member-card-section .field-pair-list,
  .recheck-page-shell .member-card-section .executor-grid {
    gap: 7px !important;
  }

  .recheck-page-shell .member-card-section label,
  .recheck-page-shell .member-card-section .field-row {
    gap: 4px !important;
  }

  .recheck-page-shell .member-card-section input,
  .recheck-page-shell .member-card-section select,
  .recheck-page-shell .member-card-section textarea {
    min-height: 40px !important;
    height: 40px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
  }

  .recheck-page-shell .member-card-section textarea {
    min-height: 72px !important;
    height: auto !important;
  }

  .recheck-page-shell .member-card-actions {
    gap: 8px !important;
    padding-top: 2px !important;
  }

  .recheck-page-shell .member-card-actions-main {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 8px !important;
    align-items: stretch !important;
  }

  .recheck-page-shell .member-card-actions-main .member-handled-check {
    grid-column: 1 / -1 !important;
    justify-content: flex-start !important;
    min-height: 38px !important;
    padding: 0 2px !important;
  }

  .recheck-page-shell .member-card-actions-main button,
  .recheck-page-shell .member-card-actions-main .link-button,
  .recheck-page-shell .member-card-actions-meta summary,
  .recheck-page-shell .member-card-actions-meta > * {
    min-height: 42px !important;
    border-radius: 14px !important;
  }

  .recheck-page-shell .member-card-actions-main button,
  .recheck-page-shell .member-card-actions-main .link-button {
    width: 100% !important;
    justify-content: center !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }

  .recheck-page-shell .member-card-actions-meta {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    align-items: stretch !important;
  }

  .recheck-page-shell .member-card-actions-meta .member-save-chip {
    min-height: 40px !important;
    padding: 9px 11px !important;
    border-radius: 14px !important;
  }

  .recheck-page-shell .member-card-detail-link {
    width: 100% !important;
    min-height: 40px !important;
  }

  .recheck-page-shell .member-card-actions-meta .member-more-actions {
    min-width: 0 !important;
  }

  .recheck-page-shell .member-card-actions-meta .member-more-actions summary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    padding: 0 14px !important;
    background: rgba(238, 246, 255, 0.92) !important;
  }

  .recheck-page-shell .member-pagination {
    gap: 9px !important;
    padding: 11px !important;
    border-radius: 18px !important;
    margin-top: 2px !important;
    margin-bottom: 10px !important;
  }

  .recheck-page-shell .member-pagination-hero {
    padding: 11px !important;
    border-radius: 15px !important;
  }

  .recheck-page-shell .member-pagination-hero strong {
    font-size: 15px !important;
  }

  .recheck-page-shell .member-page-size,
  .recheck-page-shell .member-page-size-bottom {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    align-items: stretch !important;
  }

  .recheck-page-shell .member-page-size > span:first-child,
  .recheck-page-shell .member-page-size-bottom > span:first-child {
    grid-column: 1 / -1 !important;
    padding-left: 2px !important;
    color: #657d99 !important;
    font-size: 11px !important;
    font-weight: 900 !important;
    letter-spacing: 0.04em !important;
  }

  .recheck-page-shell .member-page-size-option {
    min-height: 42px !important;
    padding: 8px 6px !important;
    font-size: 11px !important;
  }

  .recheck-page-shell .member-pagination-actions {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .recheck-page-shell .member-pagination-actions span {
    order: -1 !important;
    min-height: auto !important;
    min-width: 0 !important;
    padding: 2px 0 !important;
    font-size: 12px !important;
    line-height: 1.35 !important;
  }

  .recheck-page-shell .member-pagination-actions button {
    min-height: 42px !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    font-weight: 900 !important;
  }
}

/* 20260530mobiledetailentryfix1: stabilize /mine and /messages landing states, and unify member-detail mobile first screen. */
body.home-open-route-active[data-home-open-route="mine"] #employee-workbench-panel.hidden,
body.home-open-route-active[data-home-open-route="messages"] #support-grid-section.hidden,
body.home-open-route-active[data-home-open-route="messages"] #global-search-panel.hidden,
body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel.hidden {
  display: block !important;
}

body.home-open-route-active[data-home-open-route="messages"] #support-grid-section.hidden {
  display: grid !important;
}

@media (max-width: 560px) {
  .member-detail-page {
    padding: 12px !important;
    border-radius: 18px !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
  }

  .member-detail-page .modal-head,
  .member-detail-head {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    align-items: stretch !important;
  }

  .member-detail-head > .ghost.compact,
  .member-detail-page .modal-head > .ghost.compact,
  .member-detail-head > .link-button,
  .member-detail-page .modal-head > .link-button {
    width: 100% !important;
    min-height: 42px !important;
    justify-content: center !important;
  }

  .member-detail-head h3,
  .member-detail-page .modal-head h3 {
    font-size: 20px !important;
    line-height: 1.18 !important;
    margin: 0 !important;
  }

  .member-detail-head .eyebrow,
  .member-detail-page .modal-head .eyebrow {
    margin-bottom: 2px !important;
    font-size: 11px !important;
    letter-spacing: 0.08em !important;
  }

  .member-appointment-corner,
  .member-core-cell .member-appointment-corner.is-inline {
    padding: 6px 11px !important;
    border-radius: 999px !important;
    font-size: 11px !important;
  }

  .member-detail-actions {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .member-detail-actions > * {
    min-height: 42px !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .member-detail-kpis {
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
  }

  .member-detail-kpis article {
    min-height: 78px !important;
    padding: 11px !important;
    border-radius: 15px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 255, 0.9)) !important;
    border: 1px solid rgba(58, 116, 193, 0.12) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
  }

  .member-detail-kpis span {
    font-size: 10px !important;
    color: #6d87a5 !important;
  }

  .member-detail-kpis strong {
    font-size: 16px !important;
    color: #16385f !important;
  }

  .member-service-flow-panel {
    gap: 10px !important;
    padding: 12px !important;
    border-radius: 18px !important;
  }

  .member-service-flow-panel h4 {
    font-size: 15px !important;
    margin-bottom: 3px !important;
  }

  .member-service-flow-panel p {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  .member-service-flow {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .member-flow-step {
    min-height: 0 !important;
    padding: 10px 11px !important;
    border-radius: 14px !important;
    gap: 3px !important;
    text-align: left !important;
  }

  .member-flow-step strong {
    font-size: 13px !important;
  }

  .member-flow-step span {
    font-size: 11px !important;
    line-height: 1.45 !important;
  }

  .member-flow-benefit-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .member-flow-benefit-actions > * {
    width: 100% !important;
    min-height: 40px !important;
  }

  .member-detail-grid {
    gap: 9px !important;
  }

  .member-detail-grid section {
    padding: 12px !important;
    border-radius: 16px !important;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 250, 255, 0.93)) !important;
    border: 1px solid rgba(58, 116, 193, 0.11) !important;
  }

  .member-detail-grid h4 {
    font-size: 13px !important;
    margin-bottom: 8px !important;
    color: #163b68 !important;
  }

  .member-detail-list {
    gap: 8px !important;
  }

  .member-detail-list div {
    gap: 3px !important;
    padding: 0 0 7px !important;
  }

  .member-detail-list dt {
    font-size: 10px !important;
    color: #728baa !important;
  }

  .member-detail-list dd {
    font-size: 13px !important;
    line-height: 1.45 !important;
    color: #183b63 !important;
  }

  .phone-action-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .phone-action-value {
    grid-column: 1 / -1 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  .phone-action-row .compact,
  .phone-action-row .link-button {
    min-height: 36px !important;
    justify-content: center !important;
    padding: 6px 8px !important;
    border-radius: 10px !important;
  }

  .member-related-bb {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .member-related-bb p {
    margin-bottom: 0 !important;
    font-size: 12px !important;
  }

  .member-related-bb .link-button {
    width: 100% !important;
    min-height: 40px !important;
    justify-content: center !important;
  }

  .member-detail-edit-panel {
    padding: 12px !important;
    border-radius: 16px !important;
    gap: 8px !important;
  }

  .member-detail-edit-groups {
    gap: 8px !important;
  }

  .member-detail-edit-group {
    padding: 11px !important;
    border-radius: 16px !important;
    gap: 8px !important;
  }

  .member-detail-edit-group-head {
    gap: 3px !important;
  }

  .member-detail-edit-group-head strong {
    font-size: 14px !important;
  }

  .member-detail-edit-group-head span {
    font-size: 12px !important;
    line-height: 1.48 !important;
  }

  .member-detail-edit-head {
    gap: 3px !important;
  }

  .member-detail-edit-head strong {
    font-size: 15px !important;
  }

  .member-detail-edit-head span {
    font-size: 12px !important;
    line-height: 1.45 !important;
  }

  .member-detail-edit-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .member-detail-edit-grid label,
  .member-detail-edit-grid label.wide {
    grid-column: 1 / -1 !important;
  }

  .member-detail-edit-grid label > span {
    font-size: 11px !important;
    color: #6a84a3 !important;
  }

  .member-log-item {
    padding-left: 13px !important;
  }

  .member-log-item::before {
    top: 14px !important;
  }

  .member-log-item p {
    font-size: 12px !important;
    line-height: 1.52 !important;
  }
}

/* 20260530crmprofilemobilepolish1: unify mobile CRM overview/detail hierarchy with the recheck detail style. */
@media (max-width: 560px) {
  body.home-compact-mode #crm-shell-section,
  body.home-open-route-active .crm-shell {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  body.home-compact-mode #crm-overview-panel,
  body.home-compact-mode #crm-detail-panel,
  body.home-open-route-active #crm-overview-panel,
  body.home-open-route-active #crm-detail-panel {
    padding: 14px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(58, 116, 193, 0.14) !important;
    background:
      radial-gradient(circle at 100% 0%, rgba(45, 140, 240, 0.09), transparent 28%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.94)) !important;
    box-shadow:
      0 16px 34px rgba(18, 64, 128, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  }

  body.home-compact-mode #crm-overview-panel .panel-head,
  body.home-compact-mode #crm-detail-panel .panel-head,
  body.home-open-route-active #crm-overview-panel .panel-head,
  body.home-open-route-active #crm-detail-panel .panel-head {
    display: grid !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
  }

  body.home-compact-mode #crm-overview-panel .panel-head h2,
  body.home-compact-mode #crm-detail-panel .panel-head h2,
  body.home-open-route-active #crm-overview-panel .panel-head h2,
  body.home-open-route-active #crm-detail-panel .panel-head h2 {
    font-size: 21px !important;
    line-height: 1.18 !important;
    letter-spacing: -0.03em !important;
  }

  body.home-compact-mode #crm-overview-panel .panel-head p,
  body.home-compact-mode #crm-detail-panel .panel-head p,
  body.home-open-route-active #crm-overview-panel .panel-head p,
  body.home-open-route-active #crm-detail-panel .panel-head p {
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #5d7693 !important;
  }

  .crm-toolbar {
    padding: 12px !important;
    border-radius: 16px !important;
    display: grid !important;
    gap: 10px !important;
    background: rgba(240, 247, 255, 0.84) !important;
  }

  .crm-search,
  .crm-toolbar .crm-search {
    display: grid !important;
    gap: 5px !important;
  }

  .crm-search span,
  .crm-toolbar-label,
  .crm-toolbar-label.subtle {
    font-size: 11px !important;
    letter-spacing: 0.06em !important;
    color: #6a84a3 !important;
  }

  .crm-search input,
  .crm-toolbar input,
  .crm-toolbar select {
    min-height: 42px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
  }

  .crm-shortcut-row {
    gap: 6px !important;
  }

  .crm-shortcut-chip {
    min-height: 36px !important;
    padding: 7px 10px !important;
    gap: 6px !important;
    border-radius: 999px !important;
  }

  .crm-shortcut-chip span {
    font-size: 12px !important;
  }

  .crm-shortcut-chip strong {
    min-width: 22px !important;
    height: 22px !important;
    font-size: 11px !important;
  }

  .saved-view-row,
  .unified-profile-links {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    padding: 11px !important;
    border-radius: 15px !important;
  }

  .saved-view-row > *,
  .unified-profile-links > * {
    width: 100% !important;
  }

  .saved-view-row .tiny,
  .unified-profile-links .tiny,
  .unified-profile-links .link-button {
    min-height: 38px !important;
    justify-content: center !important;
  }

  .crm-table {
    gap: 8px !important;
  }

  .crm-table-row {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    padding: 12px !important;
    border-radius: 16px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 249, 255, 0.93)) !important;
    border: 1px solid rgba(58, 116, 193, 0.11) !important;
  }

  .crm-table-cell {
    gap: 3px !important;
  }

  .crm-table-cell strong {
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #16385f !important;
  }

  .crm-table-cell span,
  .crm-table-cell em {
    font-size: 12px !important;
    line-height: 1.45 !important;
    color: #6982a0 !important;
  }

  .crm-mini-metrics,
  .crm-summary-grid,
  .crm-detail-grid,
  .unified-profile-grid,
  .customer-mini-grid,
  .customer-panorama-sections,
  .xiaogu-chat-summary-grid,
  .customer-mini-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .crm-mini-metrics article,
  .crm-summary-grid div,
  .crm-detail-grid div,
  .unified-profile-grid article,
  .customer-panorama-section,
  .customer-bb-card,
  .crm-copy-block {
    padding: 12px !important;
    border-radius: 16px !important;
  }

  .crm-mini-metrics b,
  .crm-summary-grid strong,
  .crm-detail-grid strong,
  .unified-profile-grid strong {
    font-size: 17px !important;
    line-height: 1.2 !important;
  }

  .crm-mini-metrics span,
  .crm-summary-grid span,
  .crm-detail-grid span,
  .unified-profile-grid span,
  .customer-mini-grid span {
    font-size: 11px !important;
    color: #6b84a2 !important;
  }

  .crm-detail-toolbar {
    display: grid !important;
    gap: 9px !important;
    margin-bottom: 12px !important;
  }

  .crm-detail-tabs,
  .crm-detail-actions,
  .crm-more-tabs > div {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .crm-detail-tabs button,
  .crm-detail-actions > *,
  .crm-more-tabs summary,
  .crm-more-tabs > div > * {
    width: 100% !important;
    min-height: 40px !important;
    justify-content: center !important;
  }

  .crm-copy-block pre {
    font-size: 12px !important;
    line-height: 1.6 !important;
  }

  .customer-panorama-sections,
  .unified-profile-list {
    margin-top: 10px !important;
  }

  .unified-profile-list article {
    padding: 10px 11px !important;
    border-radius: 14px !important;
  }

  .customer-bb-frame {
    height: min(52vh, 420px) !important;
    border-radius: 14px !important;
  }
}

/* 20260530remindersmobilepolish1: tighten reminder center and home activity blocks for real mobile handling. */
@media (max-width: 560px) {
  #reminders-page-root {
    padding: 14px !important;
    border-radius: 20px !important;
  }

  #reminders-page-root .panel-head {
    display: grid !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
  }

  #reminders-page-root .panel-head h2 {
    font-size: 21px !important;
    line-height: 1.18 !important;
    letter-spacing: -0.03em !important;
  }

  #reminders-page-root .panel-head p {
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #5f7895 !important;
  }

  #reminders-page-summary,
  #activity-panel-summary {
    display: grid !important;
    gap: 8px !important;
    margin-top: 0 !important;
  }

  .activity-summary {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 12px !important;
    border-radius: 18px !important;
    background:
      radial-gradient(circle at 100% 0%, rgba(45, 140, 240, 0.08), transparent 28%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(246, 250, 255, 0.94)) !important;
    border: 1px solid rgba(58, 116, 193, 0.12) !important;
  }

  .activity-summary > p {
    grid-column: auto !important;
    padding: 2px 2px 0 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: #5e7794 !important;
  }

  .activity-summary-card {
    padding: 11px 12px !important;
    border-radius: 16px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.9)) !important;
    border: 1px solid rgba(58, 116, 193, 0.11) !important;
  }

  .activity-summary-card strong {
    font-size: 22px !important;
  }

  .activity-summary-card span {
    margin-top: 6px !important;
    font-size: 11px !important;
    color: #6c85a3 !important;
  }

  .activity-filter-row,
  .activity-tabs {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
    margin-top: 0 !important;
  }

  .activity-filter-row button,
  .activity-tabs button {
    min-height: 40px !important;
    width: 100% !important;
    justify-content: center !important;
    border-radius: 12px !important;
    font-size: 12px !important;
  }

  .activity-list {
    margin-top: 12px !important;
    gap: 8px !important;
  }

  .employee-task-board,
  .reminder-manage-card,
  .employee-task-item,
  .reminder-history-panel {
    border-radius: 16px !important;
  }

  .employee-task-item,
  .reminder-manage-card {
    padding: 12px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 249, 255, 0.93)) !important;
    border: 1px solid rgba(58, 116, 193, 0.11) !important;
  }

  .employee-task-item strong,
  .reminder-manage-card strong {
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #173b64 !important;
  }

  .employee-task-item p,
  .employee-task-meta,
  .micro-copy,
  .reminder-history-head span,
  .reminder-history-item p {
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: #627b98 !important;
  }

  .employee-task-actions,
  .quick-actions,
  .capture-actions,
  .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .employee-task-actions button,
  .quick-actions > *,
  .capture-actions > *,
  .hero-actions > * {
    width: 100% !important;
    min-height: 40px !important;
    justify-content: center !important;
  }

  .quick-actions.large button.mini {
    flex: initial !important;
  }

  .reminder-manage-grid {
    gap: 8px !important;
    margin-top: 12px !important;
  }

  .reminder-assign-row {
    gap: 8px !important;
    margin-top: 10px !important;
  }

  .reminder-select-row {
    align-items: flex-start !important;
    gap: 7px !important;
  }

  .reminder-history-panel {
    margin-top: 12px !important;
    padding: 12px !important;
    background:
      linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(247, 251, 255, 0.92)) !important;
    border: 1px solid rgba(58, 116, 193, 0.1) !important;
  }

  .reminder-history-head {
    display: grid !important;
    gap: 4px !important;
    margin-bottom: 10px !important;
  }

  .reminder-history-item {
    padding: 10px 11px !important;
    border-radius: 14px !important;
  }

  .reminder-history-line {
    display: grid !important;
    gap: 5px !important;
    justify-content: stretch !important;
  }

  .employee-task-note,
  .reminder-result-note input {
    min-height: 38px !important;
    border-radius: 11px !important;
    font-size: 13px !important;
  }

  .result-box,
  #reminders-page-result {
    margin-top: 12px !important;
    padding: 12px !important;
    border-radius: 16px !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
  }
}

/* 20260530homeworkbenchmobilepolish1: unify mobile workbench hierarchy, message entry, and bottom-nav touch targets. */
@media (max-width: 560px) {
  .theme-toggle-fab,
  [data-theme-toggle] {
    display: none !important;
  }

  body.home-compact-mode .crm-main-content,
  body.home-open-route-active[data-home-open-route="mine"] .crm-main-content,
  body.home-open-route-active[data-home-open-route="messages"] .crm-main-content {
    padding: 10px 10px calc(154px + env(safe-area-inset-bottom)) !important;
    gap: 10px !important;
    scroll-padding-bottom: calc(154px + env(safe-area-inset-bottom)) !important;
  }

  body.home-compact-mode #role-workbenches,
  body.home-compact-mode #employee-workbench-panel,
  body.home-compact-mode #risk-workbench-panel,
  body.home-compact-mode #mobile-today-panel,
  body.home-open-route-active[data-home-open-route="mine"] #employee-workbench-panel,
  body.home-open-route-active[data-home-open-route="messages"] #support-grid-section,
  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel {
    margin-top: 0 !important;
  }

  body.home-compact-mode #employee-workbench-panel,
  body.home-compact-mode #risk-workbench-panel,
  body.home-compact-mode #mobile-today-panel,
  body.home-open-route-active[data-home-open-route="mine"] #employee-workbench-panel,
  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel {
    padding: 14px !important;
    border-radius: 22px !important;
    border: 1px solid rgba(58, 116, 193, 0.14) !important;
    background:
      radial-gradient(circle at 100% 0%, rgba(45, 140, 240, 0.1), transparent 28%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 249, 255, 0.94)) !important;
    box-shadow:
      0 16px 34px rgba(18, 64, 128, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
  }

  body.home-compact-mode #employee-workbench-panel .panel-head,
  body.home-compact-mode #risk-workbench-panel .panel-head,
  body.home-compact-mode #mobile-today-panel .panel-head,
  body.home-open-route-active[data-home-open-route="mine"] #employee-workbench-panel .panel-head,
  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel .panel-head {
    display: grid !important;
    gap: 6px !important;
    margin-bottom: 12px !important;
  }

  body.home-compact-mode #employee-workbench-panel .panel-head h2,
  body.home-compact-mode #risk-workbench-panel .panel-head h2,
  body.home-compact-mode #mobile-today-panel .panel-head h2,
  body.home-open-route-active[data-home-open-route="mine"] #employee-workbench-panel .panel-head h2,
  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel .panel-head h2 {
    font-size: 21px !important;
    line-height: 1.18 !important;
    letter-spacing: -0.03em !important;
  }

  body.home-compact-mode #employee-workbench-panel .panel-head p,
  body.home-compact-mode #risk-workbench-panel .panel-head p,
  body.home-compact-mode #mobile-today-panel .panel-head p,
  body.home-open-route-active[data-home-open-route="mine"] #employee-workbench-panel .panel-head p,
  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel .panel-head p {
    font-size: 12px !important;
    line-height: 1.55 !important;
    color: #5b7593 !important;
  }

  body.home-compact-mode .employee-task-board,
  body.home-compact-mode .employee-task-item,
  body.home-compact-mode .employee-work-card,
  body.home-compact-mode .workbench-entry-card,
  body.home-compact-mode .global-search-card,
  body.home-compact-mode .role-insight-card,
  body.home-open-route-active[data-home-open-route="mine"] .employee-task-board,
  body.home-open-route-active[data-home-open-route="mine"] .employee-task-item,
  body.home-open-route-active[data-home-open-route="messages"] .capture-hint {
    border-radius: 18px !important;
  }

  body.home-compact-mode .employee-task-board,
  body.home-open-route-active[data-home-open-route="mine"] .employee-task-board {
    gap: 8px !important;
    padding: 12px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 248, 255, 0.92)) !important;
    border: 1px solid rgba(58, 116, 193, 0.12) !important;
  }

  body.home-compact-mode .employee-task-item,
  body.home-compact-mode .employee-work-card,
  body.home-compact-mode .workbench-entry-card,
  body.home-compact-mode .global-search-card,
  body.home-open-route-active[data-home-open-route="mine"] .employee-task-item {
    padding: 12px !important;
    border: 1px solid rgba(58, 116, 193, 0.11) !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(245, 250, 255, 0.93)) !important;
    box-shadow:
      0 10px 22px rgba(18, 64, 128, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  }

  body.home-compact-mode .employee-task-item strong,
  body.home-compact-mode .employee-work-card strong,
  body.home-compact-mode .workbench-entry-card strong,
  body.home-open-route-active[data-home-open-route="mine"] .employee-task-item strong {
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #163b64 !important;
  }

  body.home-compact-mode .employee-task-item p,
  body.home-compact-mode .employee-task-meta,
  body.home-compact-mode .employee-work-card span,
  body.home-compact-mode .workbench-entry-meta,
  body.home-open-route-active[data-home-open-route="mine"] .employee-task-item p {
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: #647d9a !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] #support-grid-section {
    display: grid !important;
    gap: 10px !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel textarea,
  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel input,
  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel select {
    min-height: 42px !important;
    border-radius: 12px !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel textarea {
    min-height: 132px !important;
  }

  body.home-compact-mode .mobile-bottom-nav,
  body.home-open-route-active[data-home-open-route="mine"] .mobile-bottom-nav,
  body.home-open-route-active[data-home-open-route="messages"] .mobile-bottom-nav {
    left: 8px !important;
    right: 8px !important;
    bottom: max(8px, env(safe-area-inset-bottom)) !important;
    padding: 8px 8px calc(10px + env(safe-area-inset-bottom)) !important;
    gap: 6px !important;
    border: 1px solid rgba(58, 116, 193, 0.16) !important;
    border-radius: 28px !important;
    background:
      radial-gradient(circle at 50% 0%, rgba(45, 140, 240, 0.1), transparent 56%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(236, 246, 255, 0.84)) !important;
    box-shadow:
      0 -10px 28px rgba(18, 64, 128, 0.08),
      0 18px 46px rgba(18, 64, 128, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.86) !important;
    backdrop-filter: blur(20px) saturate(1.22) !important;
  }

  body.home-compact-mode .mobile-bottom-nav a,
  body.home-compact-mode .mobile-bottom-nav button,
  body.home-open-route-active[data-home-open-route="mine"] .mobile-bottom-nav a,
  body.home-open-route-active[data-home-open-route="mine"] .mobile-bottom-nav button,
  body.home-open-route-active[data-home-open-route="messages"] .mobile-bottom-nav a,
  body.home-open-route-active[data-home-open-route="messages"] .mobile-bottom-nav button {
    position: relative !important;
    z-index: 2 !important;
    min-width: 0 !important;
    min-height: 66px !important;
    gap: 4px !important;
    padding: 8px 2px 8px !important;
    border-radius: 21px !important;
    font-size: 12px !important;
    font-weight: 950 !important;
    line-height: 1.08 !important;
    touch-action: manipulation !important;
  }

  body.home-compact-mode .mobile-bottom-nav a span,
  body.home-compact-mode .mobile-bottom-nav button span,
  body.home-open-route-active[data-home-open-route="mine"] .mobile-bottom-nav a span,
  body.home-open-route-active[data-home-open-route="mine"] .mobile-bottom-nav button span,
  body.home-open-route-active[data-home-open-route="messages"] .mobile-bottom-nav a span,
  body.home-open-route-active[data-home-open-route="messages"] .mobile-bottom-nav button span {
    display: block !important;
    max-width: 100% !important;
    word-break: break-word !important;
  }

  body.home-compact-mode .mobile-bottom-nav b,
  body.home-open-route-active[data-home-open-route="mine"] .mobile-bottom-nav b,
  body.home-open-route-active[data-home-open-route="messages"] .mobile-bottom-nav b {
    right: 9px !important;
    min-width: 24px !important;
    height: 20px !important;
    font-size: 11px !important;
  }

}

/* 20260530crmprofilemobilepolish2: compress CRM profile overview/detail mobile hierarchy based on real long-page inspection. */
@media (max-width: 560px) {
  .crm-profile-hero,
  .crm-profile-detail-hero {
    padding: 13px !important;
    border-radius: 18px !important;
    gap: 9px !important;
  }

  .crm-profile-hero-copy strong,
  .crm-profile-detail-hero-copy strong {
    font-size: 18px !important;
    line-height: 1.28 !important;
  }

  .crm-profile-hero-copy p,
  .crm-profile-detail-hero-copy p {
    font-size: 12px !important;
    line-height: 1.52 !important;
  }

  .crm-profile-hero-facts,
  .crm-profile-detail-hero-facts {
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
  }

  .crm-profile-hero-facts article,
  .crm-profile-detail-hero-facts article {
    min-height: 66px !important;
    padding: 10px !important;
    border-radius: 14px !important;
  }

  .crm-profile-hero-facts strong,
  .crm-profile-detail-hero-facts strong {
    font-size: 15px !important;
  }

  .crm-profile-hero-focus {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .crm-profile-hero-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
  }

  .crm-profile-hero-actions > :first-child {
    grid-column: 1 / -1 !important;
  }

  .crm-profile-hero-actions > * {
    min-height: 38px !important;
    justify-content: center !important;
  }

  .crm-profile-detail-hero-tags {
    gap: 6px !important;
  }

  .recheck-crm-profile-panel,
  .crm-profile-detail-page {
    padding: 14px !important;
    border-radius: 22px !important;
    border: 1px solid rgba(58, 116, 193, 0.14) !important;
    background:
      radial-gradient(circle at 100% 0%, rgba(45, 140, 240, 0.1), transparent 28%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 249, 255, 0.94)) !important;
    box-shadow:
      0 16px 34px rgba(18, 64, 128, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
  }

  .crm-profile-command-bar {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .crm-profile-mobile-guide {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-top: 8px !important;
  }

  .crm-profile-mobile-guide-copy,
  .crm-profile-mobile-guide-focus,
  .crm-profile-mobile-guide-facts article,
  .crm-profile-pagination-guide {
    padding: 11px 12px !important;
    border-radius: 15px !important;
  }

  .crm-profile-mobile-guide-copy strong,
  .crm-profile-mobile-guide-focus strong,
  .crm-profile-mobile-guide-facts strong,
  .crm-profile-pagination-guide strong {
    font-size: 14px !important;
  }

  .crm-profile-mobile-guide-copy p,
  .crm-profile-mobile-guide-focus p,
  .crm-profile-pagination-guide p {
    font-size: 12px !important;
    line-height: 1.52 !important;
  }

  .crm-profile-mobile-guide-facts {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .member-table-mobile-guide {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding-bottom: 4px !important;
  }

  .member-table-mobile-guide-copy,
  .member-table-mobile-guide-facts article {
    padding: 11px 12px !important;
    border-radius: 15px !important;
  }

  .member-table-mobile-guide-copy strong,
  .member-table-mobile-guide-facts strong {
    font-size: 14px !important;
  }

  .member-table-mobile-guide-copy p {
    font-size: 12px !important;
    line-height: 1.52 !important;
  }

  .member-table-mobile-guide-facts {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .crm-profile-command-bar label {
    padding: 11px 12px !important;
    border-radius: 16px !important;
    background:
      linear-gradient(180deg, rgba(248, 252, 255, 0.96), rgba(241, 248, 255, 0.9)) !important;
  }

  .crm-profile-search-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
  }

  .crm-profile-search-actions button {
    min-height: 40px !important;
    width: 100% !important;
    justify-content: center !important;
  }

  .crm-profile-mini-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .crm-profile-mini-stats span {
    min-height: 68px !important;
    padding: 10px 11px !important;
    border-radius: 15px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 249, 255, 0.92)) !important;
    box-shadow:
      0 10px 22px rgba(18, 64, 128, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  }

  .crm-profile-mini-stats b {
    font-size: 19px !important;
    color: #163b64 !important;
  }

  .selected-crm-profile-card {
    display: grid !important;
    gap: 10px !important;
    padding: 13px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(58, 116, 193, 0.12) !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 247, 255, 0.93)) !important;
    box-shadow:
      0 12px 24px rgba(18, 64, 128, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  }

  .selected-crm-profile-card > div:first-child {
    display: grid !important;
    gap: 5px !important;
  }

  .selected-crm-profile-card strong {
    font-size: 16px !important;
    line-height: 1.35 !important;
    color: #14365d !important;
  }

  .selected-crm-profile-card p,
  .selected-crm-profile-card span {
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: #66809d !important;
  }

  .selected-crm-profile-card .recheck-crm-row-actions {
    grid-template-columns: 1fr !important;
  }

  .selected-crm-profile-card .recheck-crm-row-actions > * {
    min-height: 38px !important;
  }

  .recheck-crm-table-wrap {
    overflow: visible !important;
  }

  .recheck-crm-table tr {
    display: grid !important;
    gap: 2px !important;
    margin-bottom: 8px !important;
    padding: 11px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(58, 116, 193, 0.12) !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.93)) !important;
    box-shadow:
      0 10px 22px rgba(18, 64, 128, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  }

  .recheck-crm-table tr.is-selected-crm {
    border-color: rgba(45, 140, 240, 0.26) !important;
    background:
      radial-gradient(circle at 100% 0%, rgba(45, 140, 240, 0.12), transparent 34%),
      linear-gradient(180deg, rgba(247, 252, 255, 0.99), rgba(236, 246, 255, 0.95)) !important;
  }

  .recheck-crm-table td {
    display: grid !important;
    gap: 3px !important;
    padding: 7px 0 !important;
    border-bottom: 1px dashed rgba(58, 116, 193, 0.1) !important;
  }

  .recheck-crm-table td:last-child {
    border-bottom: 0 !important;
    padding-bottom: 2px !important;
  }

  .recheck-crm-table td::before {
    content: attr(data-mobile-label) !important;
    display: block !important;
    font-size: 10px !important;
    font-weight: 900 !important;
    letter-spacing: 0.08em !important;
    text-transform: uppercase !important;
    color: #7891ac !important;
  }

  .recheck-crm-table td strong {
    font-size: 14px !important;
    line-height: 1.4 !important;
    color: #16385f !important;
  }

  .recheck-crm-table td span {
    margin-top: 0 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: #6a84a1 !important;
  }

  .crm-match-chip {
    min-height: 28px !important;
    padding: 5px 9px !important;
    font-size: 11px !important;
  }

  .recheck-crm-row-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
    justify-content: stretch !important;
  }

  .recheck-crm-row-actions > * {
    width: 100% !important;
    min-height: 38px !important;
    justify-content: center !important;
  }

  .recheck-crm-row-actions > *:last-child:nth-child(3) {
    grid-column: 1 / -1 !important;
  }

  .crm-profile-pagination {
    display: grid !important;
    gap: 10px !important;
    margin-top: 4px !important;
  }

  .crm-profile-page-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
  }

  .crm-profile-page-actions span {
    grid-column: 1 / -1 !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: #6a84a1 !important;
  }

  .crm-profile-pagination-dock {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    margin-top: 8px !important;
  }

  .crm-profile-pagination-dock > * {
    min-height: 40px !important;
  }

  .crm-profile-detail-page .modal-head,
  .crm-profile-detail-page .profile-detail-head {
    display: grid !important;
    gap: 8px !important;
    align-items: start !important;
    margin-bottom: 2px !important;
  }

  .crm-profile-detail-page .profile-detail-head h3,
  .crm-profile-detail-page .modal-head h3 {
    font-size: 21px !important;
    line-height: 1.16 !important;
    letter-spacing: -0.03em !important;
  }

  .crm-profile-detail-page .profile-detail-head p,
  .crm-profile-detail-page .modal-head p {
    font-size: 12px !important;
    line-height: 1.55 !important;
    color: #607998 !important;
  }

  .profile-detail-kpis {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-top: 2px !important;
  }

  .profile-detail-kpis article:nth-child(5) {
    grid-column: 1 / -1 !important;
    min-height: 72px !important;
  }

  .profile-detail-kpis article {
    min-height: 88px !important;
    padding: 12px !important;
    border-radius: 16px !important;
    align-content: start !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.92)) !important;
    border: 1px solid rgba(58, 116, 193, 0.11) !important;
  }

  .profile-detail-kpis article strong {
    font-size: 18px !important;
    line-height: 1.15 !important;
  }

  .profile-detail-kpis article span,
  .profile-detail-kpis article p {
    font-size: 11px !important;
    line-height: 1.45 !important;
    color: #6983a1 !important;
  }

  .profile-followup-panel {
    padding: 13px !important;
    gap: 10px !important;
    border-radius: 18px !important;
  }

  .profile-followup-presets {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
  }

  .profile-followup-presets .ghost.compact {
    min-height: 38px !important;
    justify-content: center !important;
    border-radius: 12px !important;
  }

  .profile-followup-form {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  .profile-followup-form label {
    gap: 5px !important;
    font-size: 12px !important;
  }

  .profile-followup-form input,
  .profile-followup-form textarea {
    min-height: 42px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
  }

  .profile-followup-form textarea {
    min-height: 116px !important;
  }

  .profile-followup-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .profile-followup-actions button {
    width: 100% !important;
    min-height: 42px !important;
  }

  .profile-followup-hint {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  .profile-followup-route-bar {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .profile-followup-route-bar > * {
    width: 100% !important;
    min-height: 40px !important;
    justify-content: center !important;
  }

  .detail-mobile-guide,
  .member-workbench-guide {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
    padding: 13px !important;
    border-radius: 18px !important;
  }

  .detail-mobile-guide-copy strong {
    font-size: 16px !important;
  }

  .detail-mobile-guide-copy p {
    font-size: 12px !important;
    line-height: 1.56 !important;
  }

  .detail-mobile-guide-actions {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .detail-mobile-guide-actions > * {
    min-height: 40px !important;
  }

  .detail-next-strip {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-top: 10px !important;
  }

  .detail-next-strip article {
    padding: 11px 12px !important;
    border-radius: 15px !important;
  }

  .detail-next-strip strong {
    font-size: 14px !important;
  }

  .detail-next-strip p {
    font-size: 12px !important;
    line-height: 1.52 !important;
  }

  .profile-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  .profile-detail-card,
  .profile-bb-panel,
  .profile-payment-panel {
    padding: 13px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(58, 116, 193, 0.11) !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.93)) !important;
    box-shadow:
      0 10px 22px rgba(18, 64, 128, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  }

  .profile-detail-list {
    gap: 8px !important;
  }

  .profile-detail-list > div {
    padding: 10px 11px !important;
    border-radius: 14px !important;
    background:
      linear-gradient(180deg, rgba(248, 252, 255, 0.96), rgba(242, 247, 255, 0.9)) !important;
    border: 1px solid rgba(58, 116, 193, 0.09) !important;
  }

  .profile-detail-list dt {
    font-size: 11px !important;
    color: #7891ad !important;
    letter-spacing: 0.06em !important;
  }

  .profile-detail-list dd {
    margin-top: 5px !important;
    font-size: 13px !important;
    line-height: 1.55 !important;
    color: #173b64 !important;
  }

  .profile-mini-list {
    gap: 8px !important;
  }

  .profile-mini-list article {
    padding: 10px 11px !important;
    border-radius: 14px !important;
    border: 1px solid rgba(58, 116, 193, 0.09) !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(244, 249, 255, 0.92)) !important;
  }

  .profile-mini-list article strong {
    font-size: 13px !important;
    line-height: 1.45 !important;
  }

  .profile-log-list {
    gap: 8px !important;
  }

  .profile-log-item {
    padding-left: 13px !important;
  }

  .profile-log-item::before {
    top: 14px !important;
  }

  .profile-mini-list article span,
  .profile-mini-list article p,
  .profile-archive-note span {
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: #64809e !important;
  }

  .profile-detail-header-actions {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .profile-detail-back-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 42px !important;
    padding: 11px 13px !important;
    border: 1px solid rgba(45, 140, 240, 0.18) !important;
    border-radius: 14px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 255, 0.93)) !important;
    color: #1452aa !important;
    font-size: 14px !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    box-shadow:
      0 10px 24px rgba(18, 64, 128, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
    touch-action: manipulation !important;
  }

  .crm-profile-detail-page .phone-action-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
  }

  .crm-profile-detail-page .phone-action-value {
    grid-column: 1 / -1 !important;
  }

  .wecom-profile-card .employee-work-card:last-child,
  .wecom-profile-details summary,
  .wecom-profile-section .tag-row,
  [data-openclaw-generate],
  [data-open-wecom-tags],
  [data-wecom-remark-save],
  [data-wecom-tag-add],
  [data-wecom-tag-remove] {
    display: none !important;
  }

  .unified-profile-links,
  .profile-bb-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    margin-top: 10px !important;
  }

  .unified-profile-links > *,
  .profile-bb-actions > * {
    width: 100% !important;
    min-height: 40px !important;
    justify-content: center !important;
  }

  .profile-section-toggle-group {
    justify-content: stretch !important;
    gap: 7px !important;
  }

  .profile-section-toggle-group .tag,
  .profile-section-toggle-group .ghost.compact {
    min-height: 36px !important;
  }

  .profile-collapsed-hint {
    margin-top: 10px !important;
    padding: 11px 12px !important;
    border-radius: 14px !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
  }

  .profile-bb-summary,
  .profile-bb-two-col {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .profile-bb-summary article,
  .profile-bb-card {
    padding: 12px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(58, 116, 193, 0.1) !important;
    background:
      linear-gradient(180deg, rgba(248, 252, 255, 0.97), rgba(242, 247, 255, 0.92)) !important;
  }

  .profile-bb-summary article strong {
    font-size: 19px !important;
    line-height: 1.2 !important;
  }

  .profile-bb-list {
    gap: 8px !important;
  }

  .profile-bb-list article {
    padding: 10px 11px !important;
    border-radius: 14px !important;
  }

  .profile-bb-table-wrap {
    border-radius: 16px !important;
  }

  .profile-bb-table {
    min-width: 720px !important;
  }
}

/* 20260530membercreatepolish1: unify create-member and member-detail mobile flow, form density, and action rhythm. */
@media (max-width: 560px) {
  .member-detail-head {
    padding: 2px 0 0 !important;
  }

  .member-detail-hero {
    gap: 10px !important;
    padding: 12px !important;
    border-radius: 18px !important;
  }

  .member-detail-hero-main {
    gap: 8px !important;
  }

  .member-detail-hero-copy strong {
    font-size: 18px !important;
    line-height: 1.28 !important;
  }

  .member-detail-hero-copy p {
    font-size: 12px !important;
    line-height: 1.56 !important;
  }

  .member-detail-hero-tags {
    gap: 6px !important;
  }

  .member-detail-actions {
    gap: 8px !important;
  }

  .member-detail-action-group {
    padding: 11px 12px !important;
    border-radius: 16px !important;
  }

  .member-detail-action-group > span {
    font-size: 11px !important;
    letter-spacing: 0.06em !important;
  }

  .member-detail-action-grid {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .member-detail-action-grid > * {
    min-height: 40px !important;
    justify-content: center !important;
  }

  .member-detail-next-strip {
    margin-top: 2px !important;
  }

  .member-detail-next-strip article:last-child {
    display: none !important;
  }

  .create-member-page,
  .create-member-form-card,
  .member-detail-page {
    padding: 12px !important;
    border-radius: 20px !important;
    gap: 12px !important;
    background:
      radial-gradient(circle at 100% 0%, rgba(45, 140, 240, 0.11), transparent 28%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 250, 255, 0.94)) !important;
    box-shadow:
      0 18px 38px rgba(18, 64, 128, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.84) !important;
  }

  .create-member-form-card .modal-head,
  .member-detail-page .modal-head,
  .member-detail-head {
    display: grid !important;
    gap: 9px !important;
    align-items: start !important;
  }

  .create-member-form-card .modal-head h3,
  .member-detail-page .modal-head h3,
  .member-detail-head h3 {
    font-size: 22px !important;
    line-height: 1.2 !important;
    letter-spacing: -0.03em !important;
    margin: 0 !important;
  }

  .create-page-subtitle,
  .create-member-form-card .modal-head p,
  .member-detail-page .modal-head p,
  .member-detail-head p {
    font-size: 12px !important;
    line-height: 1.55 !important;
    color: #607998 !important;
  }

  .create-member-form-card .modal-head .link-button,
  .member-detail-page .modal-head .link-button,
  .member-detail-head > .link-button,
  .member-detail-head > .ghost.compact {
    width: 100% !important;
    min-height: 42px !important;
    justify-content: center !important;
  }

  .create-page-hero {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-top: 2px !important;
  }

  .create-page-hero-main,
  .create-page-hero-side {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    padding: 12px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(58, 116, 193, 0.12) !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.92)) !important;
    box-shadow:
      0 10px 22px rgba(18, 64, 128, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  }

  .create-hero-chip {
    min-height: 0 !important;
    padding: 11px 12px !important;
    border-radius: 15px !important;
    gap: 5px !important;
  }

  .create-hero-chip span {
    font-size: 11px !important;
    letter-spacing: 0.05em !important;
    color: #728baa !important;
  }

  .create-hero-chip strong {
    font-size: 16px !important;
    line-height: 1.35 !important;
  }

  .create-helper-badge {
    min-height: 30px !important;
    font-size: 11px !important;
    font-weight: 900 !important;
  }

  .create-page-hero-side p {
    font-size: 12px !important;
    line-height: 1.55 !important;
  }

  .create-page-hero-side .link-button {
    width: 100% !important;
    min-height: 40px !important;
    justify-content: center !important;
  }

  .create-member-sections {
    gap: 9px !important;
  }

  .create-member-section {
    gap: 10px !important;
    padding: 12px !important;
    border-radius: 18px !important;
    border: 1px solid rgba(58, 116, 193, 0.11) !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.93)) !important;
    box-shadow:
      0 10px 22px rgba(18, 64, 128, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  }

  .create-section-title {
    display: grid !important;
    gap: 3px !important;
    padding-bottom: 8px !important;
  }

  .create-section-title strong {
    font-size: 15px !important;
    color: #163b68 !important;
  }

  .create-section-title span {
    text-align: left !important;
    font-size: 12px !important;
    line-height: 1.45 !important;
    color: #66809d !important;
  }

  .create-member-form-card .create-member-grid,
  .create-member-form-card .create-member-grid-primary,
  .create-member-form-card .create-member-grid-money,
  .member-detail-edit-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .create-member-grid label,
  .member-detail-edit-grid label {
    gap: 5px !important;
    font-size: 12px !important;
  }

  .create-member-grid input,
  .create-member-grid select,
  .create-member-grid textarea,
  .member-detail-edit-grid input,
  .member-detail-edit-grid select,
  .member-detail-edit-grid textarea {
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 14px !important;
    border-radius: 12px !important;
    font-size: 13px !important;
  }

  .create-member-grid textarea,
  .member-detail-edit-grid textarea {
    min-height: 108px !important;
    height: auto !important;
    padding-top: 12px !important;
  }

  .create-notes-field,
  .member-detail-edit-grid label.wide {
    grid-column: 1 / -1 !important;
  }

  .create-service-picker {
    gap: 7px !important;
    font-size: 12px !important;
  }

  .create-service-card-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .create-service-card {
    min-height: 72px !important;
    padding: 10px 11px !important;
    border-radius: 16px !important;
    gap: 4px !important;
  }

  .create-service-card strong {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  .create-service-card span {
    font-size: 11px !important;
    line-height: 1.4 !important;
  }

  .create-bottom-note {
    display: grid !important;
    gap: 7px !important;
    padding: 11px 12px !important;
    border-radius: 16px !important;
    background:
      linear-gradient(180deg, rgba(248, 252, 255, 0.96), rgba(242, 247, 255, 0.9)) !important;
  }

  .create-bottom-note p {
    font-size: 12px !important;
    line-height: 1.55 !important;
  }

  .create-bottom-note .link-button {
    width: 100% !important;
    min-height: 40px !important;
    justify-content: center !important;
  }

  .create-error-box {
    padding: 11px 12px !important;
    border-radius: 14px !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  .create-member-form-card .modal-actions {
    position: sticky !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    z-index: 6 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin: 2px 0 0 !important;
    padding: 10px !important;
    border: 1px solid rgba(58, 116, 193, 0.14) !important;
    border-radius: 18px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.92)) !important;
    box-shadow:
      0 14px 30px rgba(18, 64, 128, 0.12),
      inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
    backdrop-filter: blur(14px) !important;
  }

  .create-member-form-card .modal-actions > * {
    width: 100% !important;
    min-height: 44px !important;
    justify-content: center !important;
  }

  .member-detail-page {
    margin-bottom: 12px !important;
  }

  .member-appointment-corner,
  .member-core-cell .member-appointment-corner.is-inline {
    position: static !important;
    justify-self: start !important;
    min-width: 0 !important;
    width: fit-content !important;
    padding: 7px 12px !important;
    font-size: 11px !important;
    line-height: 1.1 !important;
    margin-bottom: 2px !important;
  }

  .member-detail-actions {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .member-detail-actions > * {
    width: 100% !important;
    min-height: 42px !important;
    justify-content: center !important;
  }

  .member-detail-kpis {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .member-detail-kpis article {
    padding: 12px !important;
    border-radius: 16px !important;
    min-height: 82px !important;
    align-content: start !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 248, 255, 0.92)) !important;
    border: 1px solid rgba(58, 116, 193, 0.11) !important;
  }

  .member-detail-kpis span {
    font-size: 10px !important;
    line-height: 1.35 !important;
    color: #7390ad !important;
  }

  .member-detail-kpis strong {
    font-size: 16px !important;
    line-height: 1.18 !important;
    color: #16385f !important;
  }

  .member-service-flow-panel,
  .member-detail-edit-panel,
  .member-detail-grid section {
    padding: 12px !important;
    border-radius: 17px !important;
    border: 1px solid rgba(58, 116, 193, 0.11) !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.93)) !important;
    box-shadow:
      0 10px 22px rgba(18, 64, 128, 0.07),
      inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  }

  .member-service-flow-panel {
    gap: 10px !important;
  }

  .member-service-flow-panel h4,
  .member-detail-grid h4,
  .member-detail-edit-head strong {
    font-size: 14px !important;
    color: #163b68 !important;
  }

  .member-service-flow-panel p,
  .member-detail-edit-head span,
  .member-related-bb p {
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: #647f9c !important;
  }

  .member-service-flow {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .member-flow-step {
    min-height: 0 !important;
    padding: 10px 11px !important;
    border-radius: 14px !important;
    gap: 3px !important;
  }

  .member-flow-step strong {
    font-size: 13px !important;
  }

  .member-flow-step span {
    font-size: 11px !important;
    line-height: 1.45 !important;
  }

  .member-flow-benefit-actions,
  .member-related-bb {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .member-flow-benefit-actions > *,
  .member-related-bb .link-button {
    width: 100% !important;
    min-height: 40px !important;
    justify-content: center !important;
  }

  .member-detail-grid {
    grid-template-columns: 1fr !important;
    gap: 9px !important;
  }

  .member-detail-list {
    gap: 9px !important;
  }

  .member-detail-list div {
    grid-template-columns: 1fr !important;
    gap: 3px !important;
    padding: 0 0 8px !important;
    border-bottom: 1px dashed rgba(58, 116, 193, 0.12) !important;
  }

  .member-detail-list div:last-child {
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
  }

  .member-detail-list dt {
    font-size: 10px !important;
    color: #748dad !important;
    letter-spacing: 0.05em !important;
  }

  .member-detail-list dd {
    font-size: 13px !important;
    line-height: 1.5 !important;
    color: #183b63 !important;
  }

  .phone-action-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 6px !important;
    width: 100% !important;
  }

  .phone-action-value {
    grid-column: 1 / -1 !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

.phone-action-row .compact,
.phone-action-row .link-button {
  min-height: 36px !important;
  justify-content: center !important;
  padding: 6px 8px !important;
  border-radius: 10px !important;
  }
}

/* 20260531homeroutemobilevisual1: tighten the real-phone first screen for home/mine/messages so each route feels like a complete page. */
@media (max-width: 560px) {
  body.home-compact-mode .crm-main-content,
  body.home-open-route-active[data-home-open-route="mine"] .crm-main-content,
  body.home-open-route-active[data-home-open-route="messages"] .crm-main-content {
    background:
      radial-gradient(circle at 50% -8%, rgba(45, 140, 240, 0.12), transparent 42%),
      linear-gradient(180deg, #f7fbff 0%, #edf5ff 100%) !important;
  }

  body.home-compact-mode .topbar-summary,
  body.home-open-route-active[data-home-open-route="mine"] .topbar-summary,
  body.home-open-route-active[data-home-open-route="messages"] .topbar-summary {
    border-radius: 16px !important;
    border: 1px solid rgba(58, 116, 193, 0.12) !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(239, 247, 255, 0.9)) !important;
    color: #30597f !important;
    box-shadow:
      0 10px 24px rgba(18, 64, 128, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  }

  body.home-compact-mode .quick-link-strip {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
  }

  .mobile-route-hub {
    gap: 12px !important;
    padding: 14px !important;
    border-radius: 24px !important;
  }

  .mobile-route-hub-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 9px !important;
  }

  body.home-compact-mode .hero {
    padding: 18px 16px !important;
    gap: 14px !important;
    border-radius: 24px !important;
    background:
      radial-gradient(circle at 0% 0%, rgba(45, 140, 240, 0.14), transparent 34%),
      linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(236, 246, 255, 0.94)) !important;
  }

  body.home-compact-mode .hero h1 {
    max-width: none !important;
    font-size: 27px !important;
    line-height: 1.08 !important;
  }

  body.home-compact-mode .hero-copy {
    margin-top: 10px !important;
    font-size: 13px !important;
    line-height: 1.62 !important;
    color: #557391 !important;
  }

  body.home-compact-mode .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    margin-top: 14px !important;
  }

  body.home-compact-mode .hero-actions > * {
    min-width: 0 !important;
    min-height: 44px !important;
    padding: 12px 10px !important;
    border-radius: 14px !important;
    font-size: 13px !important;
  }

  .home-hero-priority {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-top: 14px !important;
  }

  .home-hero-priority-item {
    padding: 12px 13px !important;
    border-radius: 16px !important;
  }

  .home-hero-priority-item strong {
    font-size: 14px !important;
  }

  .home-hero-priority-item p {
    font-size: 12px !important;
  }

  body.home-compact-mode .hero-note {
    padding: 14px !important;
    border-radius: 20px !important;
    gap: 10px !important;
    background:
      linear-gradient(180deg, rgba(255, 249, 241, 0.98), rgba(244, 251, 245, 0.94)) !important;
  }

  body.home-compact-mode .hero-note .note-chip {
    align-self: flex-start !important;
  }

  body.home-compact-mode .hero-note > p {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 1.58 !important;
    color: #5e7897 !important;
  }

  body.home-compact-mode .hero-note-stack {
    gap: 8px !important;
  }

  body.home-compact-mode .hero-note-stack section {
    padding: 11px 12px !important;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.72) !important;
    border: 1px solid rgba(58, 116, 193, 0.08) !important;
  }

  body.home-compact-mode .hero-note-stack strong {
    font-size: 14px !important;
  }

  body.home-compact-mode .quick-link-card {
    min-height: 108px !important;
    padding: 12px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(58, 116, 193, 0.11) !important;
    background:
      radial-gradient(circle at 100% 0%, rgba(45, 140, 240, 0.1), transparent 32%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(243, 249, 255, 0.93)) !important;
    box-shadow:
      0 14px 28px rgba(18, 64, 128, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  }

  body.home-compact-mode .quick-link-card.primary {
    min-height: 118px !important;
    border-color: rgba(58, 116, 193, 0.16) !important;
    box-shadow:
      0 16px 30px rgba(18, 64, 128, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  }

  body.home-compact-mode .quick-link-card.secondary {
    background:
      linear-gradient(180deg, rgba(252, 253, 255, 0.98), rgba(246, 250, 254, 0.94)) !important;
    box-shadow:
      0 10px 20px rgba(18, 64, 128, 0.05),
      inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  }

  body.home-compact-mode .quick-link-card strong {
    font-size: 15px !important;
    color: #163b64 !important;
  }

  body.home-compact-mode .quick-link-card p,
  body.home-compact-mode .quick-link-card span {
    color: #6280a0 !important;
  }

  .mobile-route-hub-card {
    min-height: 126px !important;
    padding: 14px !important;
    border-radius: 18px !important;
  }

  .mobile-route-hub-card strong {
    font-size: 15px !important;
  }

  .mobile-route-hub-card p {
    font-size: 12px !important;
    line-height: 1.54 !important;
  }

  .mobile-route-dock {
    grid-template-columns: 1fr 1fr !important;
    gap: 9px !important;
  }

  .mobile-route-dock-action {
    min-height: 84px !important;
    padding: 13px !important;
    border-radius: 17px !important;
  }

  .mobile-route-dock-action strong {
    font-size: 14px !important;
    line-height: 1.3 !important;
  }

  .mobile-route-status {
    gap: 10px !important;
    padding: 13px !important;
    border-radius: 18px !important;
  }

  .mobile-route-status-copy strong {
    font-size: 16px !important;
  }

  .mobile-route-status-copy p {
    font-size: 12px !important;
    line-height: 1.56 !important;
  }

  .mobile-route-status-actions {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  .mobile-route-status-actions > * {
    min-height: 42px !important;
  }

  .home-mobile-priority-strip {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
    margin-top: 10px !important;
  }

  .home-mobile-priority-card {
    padding: 12px !important;
    border-radius: 16px !important;
  }

  .home-mobile-priority-card strong {
    font-size: 14px !important;
  }

  .home-mobile-priority-card p {
    font-size: 12px !important;
    line-height: 1.52 !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] #employee-workbench-panel,
  body.home-open-route-active[data-home-open-route="mine"] #activity-panel {
    overflow: hidden !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] #employee-workbench-root,
  body.home-open-route-active[data-home-open-route="mine"] .employee-workbench-grid,
  body.home-open-route-active[data-home-open-route="mine"] .task-list,
  body.home-open-route-active[data-home-open-route="mine"] .task-board {
    display: grid !important;
    gap: 10px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .employee-task-board,
  body.home-open-route-active[data-home-open-route="mine"] .employee-work-card,
  body.home-open-route-active[data-home-open-route="mine"] .workbench-entry-card,
  body.home-open-route-active[data-home-open-route="mine"] .task-item,
  body.home-open-route-active[data-home-open-route="mine"] .activity-summary-card,
  body.home-open-route-active[data-home-open-route="mine"] .list-item {
    border-radius: 18px !important;
    border: 1px solid rgba(58, 116, 193, 0.11) !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.93)) !important;
    box-shadow:
      0 12px 24px rgba(18, 64, 128, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .employee-task-board,
  body.home-open-route-active[data-home-open-route="mine"] .employee-work-card,
  body.home-open-route-active[data-home-open-route="mine"] .workbench-entry-card,
  body.home-open-route-active[data-home-open-route="mine"] .task-item {
    padding: 13px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .employee-task-item strong,
  body.home-open-route-active[data-home-open-route="mine"] .employee-work-card strong,
  body.home-open-route-active[data-home-open-route="mine"] .workbench-entry-card strong,
  body.home-open-route-active[data-home-open-route="mine"] .task-item strong {
    font-size: 15px !important;
    line-height: 1.35 !important;
    color: #163b64 !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .employee-task-item p,
  body.home-open-route-active[data-home-open-route="mine"] .employee-task-meta,
  body.home-open-route-active[data-home-open-route="mine"] .employee-work-card span,
  body.home-open-route-active[data-home-open-route="mine"] .workbench-entry-meta,
  body.home-open-route-active[data-home-open-route="mine"] .task-meta,
  body.home-open-route-active[data-home-open-route="mine"] .task-note {
    font-size: 12px !important;
    line-height: 1.56 !important;
    color: #607d9c !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .task-actions,
  body.home-open-route-active[data-home-open-route="mine"] .employee-task-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .task-actions > *,
  body.home-open-route-active[data-home-open-route="mine"] .employee-task-actions > * {
    width: 100% !important;
    min-height: 42px !important;
    justify-content: center !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] #activity-panel {
    padding-top: 12px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] #activity-panel .activity-summary {
    display: grid !important;
    gap: 9px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] #activity-panel .activity-filter-row {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] #activity-panel .activity-summary-card {
    min-height: 88px !important;
    padding: 12px !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] #support-grid-section {
    gap: 12px !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] .route-landing-banner-messages,
  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel,
  body.home-open-route-active[data-home-open-route="messages"] #support-grid-section > .panel:not(.route-landing-banner-messages) {
    overflow: hidden !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] .route-landing-banner-messages {
    padding: 12px !important;
    border-radius: 20px !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] .route-landing-banner-copy {
    gap: 5px !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] .route-landing-banner-copy strong {
    font-size: 17px !important;
    line-height: 1.28 !important;
    color: #143a63 !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] .route-landing-banner-copy p,
  body.home-open-route-active[data-home-open-route="messages"] .route-landing-points span {
    font-size: 12px !important;
    line-height: 1.5 !important;
    color: #5d7a99 !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .route-landing-banner-copy strong {
    font-size: 17px !important;
    line-height: 1.28 !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .route-landing-banner-copy p,
  body.home-open-route-active[data-home-open-route="mine"] .route-landing-points span {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .route-landing-points,
  body.home-open-route-active[data-home-open-route="messages"] .route-landing-points {
    gap: 6px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .route-landing-points span,
  body.home-open-route-active[data-home-open-route="messages"] .route-landing-points span {
    min-height: 24px !important;
    padding: 0 8px !important;
    font-size: 10px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .route-landing-actions,
  body.home-open-route-active[data-home-open-route="messages"] .route-landing-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
    margin-top: 2px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .route-landing-actions > *,
  body.home-open-route-active[data-home-open-route="messages"] .route-landing-actions > * {
    min-height: 42px !important;
    font-size: 13px !important;
    border-radius: 14px !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(238, 246, 255, 0.9)) !important;
    border-color: rgba(58, 116, 193, 0.12) !important;
    color: #11529f !important;
    box-shadow:
      0 10px 20px rgba(18, 64, 128, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel,
  body.home-open-route-active[data-home-open-route="messages"] #support-grid-section > .panel:not(.route-landing-banner-messages) {
    padding: 12px !important;
    border-radius: 20px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] #employee-workbench-panel,
  body.home-open-route-active[data-home-open-route="mine"] #activity-panel {
    padding: 12px !important;
    border-radius: 20px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .route-focus-strip,
  body.home-open-route-active[data-home-open-route="messages"] .route-focus-strip {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .route-focus-card:nth-child(3),
  body.home-open-route-active[data-home-open-route="messages"] .route-focus-card:nth-child(3) {
    display: none !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .route-focus-card,
  body.home-open-route-active[data-home-open-route="messages"] .route-focus-card {
    padding: 11px 12px !important;
    border-radius: 15px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .route-focus-card strong,
  body.home-open-route-active[data-home-open-route="messages"] .route-focus-card strong {
    font-size: 14px !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .route-focus-card p,
  body.home-open-route-active[data-home-open-route="messages"] .route-focus-card p {
    font-size: 12px !important;
    line-height: 1.5 !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel .capture-hint,
  body.home-open-route-active[data-home-open-route="messages"] .capture-hint-card,
  body.home-open-route-active[data-home-open-route="messages"] .capture-result-item,
  body.home-open-route-active[data-home-open-route="messages"] .timeline-item {
    border-radius: 16px !important;
    border: 1px solid rgba(58, 116, 193, 0.1) !important;
    background:
      linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(240, 247, 255, 0.92)) !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] .capture-hint-grid,
  body.home-open-route-active[data-home-open-route="messages"] .chat-summary-grid {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] #node-capture-form,
  body.home-open-route-active[data-home-open-route="messages"] #timeline-form {
    display: grid !important;
    gap: 10px !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] #timeline-form {
    padding: 0 !important;
    background: transparent !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] #timeline-form textarea,
  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel textarea {
    min-height: 128px !important;
    line-height: 1.58 !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] .capture-actions,
  body.home-open-route-active[data-home-open-route="messages"] .task-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] .capture-actions > *,
  body.home-open-route-active[data-home-open-route="messages"] #timeline-form button[type="submit"] {
    width: 100% !important;
    min-height: 44px !important;
    justify-content: center !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .result-box,
  body.home-open-route-active[data-home-open-route="mine"] .empty-state,
  body.home-open-route-active[data-home-open-route="messages"] .result-box,
  body.home-open-route-active[data-home-open-route="messages"] .empty-state {
    margin-top: 12px !important;
    padding: 12px !important;
    border-radius: 16px !important;
    font-size: 12px !important;
    line-height: 1.56 !important;
    border: 1px solid rgba(58, 116, 193, 0.11) !important;
    background:
      linear-gradient(180deg, rgba(248, 252, 255, 0.98), rgba(241, 248, 255, 0.93)) !important;
    color: #355473 !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] .activity-list,
  body.home-open-route-active[data-home-open-route="messages"] .activity-list {
    gap: 8px !important;
    margin-top: 12px !important;
    padding-bottom: 18px !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] .capture-result-item,
  body.home-open-route-active[data-home-open-route="messages"] .wecom-timeline-item,
  body.home-open-route-active[data-home-open-route="mine"] .wecom-timeline-item {
    padding: 11px 12px !important;
    border-radius: 15px !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] .capture-result-item strong,
  body.home-open-route-active[data-home-open-route="messages"] .wecom-timeline-item strong,
  body.home-open-route-active[data-home-open-route="mine"] .wecom-timeline-item strong {
    font-size: 14px !important;
    line-height: 1.4 !important;
  }

  body.home-open-route-active[data-home-open-route="messages"] .capture-result-item p,
  body.home-open-route-active[data-home-open-route="messages"] .wecom-timeline-item p,
  body.home-open-route-active[data-home-open-route="mine"] .wecom-timeline-item p {
    font-size: 12px !important;
    line-height: 1.54 !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] #activity-panel,
  body.home-open-route-active[data-home-open-route="messages"] #support-grid-section,
  body.home-open-route-active[data-home-open-route="messages"] #node-capture-panel,
  body.home-open-route-active[data-home-open-route="messages"] #timeline-form,
  body.home-open-route-active[data-home-open-route="messages"] #action-result {
    scroll-margin-bottom: calc(154px + env(safe-area-inset-bottom)) !important;
  }

  body.home-open-route-active[data-home-open-route="mine"] #activity-panel::after,
  body.home-open-route-active[data-home-open-route="messages"] #support-grid-section::after {
    content: "";
    display: block;
    height: calc(88px + env(safe-area-inset-bottom));
    width: 100%;
  }
}

/* 2026-06-02 member table hotfix final override: keep at file end to beat legacy rules. */
.recheck-page-shell .member-data-table {
  min-width: 1540px !important;
}

.recheck-page-shell .member-data-table th:nth-child(2) {
  width: 178px !important;
}

.recheck-page-shell .member-data-table th:nth-child(3) {
  width: 152px !important;
}

.recheck-page-shell .member-data-table th:nth-child(4) {
  width: 316px !important;
}

.recheck-page-shell .member-data-table th:nth-child(5) {
  width: 226px !important;
}

.recheck-page-shell .member-data-table th:nth-child(6) {
  width: 286px !important;
}

.recheck-page-shell .member-data-table th:nth-child(7) {
  width: 192px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] .member-group-cell,
.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-group-cell {
  gap: 13px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] .member-mini-field,
.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-mini-field {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 6px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] .member-mini-field span,
.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-mini-field span {
  display: block !important;
  white-space: normal !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
  font-weight: 900 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] .member-cell-input,
.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-cell-input {
  height: 44px !important;
  min-height: 44px !important;
  padding: 10px 12px !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-benefit-stack {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-benefit-stack > * {
  min-width: 0 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-lock-chip {
  grid-column: 1 / -1 !important;
  justify-self: start !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="操作"] .member-row-actions {
  gap: 8px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="操作"] .member-row-actions > :is(button, a),
.recheck-page-shell .member-data-table td[data-mobile-label="操作"] .member-more-actions summary {
  min-height: 38px !important;
  font-size: 12px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="操作"] .member-save-chip,
.recheck-page-shell .member-data-table td[data-mobile-label="操作"] .member-handled-check {
  justify-content: center !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="操作"] .member-more-actions > div {
  min-width: 182px !important;
}

/* 2026-06-02 member table final tail override: this block must stay last. */
.recheck-page-shell .member-query-actions {
  display: grid !important;
  grid-template-columns: 0.95fr 0.8fr 1.05fr 1.05fr !important;
  gap: 10px !important;
  align-items: end !important;
  min-width: 0 !important;
}

.recheck-page-shell .member-query-actions > button {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 46px !important;
  padding: 0 12px !important;
  border-radius: 14px !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-query-actions .member-query-export-button {
  border-color: rgba(20, 88, 173, 0.16) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 255, 0.92)) !important;
  color: #1458ad !important;
}

.recheck-page-shell .member-query-export-actions {
  display: contents !important;
}

.recheck-page-shell .member-data-table {
  table-layout: fixed !important;
  min-width: 1500px !important;
  width: 100% !important;
}

.recheck-page-shell .member-data-table th,
.recheck-page-shell .member-data-table td {
  box-sizing: border-box !important;
}

.recheck-page-shell .member-data-table th:nth-child(2) { width: 168px !important; }
.recheck-page-shell .member-data-table th:nth-child(3) { width: 140px !important; }
.recheck-page-shell .member-data-table th:nth-child(4) { width: 360px !important; }
.recheck-page-shell .member-data-table th:nth-child(5) { width: 232px !important; }
.recheck-page-shell .member-data-table th:nth-child(6) { width: 258px !important; }
.recheck-page-shell .member-data-table th:nth-child(7) { width: 168px !important; }

.recheck-page-shell .member-data-table td[data-mobile-label="客户"],
.recheck-page-shell .member-data-table td[data-mobile-label="收费"],
.recheck-page-shell .member-data-table td[data-mobile-label="操作"],
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"],
.recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] {
  min-width: 0 !important;
  max-width: 100% !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-cell,
.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-phone,
.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-edit {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-head strong,
.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-head small {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-cell-input,
.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-cell-input,
.recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] .member-cell-input {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-cell-input {
  height: 40px !important;
  min-height: 40px !important;
  padding: 8px 9px !important;
  font-size: 13px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] .member-group-cell,
.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-group-cell {
  min-width: 0 !important;
  max-width: 100% !important;
  gap: 8px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] .member-mini-field {
  grid-template-columns: 72px minmax(0, 1fr) !important;
  gap: 8px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-mini-field {
  grid-template-columns: 58px minmax(0, 1fr) !important;
  gap: 7px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] .member-mini-field span,
.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-mini-field span {
  white-space: nowrap !important;
  font-size: 11px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] .member-cell-input {
  height: 40px !important;
  min-height: 40px !important;
  padding: 8px 10px !important;
  font-size: 13px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-cell-input {
  height: 38px !important;
  min-height: 38px !important;
  padding: 7px 9px !important;
  font-size: 12px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-compact {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 6px !important;
  min-width: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) !important;
  gap: 7px !important;
  align-items: center !important;
  min-width: 0 !important;
  padding: 0 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary span,
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary small {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-lines {
  display: grid !important;
  gap: 4px !important;
  min-width: 0 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line {
  display: grid !important;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) auto !important;
  gap: 6px !important;
  align-items: center !important;
  min-width: 0 !important;
  padding: 5px 7px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(20, 88, 173, 0.08) !important;
  background: rgba(247, 250, 255, 0.86) !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line span,
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line small,
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line em {
  min-width: 0 !important;
  overflow: hidden !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line span {
  color: #1458ad !important;
  font-weight: 900 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line small {
  color: #5c6f86 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line em {
  color: #087443 !important;
  font-style: normal !important;
  font-weight: 900 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-benefit-stack {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 5px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-benefit-button {
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 30px !important;
  padding: 4px 6px !important;
  border-radius: 9px !important;
  font-size: 11px !important;
  line-height: 1.1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-lock-chip {
  grid-column: 1 / -1 !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="操作"] .member-row-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="操作"] .member-row-actions > :is(button, a, label, details),
.recheck-page-shell .member-data-table td[data-mobile-label="操作"] .member-more-actions summary {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 34px !important;
  padding: 7px 8px !important;
  font-size: 12px !important;
  line-height: 1.15 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="操作"] .member-save-chip {
  min-height: 28px !important;
  padding: 5px 8px !important;
  font-size: 11px !important;
}

/* 2026-06-02 member performance column polish: keep this block last for paid member table. */
.recheck-page-shell .member-data-table {
  table-layout: fixed !important;
  min-width: 1580px !important;
  width: 100% !important;
}

.recheck-page-shell .member-data-table th:nth-child(2) { width: 168px !important; }
.recheck-page-shell .member-data-table th:nth-child(3) { width: 140px !important; }
.recheck-page-shell .member-data-table th:nth-child(4) { width: 342px !important; }
.recheck-page-shell .member-data-table th:nth-child(5) { width: 292px !important; }
.recheck-page-shell .member-data-table th:nth-child(6) { width: 246px !important; }
.recheck-page-shell .member-data-table th:nth-child(7) { width: 168px !important; }

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] {
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 16px 14px !important;
  vertical-align: top !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-compact {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 8px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: center !important;
  min-width: 0 !important;
  padding: 0 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary span {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 30px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: #f3f8ff !important;
  color: #1b5faf !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary small {
  min-width: 0 !important;
  overflow: hidden !important;
  color: #15395f !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  line-height: 1.35 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-lines {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 5px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line {
  display: grid !important;
  grid-template-columns: minmax(58px, 0.76fr) minmax(82px, 1fr) minmax(58px, auto) !important;
  gap: 6px !important;
  align-items: center !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 28px !important;
  padding: 4px 8px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(27, 95, 175, 0.1) !important;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(241, 247, 255, 0.9)) !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line span,
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line small,
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line em {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line span {
  color: #102f54 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line small {
  color: #55708d !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line em {
  justify-self: end !important;
  color: #0f6f44 !important;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 900 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-benefit-stack {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  min-width: 0 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-benefit-button {
  min-width: 0 !important;
  min-height: 34px !important;
  padding: 5px 7px !important;
  overflow: hidden !important;
  font-size: 12px !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* 2026-06-02 member performance compact v3: two-column chips, no stacked project text. */
.recheck-page-shell .member-data-table {
  table-layout: fixed !important;
  min-width: 1560px !important;
}

.recheck-page-shell .member-data-table th:nth-child(4) { width: 334px !important; }
.recheck-page-shell .member-data-table th:nth-child(5) { width: 300px !important; }
.recheck-page-shell .member-data-table th:nth-child(6) { width: 246px !important; }

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] {
  padding: 16px 16px !important;
  overflow: hidden !important;
  vertical-align: top !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-compact {
  display: grid !important;
  gap: 10px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: center !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 0 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary span {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 32px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  background: #f1f7ff !important;
  color: #1a5ca9 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary small {
  min-width: 0 !important;
  overflow: hidden !important;
  color: #12375d !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-lines {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  gap: 8px !important;
  align-items: center !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 10px !important;
  border-radius: 12px !important;
  border: 1px solid rgba(28, 96, 173, 0.12) !important;
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.98), rgba(239, 247, 255, 0.92)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line span,
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line em {
  min-width: 0 !important;
  overflow: hidden !important;
  line-height: 1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line span {
  color: #0f3158 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line em {
  color: #0b7246 !important;
  font-size: 13px !important;
  font-style: normal !important;
  font-weight: 950 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line small {
  display: none !important;
}

/* 2026-06-02 member performance card v4: match requested two-column performance cards. */
.recheck-page-shell .member-data-table {
  table-layout: fixed !important;
  min-width: 1600px !important;
}

.recheck-page-shell .member-data-table th:nth-child(4) { width: 326px !important; }
.recheck-page-shell .member-data-table th:nth-child(5) { width: 320px !important; }
.recheck-page-shell .member-data-table th:nth-child(6) { width: 240px !important; }

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] {
  padding: 18px 18px !important;
  overflow: hidden !important;
  vertical-align: top !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-compact {
  display: grid !important;
  gap: 12px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary {
  display: inline-grid !important;
  grid-template-columns: auto minmax(0, 1fr) !important;
  gap: 8px !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 38px !important;
  padding: 0 14px !important;
  border: 1px solid rgba(28, 95, 175, 0.16) !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.94)) !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary span {
  color: #55708d !important;
  font-size: 13px !important;
  font-weight: 900 !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary small {
  min-width: 0 !important;
  overflow: hidden !important;
  color: #123f78 !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-lines {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line {
  display: grid !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto auto auto auto !important;
  align-content: start !important;
  gap: 3px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  min-height: 112px !important;
  height: auto !important;
  padding: 13px 14px !important;
  border-radius: 18px !important;
  border: 1px solid rgba(223, 165, 76, 0.28) !important;
  background: linear-gradient(180deg, rgba(255, 253, 249, 0.98), rgba(255, 249, 241, 0.94)) !important;
  box-shadow: 0 10px 20px rgba(117, 79, 35, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.88) !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line label,
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line span,
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line small,
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line em {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  line-height: 1.18 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line label {
  color: #7b8ea6 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line span {
  color: #123f78 !important;
  font-size: 18px !important;
  font-weight: 950 !important;
  letter-spacing: -0.02em !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line small {
  color: #4c647f !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line em {
  color: #087443 !important;
  font-size: 16px !important;
  font-style: normal !important;
  font-weight: 950 !important;
}

/* 2026-06-02 member performance card v5: compact card size. */
.recheck-page-shell .member-data-table {
  min-width: 1560px !important;
}

.recheck-page-shell .member-data-table th:nth-child(4) { width: 338px !important; }
.recheck-page-shell .member-data-table th:nth-child(5) { width: 286px !important; }
.recheck-page-shell .member-data-table th:nth-child(6) { width: 246px !important; }

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] {
  padding: 14px 14px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-compact {
  gap: 8px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary {
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 11px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary span {
  height: 26px !important;
  min-height: 26px !important;
  padding: 0 9px !important;
  font-size: 11px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary small {
  font-size: 12px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-lines {
  gap: 8px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line {
  min-height: 78px !important;
  height: 78px !important;
  padding: 9px 10px !important;
  border-radius: 14px !important;
  gap: 2px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line label {
  font-size: 10px !important;
  line-height: 1.1 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line span {
  font-size: 15px !important;
  line-height: 1.08 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line small {
  font-size: 11px !important;
  line-height: 1.1 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line em {
  font-size: 14px !important;
  line-height: 1.08 !important;
}

/* 2026-06-02 member performance card v6: small two-column, three-row layout. */
.recheck-page-shell .member-data-table {
  min-width: 1540px !important;
}

.recheck-page-shell .member-data-table th:nth-child(4) { width: 342px !important; }
.recheck-page-shell .member-data-table th:nth-child(5) { width: 264px !important; }
.recheck-page-shell .member-data-table th:nth-child(6) { width: 248px !important; }

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] {
  padding: 12px 12px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-compact {
  gap: 7px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary {
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 9px !important;
  gap: 7px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary span {
  height: 24px !important;
  min-height: 24px !important;
  padding: 0 8px !important;
  font-size: 10px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary small {
  font-size: 11px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-lines {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 7px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line {
  height: 66px !important;
  min-height: 66px !important;
  padding: 8px 9px !important;
  border-radius: 12px !important;
  gap: 1px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line label {
  font-size: 9px !important;
  line-height: 1.05 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line span {
  font-size: 13px !important;
  line-height: 1.04 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line small {
  font-size: 10px !important;
  line-height: 1.05 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line em {
  font-size: 12px !important;
  line-height: 1.05 !important;
}

/* 2026-06-02 charge column hardening: stop fee/benefit controls from squeezing into actions. */
.recheck-page-shell .member-scroll-table {
  overflow-x: auto !important;
}

.recheck-page-shell .member-data-table {
  table-layout: fixed !important;
  min-width: 1640px !important;
  width: 100% !important;
}

.recheck-page-shell .member-data-table th,
.recheck-page-shell .member-data-table td {
  box-sizing: border-box !important;
}

.recheck-page-shell .member-data-table th.member-select-col,
.recheck-page-shell .member-data-table td.member-select-col {
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
}

.recheck-page-shell .member-data-table th:nth-child(2) {
  width: 210px !important;
}

.recheck-page-shell .member-data-table th:nth-child(3) {
  width: 150px !important;
}

.recheck-page-shell .member-data-table th:nth-child(4) {
  width: 370px !important;
}

.recheck-page-shell .member-data-table th:nth-child(5) {
  width: 272px !important;
}

.recheck-page-shell .member-data-table th:nth-child(6) {
  width: 230px !important;
}

.recheck-page-shell .member-data-table th:nth-child(7),
.recheck-page-shell .member-data-table th.member-action-col,
.recheck-page-shell .member-data-table td.member-action-col {
  width: 142px !important;
  min-width: 142px !important;
  max-width: 142px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] {
  overflow: hidden !important;
  padding: 10px !important;
  vertical-align: top !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-group-cell {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 7px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-mini-field {
  display: grid !important;
  grid-template-columns: 58px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-mini-field span {
  min-width: 0 !important;
  color: #5b728c !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  text-align: right !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-cell-input {
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  height: 34px !important;
  min-height: 34px !important;
  padding: 0 9px !important;
  border-radius: 10px !important;
  font-size: 13px !important;
  line-height: 34px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-benefit-stack {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 5px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-benefit-button,
.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-lock-chip {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 8px !important;
  border-radius: 9px !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td.member-action-col .member-row-actions {
  gap: 7px !important;
}

.recheck-page-shell .member-data-table td.member-action-col .compact,
.recheck-page-shell .member-data-table td.member-action-col .link-button,
.recheck-page-shell .member-data-table td.member-action-col summary {
  width: 100% !important;
  min-height: 30px !important;
  padding-left: 8px !important;
  padding-right: 8px !important;
  font-size: 12px !important;
  white-space: nowrap !important;
}

/* 2026-06-02 tiantan service entries: keep medicine/proxy/renewal visible on annual list. */
.recheck-page-shell .tiantan-service-entry-board {
  display: grid !important;
  grid-template-columns: 220px repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch !important;
  margin: 12px 0 !important;
}

.recheck-page-shell .tiantan-service-entry-head {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 5px !important;
  min-width: 0 !important;
  padding: 14px 16px !important;
  border: 1px solid rgba(28, 95, 175, 0.12) !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(238, 247, 255, 0.98), rgba(255, 255, 255, 0.94)) !important;
  box-shadow: 0 12px 28px rgba(36, 76, 125, 0.08) !important;
}

.recheck-page-shell .tiantan-service-entry-head span,
.recheck-page-shell .tiantan-service-entry-head small {
  color: #617892 !important;
  font-size: 12px !important;
  font-weight: 850 !important;
}

.recheck-page-shell .tiantan-service-entry-head strong {
  color: #0f3766 !important;
  font-size: 17px !important;
  font-weight: 950 !important;
  line-height: 1.2 !important;
}

.recheck-page-shell .tiantan-service-card {
  min-height: 112px !important;
  padding: 14px 16px !important;
}

.recheck-page-shell .tiantan-service-card p {
  min-height: 34px !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

@media (max-width: 1200px) {
  .recheck-page-shell .tiantan-service-entry-board {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* 2026-06-02 performance restore: force TianTan executors into compact 2x3 cards. */
.recheck-page-shell .member-data-table th:nth-child(5) {
  width: 300px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] {
  overflow: hidden !important;
  padding: 10px !important;
  vertical-align: top !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-compact {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 7px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary {
  display: grid !important;
  grid-template-columns: 70px minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  height: 28px !important;
  min-height: 28px !important;
  padding: 0 9px !important;
  border: 1px solid rgba(28, 95, 175, 0.14) !important;
  border-radius: 999px !important;
  background: #f8fbff !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary span,
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary small {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  line-height: 1 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary span {
  color: #657b95 !important;
  font-size: 11px !important;
  font-weight: 900 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary small {
  color: #143f73 !important;
  font-size: 12px !important;
  font-weight: 950 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-lines {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line {
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr) 48px !important;
  grid-template-areas:
    "label name money"
    "label type money" !important;
  align-items: center !important;
  column-gap: 6px !important;
  row-gap: 1px !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 6px 7px !important;
  border: 1px solid rgba(28, 95, 175, 0.12) !important;
  border-radius: 11px !important;
  background: linear-gradient(180deg, #ffffff, #f7fbff) !important;
  box-shadow: none !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line label,
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line span,
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line small,
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line em {
  display: block !important;
  min-width: 0 !important;
  overflow: hidden !important;
  line-height: 1.05 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line label {
  grid-area: label !important;
  color: #7a8da5 !important;
  font-size: 10px !important;
  font-weight: 900 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line span {
  grid-area: name !important;
  color: #123d70 !important;
  font-size: 13px !important;
  font-weight: 950 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line small {
  grid-area: type !important;
  color: #5f7289 !important;
  font-size: 10px !important;
  font-weight: 850 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line em {
  grid-area: money !important;
  justify-self: end !important;
  color: #087443 !important;
  font-size: 12px !important;
  font-style: normal !important;
  font-weight: 950 !important;
}

/* 2026-06-02 table balance: shrink customer/time/performance, restore fee/actions. */
.recheck-page-shell .member-data-table {
  table-layout: fixed !important;
  min-width: 1480px !important;
  width: 100% !important;
}

.recheck-page-shell .member-data-table th.member-select-col,
.recheck-page-shell .member-data-table td.member-select-col {
  width: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
}

.recheck-page-shell .member-data-table th:nth-child(2),
.recheck-page-shell .member-data-table td[data-mobile-label="客户"] {
  width: 14% !important;
}

.recheck-page-shell .member-data-table th:nth-child(3),
.recheck-page-shell .member-data-table td[data-mobile-label="预约"] {
  width: 11% !important;
}

.recheck-page-shell .member-data-table th:nth-child(4),
.recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] {
  width: 23% !important;
}

.recheck-page-shell .member-data-table th:nth-child(5),
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] {
  width: 20% !important;
}

.recheck-page-shell .member-data-table th:nth-child(6),
.recheck-page-shell .member-data-table td[data-mobile-label="收费"] {
  width: 18% !important;
}

.recheck-page-shell .member-data-table th:nth-child(7),
.recheck-page-shell .member-data-table th.member-action-col,
.recheck-page-shell .member-data-table td.member-action-col {
  width: 12% !important;
  min-width: 150px !important;
  max-width: none !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"],
.recheck-page-shell .member-data-table td[data-mobile-label="预约"],
.recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"],
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"],
.recheck-page-shell .member-data-table td[data-mobile-label="收费"],
.recheck-page-shell .member-data-table td.member-action-col {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-cell {
  gap: 8px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-core-head strong {
  font-size: 16px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="客户"] .member-cell-input {
  height: 38px !important;
  min-height: 38px !important;
  font-size: 14px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] .member-mini-field {
  grid-template-columns: 82px minmax(0, 1fr) !important;
  gap: 8px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] .member-cell-input {
  height: 38px !important;
  min-height: 38px !important;
  font-size: 14px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary {
  grid-template-columns: 62px minmax(0, 1fr) !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line {
  grid-template-columns: 32px minmax(0, 1fr) 42px !important;
  column-gap: 5px !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 6px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line span {
  font-size: 12px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line em {
  font-size: 11px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-mini-field {
  grid-template-columns: 64px minmax(0, 1fr) !important;
}

.recheck-page-shell .member-data-table td.member-action-col .member-row-actions {
  max-width: 180px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Local home cleanup: remove the left navigation and let the home content use the full width. */
body.home-no-left-nav .crm-admin-shell {
  grid-template-columns: minmax(0, 1fr) !important;
}

body.home-no-left-nav .crm-main-content {
  grid-column: 1 / -1 !important;
  width: 100% !important;
}

/* Yilu Profile Delivery UI: one visual layer for all customer-profile PC pages. */
:root {
  --profile-bg: #f5f8fc;
  --profile-surface: rgba(255, 255, 255, 0.94);
  --profile-surface-soft: #f8fbff;
  --profile-line: rgba(91, 124, 164, 0.16);
  --profile-line-strong: rgba(69, 111, 169, 0.24);
  --profile-text: #1d314d;
  --profile-muted: #6d7f95;
  --profile-blue: #3478c7;
  --profile-blue-soft: #e8f2ff;
  --profile-green: #188464;
  --profile-red: #c94d55;
  --profile-radius: 22px;
  --profile-radius-sm: 14px;
  --profile-shadow: 0 18px 42px rgba(35, 76, 125, 0.09);
}

.recheck-page-shell,
.recheck-page-shell * {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif !important;
}

.recheck-page-shell {
  color: var(--profile-text) !important;
  background:
    radial-gradient(circle at 8% 0%, rgba(72, 137, 207, 0.14), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, var(--profile-bg) 48%, #f7f4ed 100%) !important;
}

.recheck-page-shell .panel,
.recheck-page-shell .member-query-panel,
.recheck-page-shell .member-scroll-table,
.recheck-page-shell .member-card,
.recheck-page-shell .crm-profile-hero,
.recheck-page-shell .crm-profile-detail-hero,
.recheck-page-shell .create-member-form-card,
.recheck-page-shell .member-detail-edit-panel,
.recheck-page-shell .selected-crm-profile-card,
.recheck-page-shell .recheck-crm-table-wrap {
  border: 1px solid var(--profile-line) !important;
  border-radius: var(--profile-radius) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 255, 0.92)) !important;
  box-shadow: var(--profile-shadow) !important;
}

.recheck-page-shell .panel-head h2,
.recheck-page-shell .crm-profile-hero-copy strong,
.recheck-page-shell .crm-profile-detail-hero-copy strong,
.recheck-page-shell .member-detail-hero-copy strong,
.recheck-page-shell .create-page-hero h2 {
  color: #152940 !important;
  font-size: clamp(24px, 2vw, 34px) !important;
  letter-spacing: -0.035em !important;
  line-height: 1.15 !important;
}

.recheck-page-shell .panel-head p,
.recheck-page-shell .crm-profile-hero-copy p,
.recheck-page-shell .crm-profile-detail-hero-copy p,
.recheck-page-shell .member-detail-hero-copy p,
.recheck-page-shell .create-page-hero p {
  color: var(--profile-muted) !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
}

.recheck-page-shell button,
.recheck-page-shell .link-button,
.recheck-page-shell .ghost,
.recheck-page-shell input,
.recheck-page-shell select,
.recheck-page-shell textarea,
.recheck-page-shell .recheck-date-trigger {
  border-radius: var(--profile-radius-sm) !important;
  font-size: 14px !important;
}

.recheck-page-shell button,
.recheck-page-shell .link-button:not(.ghost) {
  border: 1px solid rgba(52, 120, 199, 0.22) !important;
  background: linear-gradient(180deg, #4e91d6, #3478c7) !important;
  color: #fff !important;
  box-shadow: 0 10px 22px rgba(52, 120, 199, 0.18) !important;
}

.recheck-page-shell .ghost,
.recheck-page-shell .link-button.ghost,
.recheck-page-shell button.ghost {
  border: 1px solid var(--profile-line-strong) !important;
  background: linear-gradient(180deg, #ffffff, #f1f6fc) !important;
  color: #2e5f97 !important;
  box-shadow: none !important;
}

.recheck-page-shell button:hover,
.recheck-page-shell .link-button:hover {
  filter: saturate(1.03) brightness(1.01);
  transform: translateY(-1px);
}

.recheck-page-shell input,
.recheck-page-shell select,
.recheck-page-shell textarea,
.recheck-page-shell .member-cell-input,
.recheck-page-shell .recheck-date-trigger {
  min-height: 42px !important;
  border: 1px solid var(--profile-line-strong) !important;
  background: #fff !important;
  color: var(--profile-text) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
}

.recheck-page-shell input:focus,
.recheck-page-shell select:focus,
.recheck-page-shell textarea:focus {
  border-color: rgba(52, 120, 199, 0.58) !important;
  box-shadow: 0 0 0 4px rgba(52, 120, 199, 0.12) !important;
  outline: none !important;
}

.recheck-page-shell .crm-profile-hero,
.recheck-page-shell .crm-profile-detail-hero,
.recheck-page-shell .member-detail-hero {
  padding: 22px !important;
  gap: 16px !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(74, 144, 226, 0.13), transparent 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 255, 0.92)) !important;
}

.recheck-page-shell .crm-profile-hero-facts article,
.recheck-page-shell .crm-profile-detail-hero-facts article,
.recheck-page-shell .member-detail-hero-facts article,
.recheck-page-shell .member-summary-row article,
.recheck-page-shell .member-summary-fact {
  border: 1px solid var(--profile-line) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.78) !important;
  box-shadow: none !important;
}

.recheck-page-shell .crm-profile-hero-facts span,
.recheck-page-shell .crm-profile-detail-hero-facts span,
.recheck-page-shell .member-summary-row span,
.recheck-page-shell .member-summary-fact span {
  color: var(--profile-muted) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.recheck-page-shell .crm-profile-hero-facts strong,
.recheck-page-shell .crm-profile-detail-hero-facts strong,
.recheck-page-shell .member-summary-row strong,
.recheck-page-shell .member-summary-fact strong {
  color: #17385f !important;
  font-size: clamp(20px, 1.8vw, 28px) !important;
  letter-spacing: -0.04em !important;
}

.recheck-page-shell .crm-profile-command-bar,
.recheck-page-shell .member-query-panel {
  gap: 12px !important;
  padding: 14px !important;
  border: 1px solid var(--profile-line) !important;
  border-radius: var(--profile-radius) !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

.recheck-page-shell .crm-profile-mini-stats span,
.recheck-page-shell .tag,
.recheck-page-shell .pill,
.recheck-page-shell .member-save-chip,
.recheck-page-shell .member-lock-chip,
.recheck-page-shell .schedule-status-pill {
  border: 1px solid var(--profile-line) !important;
  background: var(--profile-blue-soft) !important;
  color: #2e5f97 !important;
  border-radius: 999px !important;
}

.recheck-page-shell .crm-profile-mini-stats .warn,
.recheck-page-shell .warn,
.recheck-page-shell .has-warning .member-row-warning {
  color: #9c5b18 !important;
}

.recheck-page-shell .recheck-crm-table,
.recheck-page-shell .member-data-table {
  border-spacing: 0 8px !important;
}

.recheck-page-shell .recheck-crm-table th,
.recheck-page-shell .member-data-table th {
  background: #edf5ff !important;
  color: #375a82 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

.recheck-page-shell .recheck-crm-table td,
.recheck-page-shell .member-data-table td {
  color: #263a52 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  border-color: var(--profile-line) !important;
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.recheck-page-shell .member-card-title-row strong,
.recheck-page-shell .member-core-head strong,
.recheck-page-shell .recheck-crm-name strong {
  color: #17385f !important;
  font-size: 17px !important;
}

.recheck-page-shell .empty-state {
  border: 1px dashed rgba(52, 120, 199, 0.24) !important;
  border-radius: var(--profile-radius) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: var(--profile-muted) !important;
}

.recheck-page-shell .button-danger,
.recheck-page-shell .danger {
  border-color: rgba(201, 77, 85, 0.24) !important;
  background: linear-gradient(180deg, #fff6f6, #ffecec) !important;
  color: var(--profile-red) !important;
}

/* Local delivery polish 2026-06-03: softer color, clearer typography, safer table density. */
:root {
  --profile-bg: #f6f8fb;
  --profile-surface: #ffffff;
  --profile-surface-soft: #f8fafd;
  --profile-line: rgba(103, 126, 153, 0.16);
  --profile-line-strong: rgba(87, 116, 148, 0.24);
  --profile-text: #24364b;
  --profile-muted: #728195;
  --profile-blue: #4d89c8;
  --profile-blue-soft: #eef6ff;
  --profile-green: #3b8f72;
  --profile-red: #bf5960;
  --profile-radius: 18px;
  --profile-radius-sm: 12px;
  --profile-shadow: 0 14px 32px rgba(43, 73, 108, 0.07);
}

.recheck-page-shell {
  font-size: 15px !important;
  color: var(--profile-text) !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(77, 137, 200, 0.1), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, #f6f8fb 52%, #f7f8f6 100%) !important;
}

.recheck-page-shell .crm-left-tree,
.recheck-page-shell .topbar,
.recheck-page-shell .panel,
.recheck-page-shell .member-query-panel,
.recheck-page-shell .member-scroll-table,
.recheck-page-shell .member-card,
.recheck-page-shell .crm-profile-hero,
.recheck-page-shell .crm-profile-detail-hero,
.recheck-page-shell .member-detail-hero,
.recheck-page-shell .create-member-form-card,
.recheck-page-shell .member-detail-edit-panel,
.recheck-page-shell .selected-crm-profile-card,
.recheck-page-shell .recheck-crm-table-wrap {
  border-color: var(--profile-line) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: var(--profile-shadow) !important;
}

.recheck-page-shell .crm-tree-item,
.recheck-page-shell .crm-tree-item span,
.recheck-page-shell .member-query-field span,
.recheck-page-shell .member-mini-field span,
.recheck-page-shell .section-head p,
.recheck-page-shell .panel-head p,
.recheck-page-shell .hero-copy,
.recheck-page-shell small,
.recheck-page-shell em {
  color: var(--profile-muted) !important;
}

.recheck-page-shell h1,
.recheck-page-shell h2,
.recheck-page-shell h3,
.recheck-page-shell .panel-head h2,
.recheck-page-shell .brand-lockup strong,
.recheck-page-shell .crm-profile-hero-copy strong,
.recheck-page-shell .crm-profile-detail-hero-copy strong,
.recheck-page-shell .member-detail-hero-copy strong,
.recheck-page-shell .create-page-hero h2 {
  color: #20344a !important;
  font-weight: 850 !important;
  letter-spacing: -0.025em !important;
}

.recheck-page-shell .panel-head h2,
.recheck-page-shell .crm-profile-hero-copy strong,
.recheck-page-shell .crm-profile-detail-hero-copy strong,
.recheck-page-shell .member-detail-hero-copy strong,
.recheck-page-shell .create-page-hero h2 {
  font-size: clamp(22px, 1.7vw, 30px) !important;
}

.recheck-page-shell button,
.recheck-page-shell .link-button,
.recheck-page-shell .ghost,
.recheck-page-shell summary {
  min-height: 36px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  font-weight: 760 !important;
}

.recheck-page-shell button,
.recheck-page-shell .link-button:not(.ghost) {
  border-color: rgba(77, 137, 200, 0.25) !important;
  background: linear-gradient(180deg, #6ca2d7, #4d89c8) !important;
  color: #fff !important;
  box-shadow: 0 9px 18px rgba(77, 137, 200, 0.15) !important;
}

.recheck-page-shell .ghost,
.recheck-page-shell button.ghost,
.recheck-page-shell .link-button.ghost,
.recheck-page-shell .button-secondary,
.recheck-page-shell .button-view {
  border-color: rgba(92, 122, 154, 0.22) !important;
  background: linear-gradient(180deg, #ffffff, #f5f8fc) !important;
  color: #456987 !important;
  box-shadow: none !important;
}

.recheck-page-shell .button-danger,
.recheck-page-shell .danger,
.recheck-page-shell button.button-danger {
  border-color: rgba(191, 89, 96, 0.22) !important;
  background: #fff5f5 !important;
  color: #b84f56 !important;
}

.recheck-page-shell input,
.recheck-page-shell select,
.recheck-page-shell textarea,
.recheck-page-shell .member-cell-input,
.recheck-page-shell .recheck-date-trigger {
  min-height: 40px !important;
  height: auto !important;
  padding: 9px 11px !important;
  border-radius: 11px !important;
  border-color: rgba(93, 123, 156, 0.24) !important;
  color: #24364b !important;
  font-size: 14px !important;
  font-weight: 650 !important;
  line-height: 1.3 !important;
  background: #fff !important;
}

.recheck-page-shell .member-query-panel {
  display: grid !important;
  grid-template-columns: minmax(120px, 0.9fr) minmax(170px, 1.2fr) minmax(150px, 1fr) minmax(132px, 0.9fr) minmax(132px, 0.9fr) auto !important;
  align-items: end !important;
  gap: 10px !important;
  padding: 12px !important;
}

.recheck-page-shell .member-query-field {
  gap: 6px !important;
}

.recheck-page-shell .member-query-field span {
  font-size: 12px !important;
  font-weight: 850 !important;
}

.recheck-page-shell .member-query-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

.recheck-page-shell .member-query-actions button {
  padding-left: 13px !important;
  padding-right: 13px !important;
}

.recheck-page-shell .member-scroll-table {
  padding: 10px !important;
  overflow-x: auto !important;
}

.recheck-page-shell .member-data-table {
  table-layout: fixed !important;
  min-width: 1520px !important;
  border-spacing: 0 7px !important;
}

.recheck-page-shell .member-data-table th,
.recheck-page-shell .member-data-table td {
  padding: 9px 8px !important;
  vertical-align: top !important;
}

.recheck-page-shell .member-data-table th {
  background: #eef5fb !important;
  color: #526d88 !important;
  font-size: 12px !important;
  letter-spacing: 0.01em !important;
}

.recheck-page-shell .member-data-table td {
  color: #26384c !important;
  font-size: 14px !important;
  line-height: 1.42 !important;
}

.recheck-page-shell .member-data-table th.member-select-col,
.recheck-page-shell .member-data-table td.member-select-col {
  width: 40px !important;
  min-width: 40px !important;
}

.recheck-page-shell .member-data-table th:nth-child(2),
.recheck-page-shell .member-data-table td[data-mobile-label="客户"] {
  width: 13% !important;
}

.recheck-page-shell .member-data-table th:nth-child(3),
.recheck-page-shell .member-data-table td[data-mobile-label="预约"] {
  width: 10% !important;
}

.recheck-page-shell .member-data-table th:nth-child(4),
.recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] {
  width: 25% !important;
}

.recheck-page-shell .member-data-table th:nth-child(5),
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] {
  width: 18% !important;
}

.recheck-page-shell .member-data-table th:nth-child(6),
.recheck-page-shell .member-data-table td[data-mobile-label="收费"] {
  width: 18% !important;
}

.recheck-page-shell .member-data-table th:nth-child(7),
.recheck-page-shell .member-data-table th.member-action-col,
.recheck-page-shell .member-data-table td.member-action-col {
  width: 12% !important;
  min-width: 150px !important;
}

.recheck-page-shell .member-core-cell,
.recheck-page-shell .member-group-cell,
.recheck-page-shell .member-row-actions,
.recheck-page-shell .member-benefit-stack,
.recheck-page-shell .tiantan-executor-compact {
  gap: 7px !important;
}

.recheck-page-shell .member-core-head strong,
.recheck-page-shell .member-card-title-row strong,
.recheck-page-shell .recheck-crm-name strong {
  color: #203b59 !important;
  font-size: 16px !important;
  line-height: 1.25 !important;
}

.recheck-page-shell .member-mini-field {
  gap: 7px !important;
}

.recheck-page-shell .member-mini-field span {
  font-size: 12px !important;
  font-weight: 820 !important;
  line-height: 1.25 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] .member-mini-field {
  grid-template-columns: 92px minmax(0, 1fr) !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-mini-field {
  grid-template-columns: 58px minmax(0, 1fr) !important;
}

.recheck-page-shell .tiantan-executor-summary {
  border-color: rgba(86, 118, 151, 0.16) !important;
  background: #f7fafc !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line {
  grid-template-columns: 30px minmax(0, 1fr) 42px !important;
  min-height: 40px !important;
  height: auto !important;
  padding: 5px 6px !important;
  border-color: rgba(86, 118, 151, 0.14) !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line label,
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line span,
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line small,
.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line em {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.recheck-page-shell .member-data-table td.member-action-col .member-row-actions {
  max-width: 160px !important;
  align-items: stretch !important;
}

.recheck-page-shell .member-data-table td.member-action-col .compact,
.recheck-page-shell .member-data-table td.member-action-col .link-button,
.recheck-page-shell .member-data-table td.member-action-col summary {
  width: 100% !important;
  min-height: 32px !important;
  padding: 6px 8px !important;
  font-size: 12px !important;
}

.recheck-page-shell .member-more-actions {
  position: relative !important;
  z-index: 5 !important;
}

.recheck-page-shell .member-more-actions[open] > div {
  display: grid !important;
  gap: 6px !important;
  min-width: 132px !important;
  padding: 8px !important;
  border: 1px solid var(--profile-line-strong) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 12px 26px rgba(39, 69, 102, 0.12) !important;
  position: absolute !important;
  right: 0 !important;
  top: calc(100% + 6px) !important;
}

.recheck-page-shell .member-data-table .member-more-actions[open] > div {
  position: static !important;
  min-width: 0 !important;
  margin-top: 6px !important;
  box-shadow: none !important;
}

.recheck-page-shell .member-card .member-more-actions[open] > div {
  position: absolute !important;
  right: 0 !important;
  top: calc(100% + 6px) !important;
}

.recheck-page-shell button:disabled,
.recheck-page-shell .link-button[aria-disabled="true"] {
  cursor: not-allowed !important;
  opacity: 0.52 !important;
  filter: grayscale(0.12) !important;
  transform: none !important;
  box-shadow: none !important;
}

.recheck-page-shell .has-warning td,
.recheck-page-shell .is-expiring td {
  background: #fffdf7 !important;
}

.recheck-page-shell .has-warning td:first-child,
.recheck-page-shell .is-expiring td:first-child {
  box-shadow: inset 3px 0 0 rgba(191, 137, 73, 0.55) !important;
}

.recheck-page-shell .crm-profile-command-bar {
  display: grid !important;
  grid-template-columns: minmax(260px, 1.2fr) auto minmax(340px, 1fr) !important;
  align-items: end !important;
}

.recheck-page-shell .crm-profile-mini-stats {
  justify-content: flex-end !important;
}

.recheck-page-shell .crm-profile-mini-stats span {
  padding: 7px 10px !important;
  background: #f3f8fd !important;
}

.recheck-page-shell .recheck-crm-table th,
.recheck-page-shell .recheck-crm-table td {
  padding: 10px 12px !important;
}

.recheck-page-shell .create-member-page label,
.recheck-page-shell .member-detail-edit-panel label {
  color: #526d88 !important;
  font-size: 13px !important;
  font-weight: 820 !important;
}

@media (max-width: 1280px) {
  .recheck-page-shell .member-query-panel,
  .recheck-page-shell .crm-profile-command-bar {
    grid-template-columns: 1fr 1fr !important;
  }

  .recheck-page-shell .member-query-actions,
  .recheck-page-shell .crm-profile-mini-stats {
    justify-content: flex-start !important;
  }
}

/* Local delivery polish 2026-06-03 round 2: unify detail, create, month and modal pages. */
.recheck-page-shell .crm-profile-detail-page,
.recheck-page-shell .member-detail-page,
.recheck-page-shell .create-member-page,
.recheck-page-shell .schedule-detail-shell {
  color: var(--profile-text) !important;
}

.recheck-page-shell .profile-detail-head,
.recheck-page-shell .member-detail-head,
.recheck-page-shell .create-member-form-card .modal-head,
.recheck-page-shell .schedule-detail-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 18px !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid var(--profile-line) !important;
}

.recheck-page-shell .profile-detail-head h3,
.recheck-page-shell .member-detail-head h3,
.recheck-page-shell .create-member-form-card .modal-head h3,
.recheck-page-shell .schedule-detail-head h2 {
  color: #20344a !important;
  font-size: clamp(22px, 1.65vw, 30px) !important;
  font-weight: 860 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.18 !important;
}

.recheck-page-shell .profile-detail-header-actions,
.recheck-page-shell .recheck-toolbar-actions,
.recheck-page-shell .profile-section-toggle-group,
.recheck-page-shell .profile-bb-actions,
.recheck-page-shell .unified-profile-links,
.recheck-page-shell .modal-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
}

.recheck-page-shell .profile-detail-back-button,
.recheck-page-shell .recheck-toolbar-actions .link-button,
.recheck-page-shell .profile-bb-actions .link-button,
.recheck-page-shell .unified-profile-links .link-button {
  min-height: 36px !important;
  padding: 8px 12px !important;
  border: 1px solid rgba(92, 122, 154, 0.22) !important;
  border-radius: 12px !important;
  background: linear-gradient(180deg, #ffffff, #f5f8fc) !important;
  color: #456987 !important;
  font-size: 13px !important;
  font-weight: 780 !important;
  text-decoration: none !important;
}

.recheck-page-shell .profile-detail-kpis,
.recheck-page-shell .member-detail-kpis,
.recheck-page-shell .schedule-workbench-overview,
.recheck-page-shell .profile-bb-summary {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
  gap: 10px !important;
}

.recheck-page-shell .profile-detail-kpis article,
.recheck-page-shell .member-detail-kpis article,
.recheck-page-shell .schedule-workbench-overview article,
.recheck-page-shell .profile-bb-summary article,
.recheck-page-shell .create-hero-chip {
  border: 1px solid var(--profile-line) !important;
  border-radius: 16px !important;
  background: #f8fbfe !important;
  box-shadow: none !important;
}

.recheck-page-shell .profile-detail-kpis span,
.recheck-page-shell .member-detail-kpis span,
.recheck-page-shell .schedule-workbench-overview span,
.recheck-page-shell .profile-bb-summary span,
.recheck-page-shell .create-hero-chip span {
  color: var(--profile-muted) !important;
  font-size: 12px !important;
  font-weight: 820 !important;
}

.recheck-page-shell .profile-detail-kpis strong,
.recheck-page-shell .member-detail-kpis strong,
.recheck-page-shell .schedule-workbench-overview strong,
.recheck-page-shell .profile-bb-summary strong,
.recheck-page-shell .create-hero-chip strong {
  color: #213b57 !important;
  font-size: clamp(18px, 1.35vw, 24px) !important;
  font-weight: 860 !important;
}

.recheck-page-shell .profile-detail-grid,
.recheck-page-shell .member-detail-grid,
.recheck-page-shell .modal-grid,
.recheck-page-shell .profile-bb-two-col {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
  gap: 12px !important;
}

.recheck-page-shell .profile-detail-card,
.recheck-page-shell .profile-bb-panel,
.recheck-page-shell .profile-followup-panel,
.recheck-page-shell .member-detail-grid section,
.recheck-page-shell .member-detail-edit-group,
.recheck-page-shell .member-service-flow-panel,
.recheck-page-shell .create-member-section,
.recheck-page-shell .schedule-month-workbench,
.recheck-page-shell .workbench-entry-board {
  border: 1px solid var(--profile-line) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  box-shadow: 0 10px 24px rgba(43, 73, 108, 0.055) !important;
}

.recheck-page-shell .profile-detail-card h4,
.recheck-page-shell .profile-bb-panel h4,
.recheck-page-shell .profile-followup-panel h4,
.recheck-page-shell .member-detail-grid h4,
.recheck-page-shell .member-service-flow-panel h4,
.recheck-page-shell .create-section-title strong,
.recheck-page-shell .schedule-month-workbench h3,
.recheck-page-shell .tiantan-service-entry-head strong {
  color: #233b55 !important;
  font-size: 16px !important;
  font-weight: 850 !important;
}

.recheck-page-shell .profile-detail-list div,
.recheck-page-shell .member-detail-list div {
  border-bottom: 1px solid rgba(103, 126, 153, 0.12) !important;
  padding: 9px 0 !important;
}

.recheck-page-shell .profile-detail-list dt,
.recheck-page-shell .member-detail-list dt {
  color: #6f8094 !important;
  font-size: 12px !important;
  font-weight: 820 !important;
}

.recheck-page-shell .profile-detail-list dd,
.recheck-page-shell .member-detail-list dd {
  color: #26384c !important;
  font-size: 14px !important;
  font-weight: 680 !important;
  line-height: 1.5 !important;
}

.recheck-page-shell .profile-followup-form,
.recheck-page-shell .member-detail-edit-grid,
.recheck-page-shell .create-member-grid {
  gap: 12px !important;
}

.recheck-page-shell .profile-followup-form label,
.recheck-page-shell .member-detail-edit-grid label,
.recheck-page-shell .create-member-grid label {
  color: #526d88 !important;
  font-size: 13px !important;
  font-weight: 820 !important;
}

.recheck-page-shell .profile-followup-form input,
.recheck-page-shell .profile-followup-form textarea,
.recheck-page-shell .member-detail-edit-grid input,
.recheck-page-shell .member-detail-edit-grid select,
.recheck-page-shell .member-detail-edit-grid textarea,
.recheck-page-shell .create-member-grid input,
.recheck-page-shell .create-member-grid select,
.recheck-page-shell .create-member-grid textarea {
  min-height: 42px !important;
  border-radius: 12px !important;
  border-color: rgba(93, 123, 156, 0.24) !important;
  background: #fff !important;
  color: #24364b !important;
  font-size: 14px !important;
  font-weight: 650 !important;
}

.recheck-page-shell .create-service-card-grid,
.recheck-page-shell .schedule-month-grid,
.recheck-page-shell .member-service-flow,
.recheck-page-shell .workbench-entry-board {
  gap: 10px !important;
}

.recheck-page-shell .create-service-card,
.recheck-page-shell .schedule-month-card,
.recheck-page-shell .member-flow-step,
.recheck-page-shell .workbench-entry-card {
  border: 1px solid rgba(93, 123, 156, 0.18) !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #ffffff, #f7fafc) !important;
  color: #2b4158 !important;
  box-shadow: none !important;
}

.recheck-page-shell .create-service-card.active,
.recheck-page-shell .schedule-month-card.active,
.recheck-page-shell .member-flow-step.is-current,
.recheck-page-shell .workbench-entry-card:hover {
  border-color: rgba(77, 137, 200, 0.38) !important;
  background: #eef6ff !important;
  color: #275f97 !important;
}

.recheck-page-shell .member-table-tools,
.recheck-page-shell .member-pagination,
.recheck-page-shell .recheck-summary-note {
  border: 1px solid var(--profile-line) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: none !important;
}

.recheck-page-shell .member-pagination-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}

.recheck-page-shell .modal-backdrop {
  background: rgba(30, 45, 64, 0.28) !important;
  backdrop-filter: blur(4px) !important;
}

.recheck-page-shell .recheck-modal {
  border: 1px solid var(--profile-line) !important;
  border-radius: 20px !important;
  background: #fbfdff !important;
  box-shadow: 0 24px 70px rgba(28, 55, 88, 0.18) !important;
}

.recheck-page-shell .empty-state,
.recheck-page-shell .result-box {
  border-radius: 16px !important;
  font-size: 14px !important;
  line-height: 1.55 !important;
}

.recheck-page-shell .result-box.success {
  border-color: rgba(59, 143, 114, 0.22) !important;
  background: #f0faf6 !important;
  color: #2f7c64 !important;
}

.recheck-page-shell .result-box.warn,
.recheck-page-shell .empty-state.warn {
  border-color: rgba(191, 137, 73, 0.24) !important;
  background: #fffaf0 !important;
  color: #8f6230 !important;
}

@media (max-width: 1360px) {
  .recheck-page-shell .profile-detail-head,
  .recheck-page-shell .member-detail-head,
  .recheck-page-shell .create-member-form-card .modal-head,
  .recheck-page-shell .schedule-detail-head {
    flex-direction: column !important;
  }
}

/* Local delivery table stabilization 2026-06-03: keep the paid-member PC table readable without changing layout. */
@media (min-width: 900px) {
  .recheck-page-shell .member-scroll-table {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: visible !important;
  }

  .recheck-page-shell .member-data-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
  }

  .recheck-page-shell .member-data-table th,
  .recheck-page-shell .member-data-table td {
    min-width: 0 !important;
    max-width: none !important;
    padding: 9px 8px !important;
    vertical-align: top !important;
  }

  .recheck-page-shell .member-data-table th.member-select-col,
  .recheck-page-shell .member-data-table td.member-select-col {
    width: 34px !important;
    min-width: 34px !important;
    padding-left: 6px !important;
    padding-right: 4px !important;
  }

  .recheck-page-shell .member-data-table th:nth-child(2),
  .recheck-page-shell .member-data-table td[data-mobile-label="客户"] {
    width: 17% !important;
  }

  .recheck-page-shell .member-data-table th:nth-child(3),
  .recheck-page-shell .member-data-table td[data-mobile-label="预约"] {
    width: 8% !important;
  }

  .recheck-page-shell .member-data-table th:nth-child(4),
  .recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] {
    width: 24% !important;
  }

  .recheck-page-shell .member-data-table th:nth-child(5),
  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] {
    width: 23% !important;
  }

  .recheck-page-shell .member-data-table th:nth-child(6),
  .recheck-page-shell .member-data-table td[data-mobile-label="收费"] {
    width: 16% !important;
  }

  .recheck-page-shell .member-data-table th:nth-child(7),
  .recheck-page-shell .member-data-table th.member-action-col,
  .recheck-page-shell .member-data-table td.member-action-col {
    width: 12% !important;
    min-width: 0 !important;
  }

  .recheck-page-shell .member-core-cell,
  .recheck-page-shell .member-group-cell,
  .recheck-page-shell .member-benefit-stack,
  .recheck-page-shell .member-row-actions,
  .recheck-page-shell .tiantan-executor-compact,
  .recheck-page-shell .tiantan-executor-summary,
  .recheck-page-shell .tiantan-executor-lines {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .recheck-page-shell .member-core-head strong,
  .recheck-page-shell .member-core-head span,
  .recheck-page-shell .member-mini-field,
  .recheck-page-shell .member-mini-field span,
  .recheck-page-shell .member-mini-field strong,
  .recheck-page-shell .member-mini-field small {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .recheck-page-shell .member-core-head strong,
  .recheck-page-shell .member-mini-field strong,
  .recheck-page-shell .member-mini-field small {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .recheck-page-shell .member-cell-input {
    width: 100% !important;
    min-width: 0 !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 7px 8px !important;
    font-size: 13px !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] .member-mini-field {
    grid-template-columns: 76px minmax(0, 1fr) !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-mini-field {
    grid-template-columns: 50px minmax(0, 1fr) !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="预约"] .member-group-cell {
    gap: 7px !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="预约"] .member-mini-field {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 4px !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="预约"] .member-mini-field span {
    font-size: 11px !important;
    line-height: 1.1 !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="预约"] .member-cell-input {
    width: 100% !important;
    min-width: 0 !important;
    height: 34px !important;
    min-height: 34px !important;
    font-size: 12px !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary {
    grid-template-columns: 56px minmax(0, 1fr) !important;
    padding: 5px 7px !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-lines {
    gap: 5px !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    min-height: 56px !important;
    padding: 5px 6px !important;
    row-gap: 2px !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line label,
  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line span,
  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line small,
  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line em {
    min-width: 0 !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line label {
    display: none !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line span {
    font-size: 12px !important;
    font-weight: 820 !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line small {
    font-size: 10.5px !important;
    color: #6d7f95 !important;
    display: -webkit-box !important;
    white-space: normal !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line em {
    font-size: 10.5px !important;
    text-align: left !important;
    color: #2d6f9f !important;
  }

  .recheck-page-shell .member-data-table td.member-action-col .member-row-actions {
    width: 100% !important;
    max-width: 136px !important;
    gap: 6px !important;
  }

  .recheck-page-shell .member-data-table td.member-action-col .compact,
  .recheck-page-shell .member-data-table td.member-action-col .link-button,
  .recheck-page-shell .member-data-table td.member-action-col summary {
    min-height: 30px !important;
    padding: 5px 7px !important;
    font-size: 11.5px !important;
  }
}

/* Local delivery final fit pass 2026-06-03: clean remaining PC table squeeze points. */
@media (min-width: 900px) {
  .recheck-page-shell .recheck-crm-table-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: visible !important;
  }

  .recheck-page-shell .recheck-crm-table {
    width: 100% !important;
    min-width: 0 !important;
    table-layout: fixed !important;
  }

  .recheck-page-shell .recheck-crm-table th,
  .recheck-page-shell .recheck-crm-table td {
    min-width: 0 !important;
    padding: 10px 9px !important;
  }

  .recheck-page-shell .recheck-crm-table td strong,
  .recheck-page-shell .recheck-crm-table td span {
    min-width: 0 !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .recheck-page-shell .recheck-crm-table td:first-child strong {
    display: -webkit-box !important;
    overflow: hidden !important;
    white-space: normal !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    line-height: 1.25 !important;
  }

  .recheck-page-shell .recheck-crm-row-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
  }

  .recheck-page-shell .recheck-crm-row-actions .compact {
    min-height: 30px !important;
    padding: 5px 8px !important;
    font-size: 12px !important;
  }

  .recheck-page-shell .member-table-tools {
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: center !important;
  }

  .recheck-page-shell .member-table-tools-secondary {
    min-width: 150px !important;
    justify-self: end !important;
  }

  .recheck-page-shell .member-table-more {
    position: relative !important;
  }

  .recheck-page-shell .member-table-more summary {
    min-width: 110px !important;
  }

  .recheck-page-shell .member-table-more[open] .member-batch-actions {
    position: absolute !important;
    right: 0 !important;
    top: calc(100% + 8px) !important;
    z-index: 18 !important;
    width: 310px !important;
    min-width: 310px !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    padding: 10px !important;
    border: 1px solid var(--profile-line-strong) !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 16px 36px rgba(31, 62, 96, 0.14) !important;
  }

  .recheck-page-shell .member-table-more[open] .member-batch-actions span {
    grid-column: 1 / -1 !important;
    min-width: 0 !important;
  }

  .recheck-page-shell .member-core-head strong {
    display: -webkit-box !important;
    overflow: hidden !important;
    white-space: normal !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    line-height: 1.25 !important;
  }

  .recheck-page-shell .member-core-head small {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }

  .recheck-page-shell .tiantan-executor-summary small {
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

/* Local delivery final calm pass 2026-06-03: PC paid-member readability and click stability. */
@media (min-width: 900px) {
  .recheck-page-shell .member-query-shell {
    gap: 12px !important;
  }

  .recheck-page-shell .member-query-panel {
    grid-template-columns: minmax(112px, 0.75fr) minmax(178px, 1.05fr) minmax(138px, 0.8fr) minmax(132px, 0.75fr) minmax(132px, 0.75fr) minmax(300px, 1.5fr) !important;
    align-items: end !important;
    gap: 9px !important;
    padding: 11px 12px !important;
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.92) !important;
  }

  .recheck-page-shell .member-query-field {
    min-width: 0 !important;
    gap: 5px !important;
  }

  .recheck-page-shell .member-query-field span,
  .recheck-page-shell .member-mini-field span,
  .recheck-page-shell .member-data-table th {
    color: #5c748d !important;
    font-weight: 760 !important;
    letter-spacing: 0 !important;
  }

  .recheck-page-shell .member-query-panel select,
  .recheck-page-shell .member-query-panel input,
  .recheck-page-shell .member-query-panel .recheck-date-trigger {
    min-height: 39px !important;
    height: 39px !important;
    padding: 8px 10px !important;
    font-size: 13px !important;
    font-weight: 650 !important;
    border-radius: 12px !important;
  }

  .recheck-page-shell .member-query-actions {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 7px !important;
    min-width: 0 !important;
  }

  .recheck-page-shell .member-query-actions button {
    min-width: 0 !important;
    min-height: 39px !important;
    height: 39px !important;
    padding: 0 9px !important;
    border-radius: 12px !important;
    font-size: 12.5px !important;
    font-weight: 760 !important;
    white-space: nowrap !important;
  }

  .recheck-page-shell .member-summary-row {
    gap: 8px !important;
  }

  .recheck-page-shell .member-summary-row article {
    min-height: 68px !important;
    padding: 10px 12px !important;
    border-radius: 15px !important;
    background: linear-gradient(180deg, #ffffff, #f7fbff) !important;
    box-shadow: none !important;
  }

  .recheck-page-shell .member-summary-row span {
    color: #6b7f94 !important;
    font-size: 12px !important;
  }

  .recheck-page-shell .member-summary-row strong {
    color: #274663 !important;
    font-size: 20px !important;
    line-height: 1.1 !important;
  }

  .recheck-page-shell .member-table-tools {
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    margin-top: 10px !important;
  }

  .recheck-page-shell .member-table-tools-primary {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
  }

  .recheck-page-shell .member-page-size {
    flex-wrap: wrap !important;
    gap: 7px !important;
  }

  .recheck-page-shell .member-page-hint {
    color: #718399 !important;
    font-size: 12px !important;
  }

  .recheck-page-shell .member-scroll-table {
    overflow-x: auto !important;
    padding: 8px !important;
    border-radius: 18px !important;
  }

  .recheck-page-shell .member-data-table {
    width: 100% !important;
    min-width: 1480px !important;
    table-layout: fixed !important;
    border-spacing: 0 6px !important;
  }

  .recheck-page-shell .member-data-table th,
  .recheck-page-shell .member-data-table td {
    box-sizing: border-box !important;
    min-width: 0 !important;
    padding: 8px 7px !important;
    vertical-align: top !important;
  }

  .recheck-page-shell .member-data-table th {
    height: 34px !important;
    font-size: 12px !important;
    background: #f2f7fc !important;
  }

  .recheck-page-shell .member-data-table td {
    font-size: 13px !important;
    line-height: 1.35 !important;
    background: rgba(255, 255, 255, 0.96) !important;
  }

  .recheck-page-shell .member-data-table th.member-select-col,
  .recheck-page-shell .member-data-table td.member-select-col {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
  }

  .recheck-page-shell .member-data-table th:nth-child(2),
  .recheck-page-shell .member-data-table td[data-mobile-label="客户"] {
    width: 176px !important;
  }

  .recheck-page-shell .member-data-table th:nth-child(3),
  .recheck-page-shell .member-data-table td[data-mobile-label="预约"] {
    width: 126px !important;
  }

  .recheck-page-shell .member-data-table th:nth-child(4),
  .recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] {
    width: 346px !important;
  }

  .recheck-page-shell .member-data-table th:nth-child(5),
  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] {
    width: 246px !important;
  }

  .recheck-page-shell .member-data-table th:nth-child(6),
  .recheck-page-shell .member-data-table td[data-mobile-label="收费"] {
    width: 286px !important;
  }

  .recheck-page-shell .member-data-table th:nth-child(7),
  .recheck-page-shell .member-data-table th.member-action-col,
  .recheck-page-shell .member-data-table td.member-action-col {
    width: 166px !important;
    min-width: 166px !important;
    max-width: 166px !important;
  }

  .recheck-page-shell .member-core-cell {
    gap: 5px !important;
    max-width: 100% !important;
  }

  .recheck-page-shell .member-core-head {
    gap: 5px !important;
  }

  .recheck-page-shell .member-core-head strong {
    color: #243f5a !important;
    font-size: 15px !important;
    line-height: 1.23 !important;
    -webkit-line-clamp: 2 !important;
  }

  .recheck-page-shell .member-core-head small,
  .recheck-page-shell .member-core-hint {
    color: #708299 !important;
    font-size: 11.5px !important;
  }

  .recheck-page-shell .member-core-phone,
  .recheck-page-shell .member-core-edit {
    gap: 5px !important;
  }

  .recheck-page-shell .member-core-edit {
    grid-template-columns: 34px minmax(0, 1fr) !important;
  }

  .recheck-page-shell .member-cell-input {
    min-width: 0 !important;
    width: 100% !important;
    min-height: 35px !important;
    height: 35px !important;
    padding: 7px 8px !important;
    border-radius: 10px !important;
    font-size: 12.5px !important;
    line-height: 1.25 !important;
  }

  .recheck-page-shell .member-group-cell {
    gap: 7px !important;
  }

  .recheck-page-shell .member-mini-field {
    gap: 4px !important;
    min-width: 0 !important;
  }

  .recheck-page-shell .member-mini-field span {
    font-size: 11.5px !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] .member-mini-field {
    grid-template-columns: 82px minmax(0, 1fr) !important;
    align-items: center !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-mini-field {
    grid-template-columns: 54px minmax(0, 1fr) !important;
    align-items: center !important;
  }

  .recheck-page-shell .member-benefit-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  .recheck-page-shell .member-benefit-button,
  .recheck-page-shell .member-lock-chip {
    min-width: 0 !important;
    min-height: 30px !important;
    padding: 5px 6px !important;
    font-size: 11.5px !important;
    border-radius: 10px !important;
    white-space: normal !important;
  }

  .recheck-page-shell .tiantan-executor-compact {
    gap: 6px !important;
  }

  .recheck-page-shell .tiantan-executor-summary {
    grid-template-columns: 54px minmax(0, 1fr) !important;
    min-height: 30px !important;
    padding: 5px 7px !important;
    border-radius: 11px !important;
  }

  .recheck-page-shell .tiantan-executor-summary span,
  .recheck-page-shell .tiantan-executor-summary small {
    font-size: 11.5px !important;
    min-width: 0 !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-lines {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 5px !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line {
    grid-template-columns: minmax(0, 1fr) auto !important;
    min-height: 43px !important;
    padding: 5px 6px !important;
    row-gap: 2px !important;
    border-radius: 10px !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line label {
    display: none !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line span {
    font-size: 12px !important;
    color: #2b445f !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line small {
    grid-column: 1 / -1 !important;
    font-size: 10.5px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line em {
    font-size: 10.5px !important;
    color: #2c789d !important;
  }

  .recheck-page-shell .member-row-actions {
    gap: 5px !important;
    max-width: 100% !important;
  }

  .recheck-page-shell .member-data-table td.member-action-col .member-row-actions {
    max-width: 100% !important;
  }

  .recheck-page-shell .member-data-table td.member-action-col .compact,
  .recheck-page-shell .member-data-table td.member-action-col .link-button,
  .recheck-page-shell .member-data-table td.member-action-col summary {
    min-height: 30px !important;
    height: 30px !important;
    padding: 5px 7px !important;
    font-size: 11.5px !important;
    border-radius: 10px !important;
  }

  .recheck-page-shell .member-handled-check,
  .recheck-page-shell .member-save-chip {
    min-height: 28px !important;
    padding: 4px 7px !important;
    font-size: 11.5px !important;
    border-radius: 10px !important;
  }

  .recheck-page-shell .member-more-actions {
    position: relative !important;
    z-index: 20 !important;
  }

  .recheck-page-shell .member-data-table .member-more-actions[open] > div {
    position: absolute !important;
    right: 0 !important;
    top: calc(100% + 5px) !important;
    z-index: 80 !important;
    min-width: 136px !important;
    display: grid !important;
    gap: 6px !important;
    padding: 7px !important;
    border: 1px solid rgba(93, 123, 156, 0.24) !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    box-shadow: 0 14px 32px rgba(38, 65, 93, 0.16) !important;
  }

  .recheck-page-shell .member-more-actions[open] > div > * {
    width: 100% !important;
  }
}

/* Local delivery all-page refinement 2026-06-03: keep non-list pages calm and consistent without changing structure. */
.recheck-page-shell .crm-profile-detail-page,
.recheck-page-shell .member-detail-page,
.recheck-page-shell .create-member-page,
.recheck-page-shell .schedule-detail-shell {
  color: #263c55 !important;
}

.recheck-page-shell .crm-profile-hero,
.recheck-page-shell .crm-profile-detail-hero,
.recheck-page-shell .member-detail-hero,
.recheck-page-shell .create-member-form-card,
.recheck-page-shell .member-detail-edit-panel,
.recheck-page-shell .profile-detail-card,
.recheck-page-shell .profile-followup-panel,
.recheck-page-shell .profile-bb-panel,
.recheck-page-shell .member-detail-grid section,
.recheck-page-shell .member-detail-edit-group,
.recheck-page-shell .create-member-section,
.recheck-page-shell .selected-crm-profile-card {
  border-color: rgba(93, 123, 156, 0.16) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 12px 30px rgba(43, 73, 108, 0.06) !important;
}

.recheck-page-shell .crm-profile-hero-copy strong,
.recheck-page-shell .crm-profile-detail-hero-copy strong,
.recheck-page-shell .member-detail-hero-copy strong,
.recheck-page-shell .profile-detail-head h3,
.recheck-page-shell .member-detail-head h3,
.recheck-page-shell .create-member-form-card .modal-head h3,
.recheck-page-shell .profile-detail-card h4,
.recheck-page-shell .profile-followup-panel h4,
.recheck-page-shell .profile-bb-panel h4,
.recheck-page-shell .member-detail-grid h4,
.recheck-page-shell .create-section-title strong,
.recheck-page-shell .member-detail-edit-group-head strong {
  color: #263f5b !important;
  font-weight: 820 !important;
  letter-spacing: -0.01em !important;
}

.recheck-page-shell .crm-profile-hero-copy strong,
.recheck-page-shell .crm-profile-detail-hero-copy strong,
.recheck-page-shell .member-detail-hero-copy strong {
  font-size: clamp(24px, 2.4vw, 34px) !important;
  line-height: 1.12 !important;
}

.recheck-page-shell .crm-profile-hero-copy p,
.recheck-page-shell .crm-profile-detail-hero-copy p,
.recheck-page-shell .member-detail-hero-copy p,
.recheck-page-shell .create-page-subtitle,
.recheck-page-shell .create-section-title span,
.recheck-page-shell .member-detail-edit-group-head span,
.recheck-page-shell .profile-detail-list dt,
.recheck-page-shell .member-detail-list dt {
  color: #718399 !important;
  font-size: 13px !important;
  line-height: 1.48 !important;
}

.recheck-page-shell .crm-profile-hero-facts article,
.recheck-page-shell .crm-profile-detail-hero-facts article,
.recheck-page-shell .member-detail-hero-facts article,
.recheck-page-shell .profile-detail-kpis article,
.recheck-page-shell .member-detail-kpis article,
.recheck-page-shell .create-hero-chip,
.recheck-page-shell .profile-bb-summary article {
  border-color: rgba(93, 123, 156, 0.14) !important;
  background: linear-gradient(180deg, #ffffff, #f7fbff) !important;
  box-shadow: none !important;
}

.recheck-page-shell .crm-profile-hero-facts span,
.recheck-page-shell .crm-profile-detail-hero-facts span,
.recheck-page-shell .member-detail-hero-facts span,
.recheck-page-shell .profile-detail-kpis span,
.recheck-page-shell .member-detail-kpis span,
.recheck-page-shell .create-hero-chip span,
.recheck-page-shell .profile-bb-summary span {
  color: #718399 !important;
  font-size: 12px !important;
  font-weight: 760 !important;
}

.recheck-page-shell .crm-profile-hero-facts strong,
.recheck-page-shell .crm-profile-detail-hero-facts strong,
.recheck-page-shell .member-detail-hero-facts strong,
.recheck-page-shell .profile-detail-kpis strong,
.recheck-page-shell .member-detail-kpis strong,
.recheck-page-shell .create-hero-chip strong,
.recheck-page-shell .profile-bb-summary strong {
  color: #2c4b69 !important;
  font-weight: 820 !important;
}

.recheck-page-shell .crm-profile-command-bar,
.recheck-page-shell .profile-detail-head,
.recheck-page-shell .member-detail-head,
.recheck-page-shell .create-member-form-card .modal-head,
.recheck-page-shell .schedule-detail-head,
.recheck-page-shell .member-detail-actions,
.recheck-page-shell .create-page-hero,
.recheck-page-shell .detail-next-strip {
  border-color: rgba(93, 123, 156, 0.15) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  box-shadow: none !important;
}

.recheck-page-shell .crm-profile-command-bar input,
.recheck-page-shell .profile-followup-form input,
.recheck-page-shell .profile-followup-form textarea,
.recheck-page-shell .member-detail-edit-grid input,
.recheck-page-shell .member-detail-edit-grid select,
.recheck-page-shell .member-detail-edit-grid textarea,
.recheck-page-shell .create-member-grid input,
.recheck-page-shell .create-member-grid select,
.recheck-page-shell .create-member-grid textarea {
  min-height: 40px !important;
  border-color: rgba(93, 123, 156, 0.22) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #263c55 !important;
  font-size: 13.5px !important;
  font-weight: 650 !important;
  line-height: 1.32 !important;
}

.recheck-page-shell .profile-followup-form label,
.recheck-page-shell .member-detail-edit-grid label,
.recheck-page-shell .create-member-grid label,
.recheck-page-shell .crm-profile-search-field span {
  color: #5f7690 !important;
  font-size: 12px !important;
  font-weight: 780 !important;
}

.recheck-page-shell .profile-detail-header-actions,
.recheck-page-shell .member-detail-actions,
.recheck-page-shell .modal-actions,
.recheck-page-shell .profile-section-toggle-group,
.recheck-page-shell .profile-bb-actions,
.recheck-page-shell .unified-profile-links,
.recheck-page-shell .crm-profile-hero-actions,
.recheck-page-shell .member-detail-action-grid {
  gap: 8px !important;
}

.recheck-page-shell .profile-detail-header-actions > *,
.recheck-page-shell .member-detail-actions a,
.recheck-page-shell .member-detail-actions button,
.recheck-page-shell .modal-actions > *,
.recheck-page-shell .profile-section-toggle-group > *,
.recheck-page-shell .profile-bb-actions > *,
.recheck-page-shell .unified-profile-links > *,
.recheck-page-shell .crm-profile-hero-actions > *,
.recheck-page-shell .crm-profile-search-actions > * {
  min-height: 34px !important;
  border-radius: 11px !important;
  font-size: 12.5px !important;
  font-weight: 760 !important;
}

.recheck-page-shell .create-service-card,
.recheck-page-shell .member-flow-step,
.recheck-page-shell .schedule-month-card,
.recheck-page-shell .workbench-entry-card {
  border-color: rgba(93, 123, 156, 0.16) !important;
  background: linear-gradient(180deg, #ffffff, #f7fbff) !important;
  color: #2c435d !important;
  box-shadow: none !important;
}

.recheck-page-shell .create-service-card.active,
.recheck-page-shell .member-flow-step.is-current,
.recheck-page-shell .schedule-month-card.active,
.recheck-page-shell .workbench-entry-card.active {
  border-color: rgba(77, 137, 200, 0.34) !important;
  background: #eef6ff !important;
  color: #2f6fa8 !important;
}

.recheck-page-shell .profile-detail-list div,
.recheck-page-shell .member-detail-list div {
  border-color: rgba(93, 123, 156, 0.12) !important;
  gap: 10px !important;
}

.recheck-page-shell .profile-detail-list dd,
.recheck-page-shell .member-detail-list dd {
  color: #2b435d !important;
  font-size: 13.5px !important;
  line-height: 1.42 !important;
}

.recheck-page-shell .empty-state,
.recheck-page-shell .result-box,
.recheck-page-shell .modal-list article {
  border-color: rgba(93, 123, 156, 0.14) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: #435a73 !important;
}

/* Local delivery viewport fit 2026-06-03: keep service entrances and filter exports inside PC viewport. */
@media (min-width: 900px) {
  .recheck-page-shell .crm-main-content,
  .recheck-page-shell .recheck-main-content,
  .recheck-page-shell .member-query-shell {
    min-width: 0 !important;
  }

  .recheck-page-shell .member-query-shell {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: none !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: clip !important;
  }

  .recheck-page-shell .member-query-shell > * {
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .recheck-page-shell .workbench-entry-board,
  .recheck-page-shell .tiantan-service-entry-board {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)) !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .recheck-page-shell .workbench-entry-card,
  .recheck-page-shell .tiantan-service-card {
    min-width: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .recheck-page-shell .workbench-entry-card strong,
  .recheck-page-shell .workbench-entry-card p,
  .recheck-page-shell .workbench-entry-card small {
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
  }

  .recheck-page-shell .member-query-actions .member-query-export-button {
    letter-spacing: 0 !important;
    padding-left: 7px !important;
    padding-right: 7px !important;
  }
}

/* Local delivery table fit 2026-06-03: reduce paid-member table width for 1280px PC reading. */
@media (min-width: 900px) {
  .recheck-page-shell .member-scroll-table {
    overflow-x: auto !important;
    padding: 7px !important;
  }

  .recheck-page-shell .member-data-table {
    min-width: 1180px !important;
    width: 1180px !important;
    max-width: 1180px !important;
    table-layout: fixed !important;
  }

  .recheck-page-shell .member-data-table th.member-select-col,
  .recheck-page-shell .member-data-table td.member-select-col {
    width: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
  }

  .recheck-page-shell .member-data-table th:nth-child(2),
  .recheck-page-shell .member-data-table td[data-mobile-label="客户"] {
    width: 148px !important;
  }

  .recheck-page-shell .member-data-table th:nth-child(3),
  .recheck-page-shell .member-data-table td[data-mobile-label="预约"] {
    width: 112px !important;
  }

  .recheck-page-shell .member-data-table th:nth-child(4),
  .recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] {
    width: 292px !important;
  }

  .recheck-page-shell .member-data-table th:nth-child(5),
  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] {
    width: 202px !important;
  }

  .recheck-page-shell .member-data-table th:nth-child(6),
  .recheck-page-shell .member-data-table td[data-mobile-label="收费"] {
    width: 232px !important;
  }

  .recheck-page-shell .member-data-table th:nth-child(7),
  .recheck-page-shell .member-data-table th.member-action-col,
  .recheck-page-shell .member-data-table td.member-action-col {
    width: 162px !important;
    min-width: 162px !important;
    max-width: 162px !important;
  }

  .recheck-page-shell .member-data-table th,
  .recheck-page-shell .member-data-table td {
    padding: 7px 6px !important;
  }

  .recheck-page-shell .member-core-head strong {
    font-size: 14px !important;
    line-height: 1.2 !important;
  }

  .recheck-page-shell .member-core-head small,
  .recheck-page-shell .member-core-hint,
  .recheck-page-shell .member-row-warning,
  .recheck-page-shell .member-row-ok {
    font-size: 11px !important;
    line-height: 1.2 !important;
  }

  .recheck-page-shell .member-cell-input {
    min-height: 32px !important;
    height: 32px !important;
    padding: 6px 7px !important;
    font-size: 12px !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] .member-mini-field {
    grid-template-columns: 72px minmax(0, 1fr) !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="收费"] .member-mini-field {
    grid-template-columns: 46px minmax(0, 1fr) !important;
  }

  .recheck-page-shell .member-mini-field span {
    font-size: 10.8px !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-lines {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line {
    min-height: 31px !important;
    padding: 4px 5px !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line span {
    font-size: 11.5px !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line small,
  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line em {
    font-size: 10px !important;
  }

  .recheck-page-shell .member-benefit-stack {
    grid-template-columns: 1fr !important;
    gap: 4px !important;
  }

  .recheck-page-shell .member-benefit-button,
  .recheck-page-shell .member-lock-chip {
    min-height: 27px !important;
    padding: 4px 5px !important;
    font-size: 10.8px !important;
  }

  .recheck-page-shell .member-data-table td.member-action-col .compact,
  .recheck-page-shell .member-data-table td.member-action-col .link-button,
  .recheck-page-shell .member-data-table td.member-action-col summary,
  .recheck-page-shell .member-handled-check,
  .recheck-page-shell .member-save-chip {
    min-height: 28px !important;
    height: auto !important;
    padding: 4px 6px !important;
    font-size: 11px !important;
  }
}

/* Local delivery intelligence 2026-06-03: executor summary and profile linkage chips. */
.recheck-page-shell .member-executor-summary-kpis {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 8px 0 10px;
}

.recheck-page-shell .member-executor-summary-kpis article {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(93, 123, 156, 0.14);
  border-radius: 13px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 249, 253, 0.9));
}

.recheck-page-shell .member-executor-summary-kpis article.warn {
  border-color: rgba(204, 114, 57, 0.24);
  background: linear-gradient(180deg, rgba(255, 252, 248, 0.98), rgba(255, 246, 238, 0.9));
}

.recheck-page-shell .member-executor-summary-kpis span {
  display: block;
  color: #6a7d92;
  font-size: 11px;
  font-weight: 780;
}

.recheck-page-shell .member-executor-summary-kpis strong {
  display: block;
  margin-top: 3px;
  color: #223a55;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.15;
}

.recheck-page-shell .member-executor-summary-grid article em,
.recheck-page-shell .member-executor-summary-grid article small {
  display: block;
  min-width: 0;
  color: #687e94;
  font-size: 11px;
  font-style: normal;
  line-height: 1.25;
}

.recheck-page-shell .member-executor-summary-grid article em {
  color: #42637f;
  font-weight: 780;
}

.recheck-page-shell .member-profile-linkage {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
  min-width: 0;
}

.recheck-page-shell .member-profile-linkage .crm-match-chip {
  min-height: 20px;
  padding: 3px 6px;
  border-radius: 999px;
  font-size: 10.5px;
  line-height: 1;
  white-space: nowrap;
}

.recheck-page-shell .member-profile-link {
  min-height: 20px;
  padding: 3px 7px;
  border: 1px solid rgba(67, 126, 190, 0.22);
  border-radius: 999px;
  background: #fff;
  color: #2d6da6;
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
}

.recheck-page-shell .member-profile-link:hover {
  border-color: rgba(67, 126, 190, 0.38);
  background: #eef6ff;
}

/* Local delivery clarity 2026-06-04: keep the member table structure, improve text hierarchy and row intelligence. */
.recheck-page-shell .member-data-table tbody tr.has-warning td,
.recheck-page-shell .member-data-table tbody tr.is-expiring td {
  background: linear-gradient(90deg, rgba(255, 249, 238, 0.98), rgba(255, 255, 255, 0.98)) !important;
}

.recheck-page-shell .member-data-table tbody tr.has-warning td:first-child,
.recheck-page-shell .member-data-table tbody tr.is-expiring td:first-child {
  box-shadow: inset 4px 0 0 rgba(211, 129, 70, 0.68) !important;
}

.recheck-page-shell .member-core-head strong {
  letter-spacing: -0.02em !important;
}

.recheck-page-shell .member-core-head small,
.recheck-page-shell .member-core-hint,
.recheck-page-shell .member-mini-field span,
.recheck-page-shell .tiantan-executor-line small,
.recheck-page-shell .tiantan-executor-line em {
  color: #728398 !important;
}

.recheck-page-shell .has-warning .member-core-head small,
.recheck-page-shell .is-expiring .member-core-head small,
.recheck-page-shell .has-warning .member-core-hint,
.recheck-page-shell .is-expiring .member-core-hint {
  color: #9a5a20 !important;
}

.recheck-page-shell .member-smart-signals {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  min-width: 0;
  padding: 6px;
  border: 1px solid rgba(96, 123, 150, 0.12);
  border-radius: 11px;
  background: rgba(247, 250, 253, 0.76);
}

.recheck-page-shell .member-smart-signal {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-size: 10.5px;
  line-height: 1.15;
}

.recheck-page-shell .member-smart-signal b,
.recheck-page-shell .member-smart-signal em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recheck-page-shell .member-smart-signal b {
  color: #6c7d91;
  font-weight: 850;
}

.recheck-page-shell .member-smart-signal em {
  color: #263e59;
  font-style: normal;
  font-weight: 880;
}

.recheck-page-shell .member-smart-signal.ok em {
  color: #2f6f5d;
}

.recheck-page-shell .member-smart-signal.warn em {
  color: #9a5a20;
}

.recheck-page-shell .member-smart-signal.muted em {
  color: #7a8796;
  font-weight: 760;
}

/* Local delivery wide table fill 2026-06-06: use full PC content width instead of leaving a blank right side. */
@media (min-width: 900px) {
  .recheck-page-shell .member-scroll-table {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
  }

  .recheck-page-shell .member-data-table {
    width: 100% !important;
    max-width: none !important;
    min-width: 1180px !important;
  }
}

/* Local delivery readable table columns 2026-06-06: widen customer info after full-width table fill. */
@media (min-width: 900px) {
  .recheck-page-shell .member-data-table {
    min-width: 1360px !important;
    width: 100% !important;
    max-width: none !important;
    table-layout: fixed !important;
  }

  .recheck-page-shell .member-data-table th.member-select-col,
  .recheck-page-shell .member-data-table td.member-select-col {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
  }

  .recheck-page-shell .member-data-table th:nth-child(2),
  .recheck-page-shell .member-data-table td[data-mobile-label="客户"] {
    width: 250px !important;
  }

  .recheck-page-shell .member-data-table th:nth-child(3),
  .recheck-page-shell .member-data-table td[data-mobile-label="预约"] {
    width: 132px !important;
  }

  .recheck-page-shell .member-data-table th:nth-child(4),
  .recheck-page-shell .member-data-table td[data-mobile-label="就诊时间"] {
    width: 320px !important;
  }

  .recheck-page-shell .member-data-table th:nth-child(5),
  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] {
    width: 214px !important;
  }

  .recheck-page-shell .member-data-table th:nth-child(6),
  .recheck-page-shell .member-data-table td[data-mobile-label="收费"] {
    width: 244px !important;
  }

  .recheck-page-shell .member-data-table th:nth-child(7),
  .recheck-page-shell .member-data-table th.member-action-col,
  .recheck-page-shell .member-data-table td.member-action-col {
    width: 158px !important;
    min-width: 158px !important;
    max-width: 158px !important;
  }

  .recheck-page-shell .member-core-head {
    align-items: flex-start !important;
  }

  .recheck-page-shell .member-core-head strong {
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }
}

/* Local delivery compact intelligence 2026-06-06: reduce vertical pressure without changing the table layout. */
.recheck-page-shell .member-executor-summary {
  padding-bottom: 11px !important;
}

.recheck-page-shell .member-executor-summary .compact-head {
  margin-bottom: 6px !important;
}

.recheck-page-shell .member-executor-summary-kpis {
  margin: 6px 0 8px !important;
  gap: 7px !important;
}

.recheck-page-shell .member-executor-summary-kpis article {
  padding: 7px 9px !important;
  border-radius: 12px !important;
}

.recheck-page-shell .member-executor-details {
  margin-top: 2px !important;
}

.recheck-page-shell .member-executor-details summary {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 28px !important;
  padding: 5px 10px !important;
  border: 1px solid rgba(83, 116, 148, 0.18) !important;
  border-radius: 999px !important;
  background: rgba(248, 251, 253, 0.92) !important;
  color: #496076 !important;
  font-size: 11.5px !important;
  font-weight: 820 !important;
  cursor: pointer !important;
  user-select: none !important;
}

.recheck-page-shell .member-executor-details[open] summary {
  margin-bottom: 8px !important;
  background: rgba(239, 247, 252, 0.98) !important;
}

.recheck-page-shell .member-executor-summary-grid {
  gap: 7px !important;
}

.recheck-page-shell .member-executor-summary-grid article {
  padding: 8px 9px !important;
  border-radius: 12px !important;
}

.recheck-page-shell .member-core-cell {
  gap: 5px !important;
}

.recheck-page-shell .member-core-head {
  gap: 6px !important;
}

.recheck-page-shell .member-core-phone,
.recheck-page-shell .member-core-edit {
  gap: 5px !important;
}

.recheck-page-shell .member-profile-linkage {
  gap: 3px !important;
}

.recheck-page-shell .member-profile-linkage .crm-match-chip,
.recheck-page-shell .member-profile-link {
  min-height: 18px !important;
  padding: 2px 5px !important;
  font-size: 10px !important;
}

.recheck-page-shell .member-smart-signals.compact-smart {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 4px !important;
  padding: 4px !important;
  border-radius: 10px !important;
  overflow: hidden !important;
}

.recheck-page-shell .member-smart-signals.compact-smart .member-smart-signal {
  display: inline-flex !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  gap: 3px !important;
  align-items: center !important;
  padding: 3px 4px !important;
  border-radius: 7px !important;
  background: rgba(255, 255, 255, 0.72) !important;
  font-size: 10px !important;
  line-height: 1.05 !important;
}

.recheck-page-shell .member-smart-signals.compact-smart .member-smart-signal b {
  flex: 0 0 auto !important;
  max-width: 26px !important;
  color: #7a8796 !important;
  font-weight: 760 !important;
}

.recheck-page-shell .member-smart-signals.compact-smart .member-smart-signal em {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-weight: 800 !important;
}

.recheck-page-shell .member-data-table tbody tr.has-warning td,
.recheck-page-shell .member-data-table tbody tr.is-expiring td {
  background: linear-gradient(90deg, rgba(255, 248, 239, 0.99), rgba(255, 255, 255, 0.99) 52%, rgba(255, 255, 255, 0.96)) !important;
}

.recheck-page-shell .member-data-table tbody tr.has-warning .member-core-head strong,
.recheck-page-shell .member-data-table tbody tr.is-expiring .member-core-head strong {
  color: #814716 !important;
}

.recheck-page-shell .member-save-chip.saved {
  min-height: 22px !important;
  padding: 3px 7px !important;
  border-color: rgba(95, 130, 162, 0.12) !important;
  background: rgba(244, 248, 251, 0.82) !important;
  color: #6f7f8f !important;
  font-size: 10px !important;
}

.recheck-page-shell .member-row-actions {
  gap: 5px !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="操作"] .member-row-actions > :is(button, a),
.recheck-page-shell .member-data-table td[data-mobile-label="操作"] .member-more-actions summary {
  min-height: 31px !important;
  padding: 5px 7px !important;
  font-size: 11px !important;
}

/* Local delivery executor ledger 2026-06-07: make the performance cell read like a compact finance ledger. */
@media (min-width: 900px) {
  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] {
    padding: 7px !important;
    vertical-align: middle !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-compact {
    gap: 4px !important;
    align-content: start !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary {
    grid-template-columns: 38px minmax(0, 1fr) !important;
    height: 23px !important;
    min-height: 23px !important;
    padding: 0 6px !important;
    gap: 5px !important;
    border-radius: 999px !important;
    background: rgba(245, 249, 253, 0.9) !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary span {
    font-size: 9.8px !important;
    font-weight: 820 !important;
    color: #74859a !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-summary small {
    font-size: 11.2px !important;
    font-weight: 880 !important;
    color: #173f6d !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-lines {
    grid-template-columns: 1fr !important;
    gap: 3px !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line {
    grid-template-columns: minmax(42px, 0.82fr) minmax(44px, 1fr) auto !important;
    grid-template-areas: "name type money" !important;
    min-height: 27px !important;
    height: 27px !important;
    padding: 3px 6px !important;
    column-gap: 5px !important;
    border-radius: 8px !important;
    border-color: rgba(82, 123, 162, 0.13) !important;
    background: rgba(255, 255, 255, 0.92) !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line label {
    display: none !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line span {
    grid-area: name !important;
    color: #234763 !important;
    font-size: 11.2px !important;
    font-weight: 880 !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line small {
    grid-area: type !important;
    color: #748297 !important;
    font-size: 10px !important;
    font-weight: 760 !important;
  }

  .recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line em {
    grid-area: money !important;
    justify-self: end !important;
    color: #2b7197 !important;
    font-size: 10.8px !important;
    font-weight: 900 !important;
    font-variant-numeric: tabular-nums !important;
  }
}

/* Local delivery visual finish 2026-06-07: softer, cleaner paid-member delivery polish without moving layout. */
.recheck-page-shell {
  color: #24384f !important;
}

.recheck-page-shell .member-scroll-table {
  border: 1px solid rgba(112, 139, 166, 0.18) !important;
  border-radius: 18px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 254, 0.9)),
    radial-gradient(circle at 12% 0%, rgba(223, 239, 252, 0.5), transparent 34%) !important;
  box-shadow: 0 18px 48px rgba(58, 92, 123, 0.09) !important;
}

.recheck-page-shell .member-data-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: transparent !important;
}

.recheck-page-shell .member-data-table th {
  border-bottom: 1px solid rgba(99, 130, 159, 0.16) !important;
  background: linear-gradient(180deg, rgba(239, 247, 253, 0.98), rgba(229, 240, 249, 0.94)) !important;
  color: #284b73 !important;
  font-size: 12.5px !important;
  font-weight: 900 !important;
  letter-spacing: 0.01em !important;
}

.recheck-page-shell .member-data-table td {
  border-bottom: 1px solid rgba(113, 137, 160, 0.11) !important;
  background: rgba(255, 255, 255, 0.76) !important;
  transition: background 0.18s ease, box-shadow 0.18s ease !important;
}

.recheck-page-shell .member-data-table tbody tr:hover td {
  background: rgba(247, 251, 255, 0.98) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84), inset 0 -1px 0 rgba(105, 141, 170, 0.08) !important;
}

.recheck-page-shell .member-data-table tbody tr.has-warning td,
.recheck-page-shell .member-data-table tbody tr.is-expiring td {
  background: linear-gradient(90deg, rgba(255, 249, 239, 0.96), rgba(255, 255, 255, 0.96) 50%, rgba(248, 252, 255, 0.94)) !important;
}

.recheck-page-shell .member-core-head strong {
  color: #173d63 !important;
  font-weight: 920 !important;
}

.recheck-page-shell .member-core-head small {
  color: #73869a !important;
  font-weight: 780 !important;
}

.recheck-page-shell .member-cell-input,
.recheck-page-shell .member-data-table input,
.recheck-page-shell .member-data-table select {
  border-color: rgba(94, 126, 154, 0.18) !important;
  background: rgba(252, 254, 255, 0.94) !important;
  color: #24415d !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.recheck-page-shell .member-cell-input:focus,
.recheck-page-shell .member-data-table input:focus,
.recheck-page-shell .member-data-table select:focus {
  border-color: rgba(78, 135, 184, 0.42) !important;
  box-shadow: 0 0 0 3px rgba(72, 139, 191, 0.12) !important;
  outline: none !important;
}

.recheck-page-shell .member-smart-signals.compact-smart {
  border: 1px solid rgba(105, 137, 164, 0.12) !important;
  background: rgba(244, 249, 253, 0.78) !important;
}

.recheck-page-shell .member-smart-signals.compact-smart .member-smart-signal {
  background: rgba(255, 255, 255, 0.8) !important;
}

.recheck-page-shell .tiantan-executor-summary {
  border-color: rgba(83, 122, 158, 0.16) !important;
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.95), rgba(239, 246, 252, 0.88)) !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line {
  border-color: rgba(96, 125, 153, 0.14) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 251, 254, 0.94)) !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line span {
  color: #224562 !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line small {
  color: #76869a !important;
}

.recheck-page-shell .member-data-table td[data-mobile-label="执行人"] .tiantan-executor-line em {
  color: #2e6f95 !important;
}

.recheck-page-shell .member-row-actions > button,
.recheck-page-shell .member-row-actions > a,
.recheck-page-shell .member-more-actions summary,
.recheck-page-shell .member-query-actions > button {
  border-color: rgba(81, 122, 160, 0.18) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 252, 0.92)) !important;
  color: #31536f !important;
  box-shadow: 0 8px 18px rgba(55, 89, 119, 0.07) !important;
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease !important;
}

.recheck-page-shell .member-row-actions > button:hover,
.recheck-page-shell .member-row-actions > a:hover,
.recheck-page-shell .member-more-actions summary:hover,
.recheck-page-shell .member-query-actions > button:hover {
  transform: translateY(-1px) !important;
  background: linear-gradient(180deg, #ffffff, #eef6fc) !important;
  box-shadow: 0 10px 22px rgba(55, 89, 119, 0.1) !important;
}

.recheck-page-shell .member-executor-summary,
.recheck-page-shell .member-summary-row article,
.recheck-page-shell .workbench-entry-card {
  border-color: rgba(96, 126, 154, 0.16) !important;
  box-shadow: 0 14px 38px rgba(56, 88, 118, 0.07) !important;
}

/* Local delivery entry board 2026-06-07: force the entrance cards into two rows of four on PC. */
@media (min-width: 1100px) {
  .recheck-page-shell .workbench-entry-board {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    align-items: stretch !important;
  }

  .recheck-page-shell .workbench-entry-card {
    min-width: 0 !important;
    min-height: 172px !important;
    height: 100% !important;
  }

  .recheck-page-shell .workbench-entry-card p {
    display: -webkit-box !important;
    min-height: 44px !important;
    overflow: hidden !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
  }
}

/* Local delivery speed2 2026-06-07: keep entrance cards 4+4 and soften the query work belt. */
@media (min-width: 1180px) {
  .recheck-page-shell .workbench-entry-board {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: none !important;
  }

  .recheck-page-shell .workbench-entry-card {
    min-width: 0 !important;
  }

  .recheck-page-shell .member-query-panel {
    grid-template-columns:
      minmax(158px, 0.9fr)
      minmax(220px, 1.25fr)
      minmax(174px, 0.95fr)
      minmax(168px, 0.9fr)
      minmax(168px, 0.9fr)
      minmax(390px, 1.6fr) !important;
    align-items: end !important;
    column-gap: 10px !important;
    row-gap: 8px !important;
    padding: 12px 16px !important;
  }

  .recheck-page-shell .member-query-actions {
    grid-column: auto !important;
    grid-row: auto !important;
    align-self: end !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    min-width: 0 !important;
  }
}

.recheck-page-shell .member-query-actions > button,
.recheck-page-shell .member-query-actions > .member-query-export-button {
  border: 1px solid rgba(113, 151, 188, 0.2) !important;
  background: linear-gradient(180deg, #f8fbff, #eef6fc) !important;
  color: #315f8b !important;
  box-shadow: 0 7px 16px rgba(66, 105, 139, 0.07) !important;
}

.recheck-page-shell .member-query-actions > button[data-recheck-query] {
  border-color: rgba(92, 147, 196, 0.26) !important;
  background: linear-gradient(180deg, #e9f5ff, #d8ecfb) !important;
  color: #235b89 !important;
  box-shadow: 0 8px 18px rgba(71, 130, 180, 0.12) !important;
}

.recheck-page-shell .member-query-actions > button:hover,
.recheck-page-shell .member-query-actions > .member-query-export-button:hover {
  background: linear-gradient(180deg, #ffffff, #eef7fd) !important;
  color: #214e75 !important;
  box-shadow: 0 10px 20px rgba(66, 105, 139, 0.1) !important;
}

.recheck-page-shell .member-query-actions > button[data-recheck-query]:hover {
  background: linear-gradient(180deg, #f4fbff, #dff1fc) !important;
  color: #1e547e !important;
}

body.mobile-employee-limited [data-mobile-employee-hide],
body.mobile-employee-limited #crm-overview-panel,
body.mobile-employee-limited #global-search-panel {
  display: none !important;
}

.mobile-bottom-nav {
  display: none !important;
}

@media (max-width: 900px) {
  body.reminder-focus-mode [data-home-section]:not(#activity-panel),
  body.reminder-focus-mode #global-search-panel,
  body.reminder-focus-mode #mobile-route-hub,
  body.reminder-focus-mode #crm-overview-panel,
  body.reminder-focus-mode #crm-detail-panel,
  body.reminder-focus-mode #home-hero-section,
  body.reminder-focus-mode #home-quick-links-section,
  body.reminder-focus-mode #role-workbenches,
  body.reminder-focus-mode #employee-workbench-panel,
  body.reminder-focus-mode #simple-flow-panel,
  body.reminder-focus-mode #support-grid-section,
  body.reminder-focus-mode #chat-context-panel,
  body.reminder-focus-mode #node-capture-panel,
  body.reminder-focus-mode #focus-patient-panel,
  #global-search-panel,
  body.employee-mode #global-search-panel,
  .mobile-bottom-nav {
    display: none !important;
  }

  body.reminder-focus-mode .crm-left-tree,
  body.reminder-focus-mode .simple-topbar,
  body.reminder-focus-mode #activity-panel > .panel-head,
  body.reminder-focus-mode #activity-panel .activity-tabs,
  body.reminder-focus-mode #activity-summary,
  body.reminder-focus-mode #activity-panel-summary,
  body.reminder-focus-mode .activity-summary-grid {
    display: none !important;
  }

  body.reminder-focus-mode .page-shell {
    padding: 10px !important;
  }

  body.reminder-focus-mode .crm-admin-shell {
    display: block !important;
  }

  body.reminder-focus-mode .crm-main-content {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
  }

  body.reminder-focus-mode #activity-panel {
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  body.reminder-focus-mode .focused-reminder-detail-card {
    margin: 0 !important;
  }
}

.focused-reminder-follow-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(72, 111, 156, 0.14);
}

.focused-reminder-follow-form label {
  display: grid;
  gap: 6px;
  color: #415872;
  font-size: 13px;
  font-weight: 900;
}

.focused-reminder-follow-form textarea,
.focused-reminder-follow-form input,
.focused-reminder-follow-form select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(83, 128, 174, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  color: #143052;
  font: inherit;
  font-weight: 800;
  padding: 12px 14px;
  outline: none;
}

.focused-reminder-follow-form textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.55;
}

.focused-reminder-follow-form textarea:focus,
.focused-reminder-follow-form input:focus,
.focused-reminder-follow-form select:focus {
  border-color: rgba(47, 128, 237, 0.46);
  box-shadow: 0 0 0 4px rgba(47, 128, 237, 0.12);
}

.focused-reminder-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.focused-reminder-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.focused-reminder-form-actions button {
  min-height: 42px;
}

.focused-reminder-complete-toggle {
  display: inline-flex !important;
  grid-template-columns: auto 1fr;
  gap: 8px !important;
  align-items: center;
  width: auto;
  color: #55708c;
  font-size: 13px;
  font-weight: 900;
}

.focused-reminder-complete-toggle input {
  width: auto;
}

@media (max-width: 720px) {
  .focused-reminder-form-grid {
    grid-template-columns: 1fr;
  }

  .focused-reminder-form-actions,
  .focused-reminder-form-actions button {
    width: 100%;
  }
}
