:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: #e6eaf0;
  --line-strong: #d7dde7;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff6ff;
  --danger: #1e40af;
  --dark: #111827;
  --green: #2563eb;
  --orange: #3b82f6;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(15,23,42,.07);
  --shadow-hover: 0 14px 34px rgba(15,23,42,.11);
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(circle at 0 0, rgba(37,99,235,.08), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, var(--bg) 42%, #f3f6fb 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; transition: all .18s ease; }
button:hover { transform: translateY(-1px); }
button:active { transform: translateY(0); }

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 16px 28px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 16px 18px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 20px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(180deg, #2563eb, #60a5fa);
}

h1 {
  font-size: 23px;
  line-height: 1.25;
  margin: 0 0 6px;
  letter-spacing: -.02em;
}

h2 {
  font-size: 21px;
  line-height: 1.25;
  margin: 0;
  letter-spacing: -.01em;
}

h3 {
  font-size: 17px;
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -.01em;
}

.muted {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #eef4ff;
  color: #2458d3;
  font-size: 12px;
  font-weight: 700;
  margin-left: 5px;
  vertical-align: middle;
}

.nav-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 1px 14px;
  margin-bottom: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.nav-tabs::-webkit-scrollbar { display: none; }

.nav-tab,
.mini-btn {
  width: auto;
  white-space: nowrap;
  border: 1px solid #dde5f0;
  background: rgba(255,255,255,.92);
  color: #384255;
  border-radius: 999px;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 3px 10px rgba(15,23,42,.04);
}

.nav-tab.active,
.mini-btn:hover {
  border-color: #b8cdfa;
  background: linear-gradient(180deg, #f8fbff, #eef4ff);
  color: var(--primary-dark);
}

.mini-btn {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 0;
}

.grid {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: 14px;
}

.card {
  background: var(--card);
  border: 1px solid rgba(226,232,240,.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 15px;
  margin-bottom: 14px;
}

.card h3,
.card-head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card h3::before,
.card-head h3::before {
  content: "";
  width: 4px;
  height: 16px;
  border-radius: 999px;
  background: var(--primary);
  display: inline-block;
}

.map-card { padding: 12px; }

#map {
  width: 100%;
  height: 520px;
  border-radius: 14px;
  background: #e5e7eb;
  overflow: hidden;
  border: 1px solid #edf0f5;
}

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

.module-card {
  width: 100%;
  min-height: 126px;
  text-align: left;
  border: 1px solid #e6eaf0;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,251,255,.98));
  color: var(--text);
  border-radius: 15px;
  padding: 14px;
  box-shadow: 0 5px 14px rgba(15,23,42,.04);
  position: relative;
  overflow: hidden;
}

.module-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  height: 3px;
  background: #dbeafe;
}

.module-card:nth-child(1)::after { background: #bfdbfe; }
.module-card:nth-child(2)::after { background: #c7d2fe; }
.module-card:nth-child(3)::after { background: #bfdbfe; }
.module-card:nth-child(4)::after { background: #dbeafe; }
.module-card:nth-child(5)::after { background: #cfe0fb; }

.module-card:hover {
  border-color: #c9d8f5;
  box-shadow: var(--shadow-hover);
}

.module-card span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 21px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: #f3f6fb;
}

.module-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 5px;
}

.module-card em {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.48;
}

.card-head,
.page-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.page-title {
  margin: 4px 0 12px;
  padding: 0 2px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: #384255;
  margin: 10px 0 5px;
}

input,
select,
textarea,
button {
  width: 100%;
  box-sizing: border-box;
  border-radius: 11px;
  padding: 10px 11px;
  font-size: 14px;
}

input,
select,
textarea {
  border: 1px solid #d5dce7;
  background: #fff;
  color: var(--text);
  outline: none;
}

input::placeholder,
textarea::placeholder { color: #a0a8b6; }

input:focus,
select:focus,
textarea:focus {
  border-color: #8fb8ff;
  box-shadow: 0 0 0 3px rgba(37,99,235,.11);
}

input:disabled {
  background: #f9fafb;
  color: #9ca3af;
}

textarea { resize: vertical; }

button {
  border: none;
  color: white;
  font-weight: 700;
  margin-top: 10px;
}

button.secondary,
.secondary {
  background: linear-gradient(180deg, #1f2937, #111827);
  color: white;
}

button.small,
.small {
  width: auto;
  min-width: 72px;
  margin-top: 0;
  padding: 7px 11px;
  font-size: 13px;
}

.btn-signin {
  background: linear-gradient(180deg, #3478f6, var(--primary));
  box-shadow: 0 8px 16px rgba(37,99,235,.16);
}

.btn-signout { background: linear-gradient(180deg, #3156a3, var(--danger)) !important; }
.btn-finished { background: #9ca3af !important; cursor: not-allowed; box-shadow: none; }

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.button-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 10px;
}
.button-row button { margin-top: 0; }

.result {
  white-space: pre-wrap;
  font-size: 13px;
  line-height: 1.58;
  background: linear-gradient(180deg, #fbfcfe, #f8fafc);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px;
  min-height: 56px;
  overflow-x: auto;
  color: #344054;
}

.result.tall { min-height: 420px; max-height: 520px; overflow: auto; }
.result.tall-small { min-height: 260px; max-height: 360px; overflow: auto; }

.status-box {
  padding: 12px 13px;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid transparent;
}
.status-pending { background: #eff6ff; color: #1d4ed8; border-color: #dbeafe; }
.status-working { background: #e8f1ff; color: #1e40af; border-color: #bfdbfe; }
.status-finished { background: #eef1f5; color: #111827; border-color: #d9dee8; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat-card {
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid #e7ecf3;
  border-radius: 13px;
  padding: 13px;
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #bfdbfe;
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}

.stat-card strong {
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: -.02em;
}


.table-wrap { overflow-x: auto; }

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 14px;
  overflow: hidden;
  border: 1px solid #e7ecf3;
  border-radius: 12px;
}

th, td {
  border-bottom: 1px solid #e7ecf3;
  padding: 10px;
  text-align: left;
  white-space: nowrap;
}
th { background: #f8fafc; color: #475467; font-weight: 700; }
tr:last-child td { border-bottom: none; }

.list-box { display: grid; gap: 10px; }
.list-item {
  border: 1px solid #e7ecf3;
  border-radius: 13px;
  padding: 12px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  box-shadow: 0 3px 10px rgba(15,23,42,.03);
}
.list-item strong { display: block; margin-bottom: 4px; font-size: 15px; }
.list-item p { margin: 4px 0; color: var(--muted); font-size: 13px; line-height: 1.48; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: rgba(17,24,39,.94);
  color: white;
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: var(--shadow-hover);
  z-index: 50;
  max-width: calc(100vw - 32px);
  white-space: nowrap;
}
.hidden { display: none !important; }

@media (max-width: 850px) {
  .page { padding: 12px; }
  .page-header { align-items: stretch; flex-direction: column; padding: 15px; }
  .mini-btn { width: 100%; text-align: center; max-width: none; }
  .grid { grid-template-columns: 1fr; }
  #map { height: 380px; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .button-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 520px) {
  .page { padding: 10px; }
  h1 { font-size: 21px; }
  h2 { font-size: 20px; }
  .row { grid-template-columns: 1fr; }
  .module-grid, .stat-grid { grid-template-columns: 1fr; }
  .nav-tabs { gap: 6px; padding-bottom: 10px; }
  .nav-tab { padding: 8px 11px; }
  .card { padding: 13px; border-radius: 14px; }
  .module-card { min-height: 112px; }
  .result.tall { min-height: 280px; }
  .page-title { align-items: flex-start; }
}

/* v1.5 视觉与交互调整 */
.nav-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
}
.nav-tab {
  width: 100%;
  min-width: 0;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 0 8px;
  border-radius: 12px;
  font-size: 13px;
  color: #334155;
  border: 1px solid #dbe3ef;
}
.nav-tab:nth-child(1) { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.nav-tab:nth-child(2) { background: #eff6ff; border-color: #cfe0fb; color: #1d4ed8; }
.nav-tab:nth-child(3) { background: #eff6ff; border-color: #cfe0fb; color: #1d4ed8; }
.nav-tab:nth-child(4) { background: #eff6ff; border-color: #bfdbfe; color: #1d4ed8; }
.nav-tab:nth-child(5) { background: #eff6ff; border-color: #dbeafe; color: #1d4ed8; }
.nav-tab:nth-child(6) { background: #eff6ff; border-color: #cfe0fb; color: #1d4ed8; }
.nav-tab.active {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(37,99,235,.18);
}
.nav-tab:nth-child(1).active { background: #2563eb; }
.nav-tab:nth-child(2).active { background: #2563eb; }
.nav-tab:nth-child(3).active { background: #2563eb; }
.nav-tab:nth-child(4).active { background: #2563eb; }
.nav-tab:nth-child(5).active { background: #2563eb; }
.nav-tab:nth-child(6).active { background: #2563eb; }

.module-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.module-card {
  min-height: 0;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 8px;
  border-radius: 16px;
}
.module-card span {
  width: 42px;
  height: 42px;
  margin: 0 0 8px;
}
.module-card strong {
  margin-bottom: 4px;
}
.module-card em {
  max-width: 100%;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

#map,
#workMap {
  width: 100%;
  height: 360px;
  border-radius: 14px;
  background: #e5e7eb;
  overflow: hidden;
  border: 1px solid #edf0f5;
}
#workMap {
  height: 320px;
}
.work-grid {
  grid-template-columns: 1fr 1fr;
}
.work-grid .result.tall {
  min-height: 240px;
  max-height: 340px;
}
.map-card {
  padding: 12px;
}

@media (max-width: 850px) {
  .nav-tabs {
    grid-template-columns: repeat(3, 1fr);
  }
  .module-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  #map,
  #workMap {
    height: 280px;
  }
  .work-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .nav-tab {
    height: 36px;
    font-size: 12px;
    padding: 0 6px;
  }
  .module-grid {
    gap: 9px;
  }
  .module-card {
    border-radius: 14px;
    padding: 10px 6px;
  }
  .module-card span {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
  .module-card strong {
    font-size: 13px;
  }
  .module-card em {
    font-size: 11px;
  }
  #map,
  #workMap {
    height: 240px;
  }
}

/* v1.6 蓝色系统一与首页优化 */
:root {
  --bg: #f5f8fd;
  --text: #172033;
  --muted: #667085;
  --line: #dbe6f4;
  --line-strong: #bcd0ee;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-soft: #eff6ff;
  --danger: #1e40af;
  --dark: #1e3a8a;
  --green: #2563eb;
  --orange: #3b82f6;
  --shadow: 0 8px 22px rgba(37, 99, 235, .075);
  --shadow-hover: 0 14px 30px rgba(37, 99, 235, .12);
}

body {
  background:
    radial-gradient(circle at 0 0, rgba(37,99,235,.07), transparent 26%),
    linear-gradient(180deg, #f9fbff 0%, #f5f8fd 44%, #eff5ff 100%);
}

.page-header {
  background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
  border-color: #e4edf9;
}

.page-header::before,
.card h3::before,
.card-head h3::before,
.stat-card::before {
  background: linear-gradient(180deg, #2563eb, #93c5fd);
}

.pill,
.nav-tab,
.mini-btn {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #cfe0fb;
}

.nav-tabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.nav-tab {
  width: 100%;
  min-width: 0;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  padding: 0 8px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 750;
  box-shadow: 0 3px 10px rgba(37,99,235,.045);
}

.nav-tab:nth-child(n) {
  background: #eff6ff;
  border-color: #cfe0fb;
  color: #1d4ed8;
}

.nav-tab.active,
.nav-tab:nth-child(n).active {
  color: #fff;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  border-color: #2563eb;
  box-shadow: 0 8px 18px rgba(37,99,235,.18);
}

button.secondary,
.secondary {
  background: linear-gradient(180deg, #3156a3, #1e3a8a);
  color: #fff;
}

.btn-signin {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  box-shadow: 0 8px 16px rgba(37,99,235,.16);
}

.btn-signout {
  background: linear-gradient(180deg, #3156a3, #1e40af) !important;
}

.btn-finished {
  background: #94a3b8 !important;
}

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

.module-card {
  min-height: 138px;
  aspect-ratio: auto;
  border: 1px solid #dce8f8;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  box-shadow: 0 5px 14px rgba(37,99,235,.055);
  padding: 15px 12px;
}

.module-card::after,
.module-card:nth-child(1)::after,
.module-card:nth-child(2)::after,
.module-card:nth-child(3)::after,
.module-card:nth-child(4)::after,
.module-card:nth-child(5)::after {
  background: linear-gradient(90deg, #60a5fa, #bfdbfe);
}

.module-card span {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #eaf3ff;
  color: #1d4ed8;
  border: 1px solid #cfe0fb;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.module-card strong {
  color: #172033;
  font-size: 15px;
}

.module-card em {
  color: #637083;
  font-size: 12px;
  line-height: 1.42;
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
}

.status-pending {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}
.status-working {
  background: #e8f1ff;
  color: #1e40af;
  border-color: #93c5fd;
}
.status-finished {
  background: #edf3fb;
  color: #334155;
  border-color: #dbe6f4;
}

.stat-card {
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border-color: #dce8f8;
}

.photo-board {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e7eef9;
}

.photo-board-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 9px;
}

.photo-board-head h4 {
  margin: 0;
  font-size: 14px;
  color: #172033;
}

.photo-board-head span {
  color: #667085;
  font-size: 12px;
}

.photo-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(112px, 42%);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 3px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.photo-strip::-webkit-scrollbar { display: none; }

.photo-placeholder {
  height: 88px;
  border-radius: 13px;
  border: 1px dashed #9fc0f6;
  background:
    linear-gradient(135deg, rgba(239,246,255,.95), rgba(255,255,255,.95)),
    radial-gradient(circle at 18% 18%, rgba(37,99,235,.14), transparent 30%);
  display: grid;
  place-items: center;
  color: #3b6fc9;
  font-size: 12px;
  font-weight: 700;
}

.list-item,
table,
.result,
input,
select,
textarea {
  border-color: #dce8f8;
}

#map,
#workMap {
  height: 340px;
  border-color: #dce8f8;
}
#workMap { height: 300px; }

@media (max-width: 850px) {
  .nav-tabs { grid-template-columns: repeat(3, 1fr); }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #map,
  #workMap { height: 260px; }
  #workMap { height: 240px; }
}

@media (max-width: 520px) {
  .nav-tab {
    height: 38px;
    font-size: 12px;
    padding: 0 5px;
  }
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .module-card {
    min-height: 128px;
    padding: 13px 9px;
  }
  .module-card span {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }
  .module-card strong { font-size: 14px; }
  .module-card em { font-size: 11px; line-height: 1.38; }
  .photo-strip { grid-auto-columns: minmax(118px, 58%); }
  .photo-placeholder { height: 82px; }
  #map,
  #workMap { height: 230px; }
}


/* v1.7 紧凑入口与导航配色优化 */
.nav-tabs {
  gap: 7px;
}

.nav-tab {
  height: 38px;
  border-radius: 11px;
  background: #f8fbff !important;
  border-color: #d7e4f6 !important;
  color: #28466f !important;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .04);
}

.nav-tab:hover {
  background: #eef6ff !important;
  color: #1d4ed8 !important;
}

.nav-tab.active,
.nav-tab:nth-child(n).active {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
  box-shadow: 0 6px 14px rgba(37,99,235,.18);
}

.module-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.module-card {
  min-height: 96px;
  height: auto;
  padding: 11px 12px;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  row-gap: 2px;
  text-align: left;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border: 1px solid #dbe7f7;
  box-shadow: 0 4px 12px rgba(37,99,235,.045);
}

.module-card::after,
.module-card:nth-child(1)::after,
.module-card:nth-child(2)::after,
.module-card:nth-child(3)::after,
.module-card:nth-child(4)::after,
.module-card:nth-child(5)::after {
  height: 0;
  background: transparent;
}

.module-card:hover {
  border-color: #bcd4f8;
  background: linear-gradient(180deg, #ffffff, #f4f8ff);
  box-shadow: 0 8px 18px rgba(37,99,235,.08);
}

.module-card span {
  grid-row: 1 / 3;
  width: 36px;
  height: 36px;
  margin: 0;
  border-radius: 12px;
  background: #eef6ff;
  border: 1px solid #cfe0fb;
  color: #1d4ed8;
  font-size: 16px;
  display: grid;
  place-items: center;
  flex: none;
}

.module-card strong {
  min-width: 0;
  margin: 0;
  color: #172033;
  font-size: 14px;
  line-height: 1.25;
  white-space: nowrap;
}

.module-card em {
  min-width: 0;
  margin: 0;
  color: #6b7280;
  font-size: 11px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 850px) {
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .module-card {
    min-height: 88px;
    padding: 10px;
    grid-template-columns: 34px minmax(0, 1fr);
    column-gap: 9px;
  }

  .module-card span {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 15px;
  }

  .nav-tabs {
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
  }

  .nav-tab {
    height: 37px;
    font-size: 12px;
    padding: 0 6px;
  }
}

@media (max-width: 520px) {
  .card:first-child {
    margin-bottom: 12px;
  }

  .module-grid {
    gap: 8px;
  }

  .module-card {
    min-height: 82px;
    padding: 9px;
    border-radius: 13px;
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 8px;
  }

  .module-card span {
    width: 32px;
    height: 32px;
    font-size: 14px;
    border-radius: 10px;
  }

  .module-card strong {
    font-size: 13px;
  }

  .module-card em {
    font-size: 10.5px;
    line-height: 1.3;
  }

  .nav-tabs {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .nav-tab {
    height: 36px;
    font-size: 12px;
    border-radius: 10px;
  }
}

/* v1.8 H5 手机端适配优化 */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 640px) {
  body {
    background: #f5f8fd;
  }

  .page {
    width: 100%;
    max-width: 100%;
    padding: 10px 10px 18px;
  }

  .page-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 12px 12px 14px;
    margin-bottom: 8px;
    border-radius: 15px;
  }

  .page-header::before {
    width: 4px;
  }

  .page-header h1 {
    font-size: 18px;
    margin: 0;
    line-height: 1.25;
    white-space: nowrap;
  }

  .page-header .muted {
    display: none;
  }

  .pill {
    padding: 2px 7px;
    font-size: 10px;
    margin-left: 4px;
  }

  .mini-btn {
    width: auto;
    min-width: 86px;
    max-width: 128px;
    height: 34px;
    margin-top: 0;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 12px;
  }

  .nav-tabs {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 7px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 1px 10px;
    margin: 0 0 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .nav-tab {
    flex: 0 0 78px;
    width: 78px;
    min-width: 78px;
    height: 34px;
    padding: 0 6px;
    border-radius: 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  .nav-tab:nth-child(4),
  .nav-tab:nth-child(5),
  .nav-tab:nth-child(6) {
    flex-basis: 86px;
    width: 86px;
    min-width: 86px;
  }

  .grid,
  .work-grid {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }

  .card {
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 13px;
    box-shadow: 0 5px 16px rgba(37,99,235,.06);
  }

  .card h3,
  .card-head h3 {
    font-size: 15px;
    margin-bottom: 10px;
  }

  .card h3::before,
  .card-head h3::before {
    height: 14px;
  }

  .page-title {
    margin: 0 0 9px;
  }

  .page-title h2 {
    font-size: 18px;
  }

  .page-title .muted {
    font-size: 12px;
    margin-top: 2px;
  }

  #page-home .card:first-child {
    margin-bottom: 10px;
  }

  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .module-card {
    min-height: 74px;
    padding: 9px;
    border-radius: 12px;
    grid-template-columns: 30px minmax(0, 1fr);
    column-gap: 8px;
    row-gap: 0;
  }

  .module-card span {
    width: 30px;
    height: 30px;
    border-radius: 9px;
    font-size: 13px;
  }

  .module-card strong {
    font-size: 13px;
    line-height: 1.2;
  }

  .module-card em {
    display: block;
    font-size: 10.5px;
    line-height: 1.25;
    -webkit-line-clamp: 1;
  }

  .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }

  .stat-card {
    padding: 10px 10px 10px 12px;
    border-radius: 11px;
  }

  .stat-card span {
    font-size: 11px;
    margin-bottom: 4px;
  }

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

  .photo-board {
    margin-top: 10px;
    padding-top: 10px;
  }

  .photo-board-head {
    margin-bottom: 7px;
  }

  .photo-board-head h4 {
    font-size: 13px;
  }

  .photo-board-head span {
    font-size: 11px;
  }

  .photo-strip {
    grid-auto-columns: minmax(104px, 44%);
    gap: 8px;
  }

  .photo-placeholder {
    height: 68px;
    border-radius: 11px;
    font-size: 11px;
  }

  #map,
  #workMap {
    height: 210px !important;
    border-radius: 12px;
  }

  #workMap {
    height: 190px !important;
  }

  .map-card {
    padding: 10px;
  }

  label {
    font-size: 12px;
    margin: 8px 0 4px;
  }

  input,
  select,
  textarea,
  button {
    border-radius: 9px;
    padding: 9px 10px;
    font-size: 14px;
  }

  button {
    min-height: 40px;
    margin-top: 8px;
  }

  button.small,
  .small {
    min-height: 32px;
    padding: 6px 9px;
    font-size: 12px;
  }

  .row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .button-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .result {
    font-size: 12px;
    line-height: 1.5;
    padding: 9px;
    border-radius: 10px;
  }

  .result.tall {
    min-height: 190px;
    max-height: 300px;
  }

  .result.tall-small {
    min-height: 180px;
    max-height: 260px;
  }

  .status-box {
    padding: 10px 11px;
    border-radius: 10px;
    font-size: 13px;
  }

  .toast {
    bottom: 16px;
    max-width: calc(100vw - 24px);
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  .page {
    padding-left: 8px;
    padding-right: 8px;
  }

  .page-header h1 {
    font-size: 17px;
  }

  .pill {
    display: none;
  }

  .module-card {
    min-height: 70px;
    padding: 8px;
    grid-template-columns: 28px minmax(0, 1fr);
    column-gap: 7px;
  }

  .module-card span {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .module-card strong {
    font-size: 12.5px;
  }

  .module-card em {
    font-size: 10px;
  }

  #map,
  #workMap {
    height: 185px !important;
  }
}


/* v1.9 首页照片轮播占位修正：单个容器，不再使用多个固定图片格 */
.photo-board {
  margin-top: 10px;
  padding-top: 10px;
}

.photo-board-head {
  margin-bottom: 8px;
}

.photo-carousel-placeholder {
  width: 100%;
  height: 106px;
  border-radius: 14px;
  border: 1px dashed #9fc0f6;
  background:
    linear-gradient(135deg, rgba(239,246,255,.98), rgba(255,255,255,.98)),
    radial-gradient(circle at 12% 18%, rgba(37,99,235,.12), transparent 30%),
    radial-gradient(circle at 88% 76%, rgba(96,165,250,.12), transparent 28%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.photo-carousel-inner {
  text-align: center;
  color: #2f5fae;
  line-height: 1.45;
}

.photo-carousel-inner strong {
  display: block;
  font-size: 14px;
  margin-bottom: 4px;
}

.photo-carousel-inner span {
  display: block;
  font-size: 12px;
  color: #6b83a8;
}

.photo-strip,
.photo-placeholder {
  display: none;
}

@media (max-width: 850px) {
  .photo-carousel-placeholder {
    height: 92px;
  }
}

@media (max-width: 520px) {
  .photo-board {
    margin-top: 9px;
    padding-top: 9px;
  }

  .photo-board-head h4 {
    font-size: 13px;
  }

  .photo-board-head span {
    font-size: 11px;
  }

  .photo-carousel-placeholder {
    height: 78px;
    border-radius: 12px;
  }

  .photo-carousel-inner strong {
    font-size: 13px;
  }

  .photo-carousel-inner span {
    font-size: 11px;
  }
}

.plan-scene-fields {
  margin: 10px 0 12px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.7);
}

.dynamic-rows {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.phone-operator-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr auto;
  gap: 8px;
  align-items: center;
}

@media (max-width: 720px) {
  .phone-operator-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 721px) {
  #map { height: 620px !important; }
  #workMap { height: 420px !important; }
}

button.danger,
.danger {
  background: linear-gradient(180deg, #ef4444, #b91c1c) !important;
  color: white;
}

@media (max-width: 768px) {
  #map {
    height: 620px !important;
    min-height: 62vh;
  }
  #workMap {
    height: 560px !important;
    min-height: 56vh;
  }
}

/* v3.2: 手机端高德地图区域缩短为 v3.1 的一半 */
@media (max-width: 520px) {
  #map,
  #workMap {
    height: 105px !important;
  }

  #workMap {
    height: 95px !important;
  }
}

/* v3.3 美化签到/签退计划选择框 */
.native-plan-select {
  display: none !important;
}

.plan-picker-button {
  width: 100%;
  border: 1px solid #dbe7fb;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  color: var(--text);
  border-radius: 16px;
  padding: 13px 14px;
  margin: 6px 0 8px;
  text-align: left;
  box-shadow: 0 8px 22px rgba(15,23,42,.06);
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
}
.plan-picker-button::after {
  content: "选择";
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 12px;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 800;
}
.plan-picker-title {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  padding-right: 52px;
}
.plan-picker-meta,
.plan-picker-placeholder {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.plan-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(15, 23, 42, .42);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px;
}
.plan-picker-overlay.hidden { display: none !important; }
.plan-picker-panel {
  width: min(680px, 100%);
  max-height: 78vh;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15,23,42,.28);
  border: 1px solid rgba(255,255,255,.75);
  animation: planSheetIn .18s ease-out;
}
@keyframes planSheetIn {
  from { transform: translateY(18px); opacity: .75; }
  to { transform: translateY(0); opacity: 1; }
}
.plan-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #edf1f7;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.plan-picker-list {
  padding: 10px;
  overflow-y: auto;
  max-height: calc(78vh - 76px);
  -webkit-overflow-scrolling: touch;
}
.plan-picker-empty {
  padding: 26px 12px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.plan-picker-item {
  width: 100%;
  border: 1px solid #e5edf8;
  background: #fff;
  border-radius: 16px;
  padding: 12px 12px;
  margin-bottom: 9px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 10px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(15,23,42,.04);
}
.plan-picker-item.active {
  border-color: #93b8ff;
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
}
.plan-picker-item-main {
  grid-column: 1 / 2;
  font-weight: 850;
  color: #172033;
  line-height: 1.35;
}
.plan-picker-item-sub {
  grid-column: 1 / 3;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.plan-picker-badge {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  align-self: start;
  border-radius: 999px;
  padding: 3px 8px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 12px;
  font-weight: 800;
}

/* v3.3 管理员计划管理 */
.admin-plans-table input,
.admin-plans-table select {
  min-width: 110px;
  padding: 8px 9px;
  border-radius: 10px;
}
.admin-plans-table .admin-plan-address {
  min-width: 180px;
}
.admin-plan-actions {
  white-space: nowrap;
}
.admin-plan-actions button {
  margin: 2px;
}

@media (max-width: 720px) {
  .plan-picker-overlay { padding: 0; }
  .plan-picker-panel {
    width: 100%;
    border-radius: 22px 22px 0 0;
    max-height: 82vh;
  }
  .plan-picker-list { max-height: calc(82vh - 76px); }
  .plan-picker-item { border-radius: 15px; }
}


/* v3.5 首页品牌图片与按钮位置修正
   图片调节参数：修改下面这些 CSS 变量即可调整大小和上下左右位置。 */
:root {
  --home-cmcc-width: 52px;
  --home-cmcc-height: auto;
  --home-cmcc-margin-top: 0px;
  --home-cmcc-margin-right: 12px;
  --home-cmcc-margin-bottom: 0px;
  --home-cmcc-margin-left: 0px;

  --home-entry-logo-width: 48px;
  --home-entry-logo-height: auto;
  --home-entry-logo-margin-top: 0px;
  --home-entry-logo-margin-right: 0px;
  --home-entry-logo-margin-bottom: 0px;
  --home-entry-logo-margin-left: 10px;
}

.home-brand-header {
  justify-content: flex-start;
}

.home-cmcc-logo {
  flex: 0 0 auto;
  width: var(--home-cmcc-width);
  height: var(--home-cmcc-height);
  max-height: 42px;
  object-fit: contain;
  margin: var(--home-cmcc-margin-top) var(--home-cmcc-margin-right) var(--home-cmcc-margin-bottom) var(--home-cmcc-margin-left);
  display: block;
}

.home-title-block {
  min-width: 0;
  flex: 1 1 auto;
}

.home-entry-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.home-entry-head h3 {
  margin: 0;
  min-width: 0;
}

.home-entry-logo {
  flex: 0 0 auto;
  width: var(--home-entry-logo-width);
  height: var(--home-entry-logo-height);
  max-height: 40px;
  object-fit: contain;
  margin: var(--home-entry-logo-margin-top) var(--home-entry-logo-margin-right) var(--home-entry-logo-margin-bottom) var(--home-entry-logo-margin-left);
  display: block;
}

/* 统一修正“今日概览-刷新”和“工作位置-定位”的按钮对齐 */
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.card-head h3 {
  margin: 0 !important;
  line-height: 1.25;
  flex: 1 1 auto;
  min-width: 0;
}

.card-head .secondary.small,
.card-head button.small {
  flex: 0 0 auto;
  width: auto;
  min-width: 68px;
  height: 32px;
  padding: 0 12px;
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  line-height: 1;
}

@media (max-width: 520px) {
  :root {
    --home-cmcc-width: 46px;
    --home-entry-logo-width: 48px;
  }
  .home-brand-header {
    align-items: center;
  }
  .home-cmcc-logo {
    max-height: 36px;
  }
  .home-entry-logo {
    max-height: 34px;
  }
  .card-head .secondary.small,
  .card-head button.small {
    min-width: 60px;
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }
}

/* v3.5-logo-only: 回到原容器效果，仅放大 logo，且不撑开工作入口容器
   调整方式：
   - 改 --home-entry-logo-width 控制 logo 大小
   - 改 right / offset-x / offset-y 控制位置
*/
:root {
  --home-entry-logo-width: 148px;
  --home-entry-logo-height: auto;
  --home-entry-logo-right: 12px;
  --home-entry-logo-top: 50%;
  --home-entry-logo-offset-x: 20px;
  --home-entry-logo-offset-y: 0px;
}

/* 工作入口标题行保持原本高度，logo 改为绝对定位，不参与撑开容器 */
.home-entry-head {
  position: relative !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow: visible !important;
}

/* 标题本身不被 logo 撑开，也不被 logo 挤压 */
.home-entry-head h3 {
  margin: 0 !important;
  padding-right: 0 !important;
}

/* logo 视觉放大，但脱离文档流，因此不会影响卡片高度 */
.home-entry-logo {
  position: absolute !important;
  right: var(--home-entry-logo-right, 12px) !important;
  top: var(--home-entry-logo-top, 50%) !important;
  transform: translate(
    var(--home-entry-logo-offset-x, 0px),
    calc(-50% + var(--home-entry-logo-offset-y, 0px))
  ) !important;
  width: var(--home-entry-logo-width, 148px) !important;
  height: var(--home-entry-logo-height, auto) !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 !important;
  flex: none !important;
  z-index: 3;
  pointer-events: none;
}

/* 避免之前手机端把 logo 强制缩回 48px */
@media (max-width: 520px) {
  :root {
    --home-entry-logo-width: 148px;
  }

  .home-entry-logo {
    width: var(--home-entry-logo-width, 148px) !important;
    max-width: none !important;
    max-height: none !important;
  }
}


/* v4: 今日概览、一线风采、签到签退照片与触客情况 */
.photo-board-card {
  margin-bottom: 12px;
}
.photo-board-home {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.home-photo-carousel,
.photo-carousel-placeholder.home-photo-carousel {
  height: 168px !important;
  border-style: solid;
  border-color: #cfe0fb;
}
.home-photo-strip {
  width: 100%;
  height: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(130px, 42%);
  gap: 10px;
  overflow-x: auto;
  padding: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.home-photo-strip::-webkit-scrollbar { display: none; }
.home-photo-item {
  position: relative;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #eef4ff;
  border: 1px solid #dbe7fb;
}
.home-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-photo-item span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 6px 8px;
  font-size: 11px;
  color: #fff;
  background: linear-gradient(180deg, transparent, rgba(15, 23, 42, .78));
}
.work-extra-box {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid #dce8f8;
  border-radius: 13px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.photo-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.photo-file-chip {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #dbeafe;
  font-size: 12px;
}
.touch-contact-row {
  display: grid;
  grid-template-columns: 1fr .75fr 1fr auto;
  gap: 8px;
  align-items: center;
}
.admin-scope-select,
.admin-org-input {
  min-width: 120px;
  margin: 2px 0;
  padding: 8px 9px;
  border-radius: 10px;
}

@media (max-width: 720px) {
  .touch-contact-row {
    grid-template-columns: 1fr;
  }
  .home-photo-carousel,
  .photo-carousel-placeholder.home-photo-carousel {
    height: 142px !important;
  }
}

/* v4.2: 签到/签退结果精简后，固定工作地图和结果区，避免照片内容撑乱布局 */
#workMap {
  min-height: 180px;
  position: relative;
  z-index: 1;
}

#checkinResult,
#checkinList {
  word-break: break-word;
  overflow-wrap: anywhere;
}

#checkinResult.result {
  max-height: 280px;
  overflow: auto;
}

.work-grid > .map-card {
  align-self: start;
}

@media (max-width: 520px) {
  #workMap {
    min-height: 130px;
  }
  #checkinResult.result {
    max-height: 220px;
  }
}

/* v4.3: 结果区与统计区手机端防撑爆优化 */
.result,
.compact-record-output,
.record-card-list,
.stats-trend-list {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  white-space: normal !important;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.compact-record-output {
  max-height: none !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

.record-card-list {
  display: grid;
  gap: 10px;
  min-height: 120px;
  max-height: 520px;
  overflow-y: auto;
  padding: 8px;
}

.compact-record-card {
  min-width: 0;
  max-width: 100%;
  border: 1px solid #dce8f8;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  box-shadow: 0 5px 14px rgba(37,99,235,.055);
  padding: 12px;
  overflow: hidden;
}

.compact-record-card.highlight {
  border-color: #b8cdfa;
  box-shadow: 0 8px 20px rgba(37,99,235,.08);
}

.compact-record-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #edf2f8;
}

.compact-record-head strong {
  min-width: 0;
  color: #172033;
  font-size: 15px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.compact-record-head span {
  flex: 0 0 auto;
  max-width: 42%;
  border-radius: 999px;
  padding: 3px 8px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.compact-record-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.compact-record-grid div,
.compact-record-touch {
  min-width: 0;
}

.compact-record-grid label,
.compact-record-touch label {
  display: block;
  margin: 0 0 3px;
  color: #667085;
  font-size: 11px;
  font-weight: 750;
}

.compact-record-grid p {
  margin: 0;
  color: #243044;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.compact-record-touch {
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px dashed #dce8f8;
}

.touch-summary-list {
  display: grid;
  gap: 6px;
}

.touch-summary-item {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
  padding: 6px 8px;
  border-radius: 10px;
  background: #f8fbff;
  border: 1px solid #e7eef9;
  color: #243044;
  font-size: 12px;
}

.touch-summary-item strong {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
}

.touch-summary-item span,
.touch-summary-item em {
  min-width: 0;
  overflow-wrap: anywhere;
  font-style: normal;
}

.touch-summary-item em {
  grid-column: 1 / -1;
  color: #667085;
  padding-left: 24px;
}

#page-stats .grid {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

#statsSummaryCards.stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#statsSummaryCards .stat-card,
#homeSummaryCards .stat-card {
  min-width: 0;
  overflow: hidden;
}

#statsSummaryCards .stat-card strong,
#homeSummaryCards .stat-card strong {
  overflow-wrap: anywhere;
}

.stats-trend-list {
  display: grid;
  gap: 10px;
  max-height: 560px;
  overflow-y: auto;
}

.stats-trend-card {
  min-width: 0;
  border: 1px solid #dce8f8;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  padding: 12px;
  box-shadow: 0 5px 14px rgba(37,99,235,.045);
  overflow: hidden;
}

.stats-trend-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 9px;
}

.stats-trend-head strong {
  min-width: 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.stats-trend-head span {
  display: none;
}

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

.stats-mini-grid div {
  min-width: 0;
  border-radius: 11px;
  border: 1px solid #e6eef9;
  background: #ffffff;
  padding: 8px;
}

.stats-mini-grid span {
  display: block;
  color: #667085;
  font-size: 11px;
  margin-bottom: 4px;
}

.stats-mini-grid strong {
  display: block;
  color: #172033;
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

@media (max-width: 850px) {
  #page-stats .grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 520px) {
  .record-card-list {
    max-height: 420px;
    padding: 6px;
  }
  .compact-record-card {
    padding: 10px;
    border-radius: 13px;
  }
  .compact-record-head {
    gap: 8px;
  }
  .compact-record-head strong {
    font-size: 14px;
  }
  .compact-record-head span {
    max-width: 46%;
    font-size: 11px;
  }
  .compact-record-grid {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .touch-summary-item {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .touch-summary-item span:nth-child(3) {
    grid-column: 2 / 3;
    color: #667085;
  }
  #statsSummaryCards.stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .stats-trend-list {
    max-height: none;
  }
  .stats-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .stats-mini-grid div {
    padding: 8px;
    border-radius: 10px;
  }
  .stats-mini-grid strong {
    font-size: 17px;
  }
}

/* v4.3b: 保留普通结果框换行，仅对签到结果/最近记录/统计趋势做卡片布局 */
.result {
  white-space: pre-wrap !important;
}
#checkinResult,
#checkinList,
.compact-record-output,
.record-card-list,
.stats-trend-list {
  white-space: normal !important;
}

/* v4.4: 强制防止签到结果和统计趋势撑爆手机容器 */
#checkinResult {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}
#checkinResult * {
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
}
#checkinResult img,
#checkinResult pre,
#checkinResult code {
  display: none !important;
}
.compact-record-card,
.compact-record-grid,
.compact-record-touch,
.touch-summary-list,
.touch-summary-item {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  overflow-x: hidden !important;
}

#page-stats,
#page-stats .grid,
#statsTable,
.stats-trend-list,
.stats-trend-card,
.stats-mini-grid,
.stats-mini-grid div {
  min-width: 0 !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  box-sizing: border-box !important;
}
.stats-mini-grid span,
.stats-mini-grid strong,
.stats-trend-head strong {
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  line-height: 1.25 !important;
}
.stats-mini-grid span {
  min-height: 2.5em;
  display: flex !important;
  align-items: center;
}

@media (max-width: 520px) {
  #page-stats .card {
    overflow-x: hidden !important;
  }
  .stats-trend-card {
    padding: 10px !important;
    border-radius: 13px !important;
  }
  .stats-trend-head {
    display: block !important;
  }
  .stats-trend-head strong {
    display: block !important;
    font-size: 13px !important;
    margin-bottom: 6px;
  }
  .stats-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }
  .stats-mini-grid div {
    padding: 7px 6px !important;
  }
  .stats-mini-grid span {
    font-size: 11px !important;
    letter-spacing: 0 !important;
  }
  .stats-mini-grid strong {
    font-size: 15px !important;
  }
}

@media (max-width: 360px) {
  .stats-mini-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .stats-mini-grid span {
    font-size: 10.5px !important;
  }
  .stats-mini-grid strong {
    font-size: 14px !important;
  }
}

/* v4.5: 首页现场照片固定容器双图轮播，不再把多张照片直接横向插入撑开容器 */
.home-photo-carousel,
.photo-carousel-placeholder.home-photo-carousel {
  height: 190px !important;
  min-height: 190px !important;
  max-height: 190px !important;
  overflow: hidden !important;
  position: relative;
}

.home-photo-stage {
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
  padding: 10px;
}

.home-photo-slide {
  position: absolute;
  inset: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
}

.home-photo-slide.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.home-photo-item {
  min-width: 0;
  max-width: 100%;
  height: 100%;
}

.home-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 520px) {
  .home-photo-carousel,
  .photo-carousel-placeholder.home-photo-carousel {
    height: 168px !important;
    min-height: 168px !important;
    max-height: 168px !important;
  }
  .home-photo-stage {
    padding: 8px;
  }
  .home-photo-slide {
    inset: 8px;
    gap: 8px;
  }
}

/* v4.6: 地图重新拉长。保持计划录入地图和工作开展地图同样大小，
   但不再缩到只剩 30%。如需继续微调，只改下面三个变量。 */
:root {
  --amap-height-desktop: 520px;
  --amap-height-tablet: 420px;
  --amap-height-mobile: 160px;
}

#map,
#workMap {
  min-height: 0 !important;
  height: var(--amap-height-desktop) !important;
}

@media (min-width: 521px) and (max-width: 768px) {
  #map,
  #workMap {
    height: var(--amap-height-tablet) !important;
    min-height: var(--amap-height-tablet) !important;
  }
}

@media (max-width: 520px) {
  #map,
  #workMap {
    height: var(--amap-height-mobile) !important;
    min-height: var(--amap-height-mobile) !important;
  }
}


/* v4.7: 高德地图容器在 v4.6 基础上再放大 50%。
   如需后续微调，只改下面三个变量。 */
:root {
  --amap-height-desktop: 780px;
  --amap-height-tablet: 630px;
  --amap-height-mobile: 240px;
}

/* v4.8: 首页现场照片改为连续横向流动轮播（从左到右），不再闪动切换 */
.home-photo-stage {
  position: relative !important;
  overflow: hidden !important;
}

.home-photo-track {
  height: 100%;
  display: flex;
  gap: 10px;
  will-change: transform;
}

.home-photo-track.flowing {
  animation: homePhotoFlowRight 5s linear infinite;
}

.home-photo-carousel:hover .home-photo-track.flowing,
.photo-carousel-placeholder.home-photo-carousel:hover .home-photo-track.flowing {
  animation-play-state: paused;
}

.home-photo-slide {
  position: relative !important;
  inset: auto !important;
  flex: 0 0 calc(100% - 0px);
  height: 100%;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  pointer-events: auto !important;
}

@keyframes homePhotoFlowRight {
  from { transform: translateX(calc(-50% - 5px)); }
  to { transform: translateX(0); }
}

@media (max-width: 520px) {
  .home-photo-track,
  .home-photo-slide {
    gap: 8px;
  }

  @keyframes homePhotoFlowRight {
    from { transform: translateX(calc(-50% - 4px)); }
    to { transform: translateX(0); }
  }
}

/* v4.9: 工作状态实时刷新兜底 + 一线风采轮播速度加快
   调快/调慢只改 --home-photo-flow-duration，数值越小越快。 */
:root {
  --home-photo-flow-duration: 22s;
}

.home-photo-track.flowing {
  animation-duration: var(--home-photo-flow-duration, 22s) !important;
}

/* v5.0: 修复一线风采漏图问题。所有今日照片都进入单张队列，每屏显示 2 张，复制完整队列实现无缝流动。 */
.home-photo-stage {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  overflow: hidden !important;
  padding: 10px !important;
}

.home-photo-track {
  height: 100% !important;
  display: flex !important;
  gap: 0 !important;
  width: max-content !important;
  will-change: transform;
}

.home-photo-track.flowing {
  animation-name: homePhotoFlowAll !important;
  animation-duration: var(--home-photo-flow-duration, 22s) !important;
  animation-timing-function: linear !important;
  animation-iteration-count: infinite !important;
}

.home-photo-slide {
  display: contents !important;
}

.home-photo-track .home-photo-item {
  flex: 0 0 calc((100vw - 40px) / 2) !important;
  width: calc((100vw - 40px) / 2) !important;
  max-width: 260px !important;
  min-width: 128px !important;
  height: 100% !important;
  margin: 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

.home-photo-track .home-photo-item + .home-photo-item {
  margin-left: 10px !important;
}

@keyframes homePhotoFlowAll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 520px) {
  .home-photo-stage {
    padding: 8px !important;
  }
  .home-photo-track .home-photo-item {
    flex-basis: calc((100vw - 36px) / 2) !important;
    width: calc((100vw - 36px) / 2) !important;
    min-width: 120px !important;
  }
  .home-photo-track .home-photo-item + .home-photo-item {
    margin-left: 8px !important;
  }
}




/* v5.1 修复轮播容器固定高度，自适应屏幕 */
.photo-flow-carousel-container {
    width: 100%;
    max-width: 100%;
    height: 106px; /* 固定高度，可调整 */
    overflow: hidden;
    position: relative;
}

.photo-flow-carousel-inner {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    animation: flow-carousel var(--home-photo-flow-duration, 22s) linear infinite;
}

.photo-flow-carousel-inner img {
    height: 100%; /* 保证自适应容器高度 */
    object-fit: cover;
    flex-shrink: 0;
}

@keyframes flow-carousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); } /* 平滑循环 */
}

@media (max-width: 520px) {
    .photo-flow-carousel-container {
        height: 80px; /* 手机端固定高度 */
    }
}

/* v5.2: 一线风采轮播最终修复 - 固定容器、轨道绝对定位，不参与页面宽度计算
   解决手机端因 track 宽度为 max-content 导致父级/页面被撑爆的问题。 */
:root {
  --home-photo-board-height-desktop: 190px;
  --home-photo-board-height-mobile: 168px;
  --home-photo-gap: 10px;
  --home-photo-flow-duration: 22s;
}

.photo-board-card,
.photo-board-home,
.home-photo-carousel,
.photo-carousel-placeholder.home-photo-carousel,
#homePhotoBoard {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.home-photo-carousel,
.photo-carousel-placeholder.home-photo-carousel,
#homePhotoBoard {
  height: var(--home-photo-board-height-desktop) !important;
  min-height: var(--home-photo-board-height-desktop) !important;
  max-height: var(--home-photo-board-height-desktop) !important;
  position: relative !important;
  contain: layout paint !important;
}

.home-photo-stage {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  overflow: hidden !important;
  padding: 10px !important;
  box-sizing: border-box !important;
  contain: layout paint !important;
}

.home-photo-track {
  position: absolute !important;
  left: 10px !important;
  top: 10px !important;
  bottom: 10px !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  gap: var(--home-photo-gap) !important;
  overflow: visible !important;
  will-change: transform;
}

.home-photo-track.flowing {
  animation: homePhotoFlowAllFixed var(--home-photo-flow-duration, 22s) linear infinite !important;
}

.home-photo-carousel:hover .home-photo-track.flowing,
.photo-carousel-placeholder.home-photo-carousel:hover .home-photo-track.flowing,
#homePhotoBoard:hover .home-photo-track.flowing {
  animation-play-state: paused !important;
}

.home-photo-track .home-photo-item {
  flex: 0 0 clamp(128px, calc((100vw - 64px) / 2), 260px) !important;
  width: clamp(128px, calc((100vw - 64px) / 2), 260px) !important;
  min-width: 0 !important;
  max-width: none !important;
  height: 100% !important;
  margin: 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.home-photo-track .home-photo-item + .home-photo-item {
  margin-left: 0 !important;
}

.home-photo-track .home-photo-item img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  display: block !important;
  object-fit: cover !important;
}

.home-photo-track .home-photo-item span {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

@keyframes homePhotoFlowAllFixed {
  from { transform: translateX(calc(-50% - 5px)); }
  to { transform: translateX(0); }
}

@media (max-width: 520px) {
  :root {
    --home-photo-board-height-desktop: 168px;
    --home-photo-board-height-mobile: 168px;
    --home-photo-gap: 8px;
    --home-photo-flow-duration: 22s;
  }

  .home-photo-carousel,
  .photo-carousel-placeholder.home-photo-carousel,
  #homePhotoBoard {
    height: var(--home-photo-board-height-mobile) !important;
    min-height: var(--home-photo-board-height-mobile) !important;
    max-height: var(--home-photo-board-height-mobile) !important;
  }

  .home-photo-stage {
    padding: 8px !important;
  }

  .home-photo-track {
    left: 8px !important;
    top: 8px !important;
    bottom: 8px !important;
  }

  .home-photo-track .home-photo-item {
    flex-basis: calc((100vw - 56px) / 2) !important;
    width: calc((100vw - 56px) / 2) !important;
    min-width: 0 !important;
  }

  @keyframes homePhotoFlowAllFixed {
    from { transform: translateX(calc(-50% - 4px)); }
    to { transform: translateX(0); }
  }
}

/* v5.3: 一线风采轮播速度最终覆盖
   这里就是轮播速度，数值越小越快。 */
:root {
  --home-photo-flow-duration: 22s;
}

.home-photo-track.flowing {
  animation-duration: var(--home-photo-flow-duration, 22s) !important;
}

@media (max-width: 520px) {
  :root {
    --home-photo-flow-duration: 22s;
  }
  .home-photo-track.flowing {
    animation-duration: var(--home-photo-flow-duration, 22s) !important;
  }
}


/* v5.4: 一线风采轮播速度最终控制 - 稍慢一点
   数值越大越慢；这里同时覆盖桌面和手机端，避免旧规则继续按 5s 运行。 */
:root {
  --home-photo-flow-duration: 22s;
}

.home-photo-track.flowing,
#homePhotoBoard .home-photo-track.flowing {
  animation-duration: 22s !important;
}

@media (max-width: 520px) {
  :root {
    --home-photo-flow-duration: 22s;
  }

  .home-photo-track.flowing,
  #homePhotoBoard .home-photo-track.flowing {
    animation-duration: 22s !important;
  }
}

.loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, .28);
  backdrop-filter: blur(4px);
}
.loading-overlay.hidden { display: none; }
.loading-card {
  min-width: 168px;
  padding: 18px 20px 16px;
  border-radius: 22px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.88);
  box-shadow: 0 22px 60px rgba(15,23,42,.22);
  text-align: center;
  color: #1f2937;
  font-weight: 800;
}
.loading-card img {
  width: 86px;
  height: 86px;
  object-fit: contain;
  display: block;
  margin: 0 auto 8px;
  border-radius: 18px;
}
#loadingText {
  font-size: 14px;
  line-height: 1.45;
}

/* fix12: admin login, organization settings, and larger loading cat */
.loading-card img {
  width: 112px !important;
  height: 112px !important;
  margin-bottom: 6px !important;
}
.admin-login-body {
  min-height: 100vh;
  background: linear-gradient(135deg, #eff6ff 0%, #fff7ed 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.admin-login-page {
  width: 100%;
  max-width: 420px;
}
.admin-login-card {
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 26px;
  padding: 26px;
  box-shadow: 0 24px 70px rgba(15,23,42,.18);
}
.admin-login-card h2 {
  margin: 0 0 8px;
  font-size: 24px;
  color: #0f172a;
}
.admin-login-card p {
  margin: 0 0 18px;
  color: #64748b;
  line-height: 1.6;
}
.admin-login-card label {
  display: block;
  margin-bottom: 14px;
  color: #334155;
  font-weight: 800;
}
.admin-login-card input {
  width: 100%;
  margin-top: 8px;
}
.admin-login-error {
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: #fee2e2;
  color: #b91c1c;
  font-weight: 800;
}
.secondary-link {
  display: inline-block;
  margin-top: 14px;
  color: #2563eb;
  font-weight: 800;
  text-decoration: none;
}
#adminOrganizations {
  width: 100%;
  min-height: 96px;
}

/* fix13: organization picker, admin table compact time, and comma-style organization settings */
.pretty-select-button {
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
  border: 1px solid #dbe4f0;
  border-radius: 13px;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  color: #1f2937;
  text-align: left;
  padding: 10px 42px 10px 13px;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(15,23,42,.04);
  position: relative;
}
.pretty-select-button::after {
  content: "⌄";
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-52%);
  color: #2563eb;
  font-size: 18px;
}
.pretty-select-button.disabled {
  color: #94a3b8;
  background: #f8fafc;
}
.org-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(15,23,42,.35);
  backdrop-filter: blur(5px);
  padding: 18px;
}
.org-picker-overlay.hidden { display: none; }
.org-picker-panel {
  width: 100%;
  max-width: 520px;
  max-height: 72vh;
  overflow: hidden;
  border-radius: 26px;
  background: rgba(255,255,255,.98);
  border: 1px solid rgba(255,255,255,.92);
  box-shadow: 0 26px 80px rgba(15,23,42,.24);
  padding: 16px;
  animation: pickerUp .18s ease-out;
}
@keyframes pickerUp {
  from { transform: translateY(18px); opacity: .2; }
  to { transform: translateY(0); opacity: 1; }
}
.org-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 2px 12px;
  border-bottom: 1px solid #edf2f7;
}
.org-picker-head strong {
  font-size: 18px;
  color: #0f172a;
}
.org-picker-list {
  display: grid;
  gap: 10px;
  max-height: calc(72vh - 92px);
  overflow-y: auto;
  padding: 13px 2px 2px;
}
.org-picker-item {
  width: 100%;
  border: 1px solid #dbeafe;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff, #f6f9ff);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #1e293b;
  box-shadow: 0 6px 18px rgba(37,99,235,.06);
}
.org-picker-item span {
  font-size: 15px;
  font-weight: 900;
}
.org-picker-item em {
  font-style: normal;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}
.org-picker-item.active {
  border-color: #93c5fd;
  background: linear-gradient(135deg, #eff6ff, #ffffff);
  color: #1d4ed8;
}
.org-picker-item.active em { color: #2563eb; }
.admin-time-cell {
  max-width: 118px;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.35;
}
.admin-plan-filter-row input[disabled] {
  color: #64748b;
}
#adminOrganizations {
  width: 100%;
  min-height: 44px;
}
@media (min-width: 760px) {
  .org-picker-overlay { align-items: center; }
}

/* fix14: compact admin identity table and cleaner scope display */
#adminBindingsTable table {
  table-layout: fixed;
  min-width: 980px;
}
#adminBindingsTable th,
#adminBindingsTable td {
  padding: 8px 7px;
  font-size: 13px;
  vertical-align: middle;
  white-space: normal;
  word-break: break-word;
}
#adminBindingsTable th:nth-child(1), #adminBindingsTable td:nth-child(1) { width: 70px; }
#adminBindingsTable th:nth-child(2), #adminBindingsTable td:nth-child(2) { width: 105px; }
#adminBindingsTable th:nth-child(3), #adminBindingsTable td:nth-child(3) { width: 78px; }
#adminBindingsTable th:nth-child(4), #adminBindingsTable td:nth-child(4) { width: 118px; }
#adminBindingsTable th:nth-child(5), #adminBindingsTable td:nth-child(5) { width: 76px; }
#adminBindingsTable th:nth-child(6), #adminBindingsTable td:nth-child(6) { width: 150px; }
#adminBindingsTable th:nth-child(7), #adminBindingsTable td:nth-child(7),
#adminBindingsTable th:nth-child(8), #adminBindingsTable td:nth-child(8) { width: 92px; }
#adminBindingsTable th:nth-child(9), #adminBindingsTable td:nth-child(9) { width: 150px; }
#adminBindingsTable .admin-scope-select {
  width: 100%;
  min-width: 0;
  max-width: 140px;
  padding: 7px 8px;
  border-radius: 10px;
  font-size: 13px;
}
#adminBindingsTable .admin-scope-hint {
  margin-top: 4px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.3;
}
#adminBindingsTable .admin-time-cell {
  max-width: 92px;
  white-space: normal;
  word-break: keep-all;
  font-size: 11px;
  color: #64748b;
  line-height: 1.35;
}
#adminBindingsTable td:last-child {
  white-space: normal;
}
#adminBindingsTable td:last-child button {
  width: 100%;
  margin: 2px 0;
  padding: 7px 8px;
}

/* fix16: 工作开展命名、当日记录、多图上传和计划类型选择美化 */
.native-scene-select {
  display: none !important;
}
.scene-picker-button {
  width: 100%;
  border: 1px solid #dbe7fb;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  color: var(--text);
  border-radius: 16px;
  padding: 13px 46px 13px 14px;
  margin-top: 6px;
  text-align: left;
  box-shadow: 0 8px 22px rgba(15,23,42,.06);
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  min-height: 56px;
}
.scene-picker-button::after {
  content: "选择";
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 12px;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 800;
}
.scene-picker-title {
  font-size: 15px;
  font-weight: 850;
  line-height: 1.3;
}
.scene-picker-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.scene-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 9991;
  background: rgba(15, 23, 42, .42);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 14px;
}
.scene-picker-overlay.hidden { display: none !important; }
.scene-picker-panel {
  width: min(620px, 100%);
  max-height: 78vh;
  overflow: hidden;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15,23,42,.28);
  border: 1px solid rgba(255,255,255,.75);
  animation: planSheetIn .18s ease-out;
}
.scene-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #edf1f7;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
}
.scene-picker-list {
  padding: 10px;
  overflow-y: auto;
  max-height: calc(78vh - 76px);
  -webkit-overflow-scrolling: touch;
}
.scene-picker-item {
  width: 100%;
  border: 1px solid #e5edf8;
  background: #fff;
  border-radius: 16px;
  padding: 13px 14px;
  margin-bottom: 9px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(15,23,42,.04);
}
.scene-picker-item.active {
  border-color: #93b8ff;
  background: linear-gradient(180deg, #f8fbff, #eef5ff);
}
.scene-picker-item strong {
  font-size: 15px;
  color: #172033;
}
.scene-picker-item span {
  font-size: 12px;
  color: var(--muted);
}
.file-help {
  display: inline-block;
  margin-left: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}
.pretty-file-input {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  border: 1px dashed #bcd4f6;
  background: linear-gradient(180deg, #ffffff, #f8fbff);
  border-radius: 16px;
  color: #334155;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
}
.pretty-file-input::file-selector-button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  margin-right: 10px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(37,99,235,.22);
}
.pretty-file-input::-webkit-file-upload-button {
  border: 0;
  border-radius: 999px;
  padding: 9px 14px;
  margin-right: 10px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(37,99,235,.22);
}
#planName::placeholder {
  color: #9aa9bd;
}

/* fix18 基础名录 / 成员渠道点选 */
.reference-picker-box,
.ref-import-box {
  margin: 10px 0 12px;
  padding: 12px;
  border: 1px solid rgba(31, 78, 121, 0.12);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(238, 246, 255, 0.9), rgba(255, 255, 255, 0.96));
}
.reference-picker-box select,
.ref-admin-filter-row select,
#refCategory,
#refImportMode {
  border: 1px solid rgba(31, 78, 121, 0.18);
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff;
  color: #1e293b;
  font-size: 14px;
  outline: none;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}
.ref-select-button {
  width: 100%;
  margin: 4px 0 10px;
  border-radius: 14px;
  border-style: dashed;
}
.selected-ref-chips {
  min-height: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.ref-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(23, 112, 214, 0.10);
  color: #0f4f9c;
  border: 1px solid rgba(23, 112, 214, 0.18);
  font-size: 13px;
}
.ref-chip em {
  font-style: normal;
  color: #64748b;
  font-size: 12px;
}
.ref-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(15, 23, 42, 0.42);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 18px;
}
.ref-picker-overlay.hidden { display: none; }
.ref-picker-panel {
  width: min(680px, 100%);
  max-height: 84vh;
  background: #fff;
  border-radius: 24px 24px 18px 18px;
  padding: 16px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.28);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ref-picker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.ref-picker-head strong { font-size: 17px; color: #0f172a; }
.ref-picker-search {
  width: 100%;
  border: 1px solid rgba(31, 78, 121, 0.16);
  border-radius: 14px;
  padding: 11px 13px;
  background: #f8fafc;
  outline: none;
}
.ref-picker-list {
  display: grid;
  gap: 8px;
  overflow: auto;
  max-height: 42vh;
  padding-right: 2px;
}
.ref-picker-item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  border-radius: 14px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 10px;
  text-align: left;
  color: #0f172a;
}
.ref-picker-item.active {
  background: linear-gradient(135deg, rgba(23, 112, 214, 0.12), rgba(15, 185, 129, 0.08));
  border-color: rgba(23, 112, 214, 0.28);
}
.ref-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(23, 112, 214, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1770d6;
  font-weight: 800;
}
.ref-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ref-main strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ref-main em { font-style: normal; color: #64748b; font-size: 12px; }
.ref-work-no {
  color: #334155;
  font-size: 13px;
  white-space: nowrap;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 4px 8px;
}
.ref-picker-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #64748b;
}
.ref-picker-selected {
  min-height: 28px;
  background: #f8fafc;
  border-radius: 12px;
  padding: 8px 10px;
  max-height: 72px;
  overflow: auto;
}
.ref-empty { text-align: center; padding: 18px 10px; }
.reference-admin-table th,
.reference-admin-table td {
  white-space: nowrap;
}
.reference-admin-table td:nth-child(3) {
  min-width: 150px;
}
.compact-buttons { gap: 6px; }
@media (max-width: 680px) {
  .ref-picker-panel { max-height: 88vh; padding: 14px; }
  .ref-picker-list { max-height: 44vh; }
  .ref-picker-item { grid-template-columns: 24px 1fr; }
  .ref-work-no { grid-column: 2 / 3; width: fit-content; }
}

/* fix20 基础名录弹窗编辑 */
.admin-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(8px);
}
.admin-modal-overlay.hidden { display: none; }
.admin-modal-panel {
  width: min(720px, 96vw);
  max-height: 88vh;
  overflow: auto;
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(148,163,184,0.28);
  border-radius: 24px;
  padding: 18px;
  box-shadow: 0 26px 70px rgba(15, 23, 42, 0.22);
}
.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.modal-head strong {
  display: block;
  font-size: 17px;
  color: #0f172a;
  margin-bottom: 4px;
}
.reference-editor-panel .row { margin-bottom: 10px; }
.reference-editor-panel select,
.reference-editor-panel input {
  min-height: 42px;
}
@media (max-width: 680px) {
  .admin-modal-overlay { align-items: flex-end; padding: 10px; }
  .admin-modal-panel {
    width: 100%;
    border-radius: 22px 22px 18px 18px;
    max-height: 84vh;
  }
}

/* fix25: 美化计划录入组织选择弹窗 + loading 结果反馈 */
.native-ref-org-select {
  display: none !important;
}
.ref-org-picker-button {
  width: 100%;
  border: 1px solid #dbe7fb;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  color: var(--text);
  border-radius: 16px;
  padding: 13px 46px 13px 14px;
  margin-top: 6px;
  text-align: left;
  box-shadow: 0 8px 22px rgba(15,23,42,.06);
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  min-height: 56px;
}
.ref-org-picker-button::after {
  content: "选择";
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 12px;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 800;
}
.ref-org-title,
.ref-org-placeholder {
  font-size: 15px;
  font-weight: 850;
  line-height: 1.3;
  color: #172033;
}
.ref-org-placeholder {
  color: #64748b;
}
.ref-org-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.ref-org-panel {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}
.ref-org-picker-list {
  display: grid;
  gap: 9px;
  overflow: auto;
  max-height: 48vh;
  padding-right: 2px;
}
.ref-org-picker-item {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  border-radius: 16px;
  padding: 12px 13px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
  text-align: left;
  box-shadow: 0 8px 20px rgba(15,23,42,.04);
}
.ref-org-picker-item.active {
  border-color: rgba(37, 99, 235, .35);
  background: linear-gradient(135deg, rgba(37,99,235,.11), rgba(14,165,233,.07));
}
.ref-org-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(37,99,235,.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  font-weight: 900;
}
.ref-org-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.ref-org-main strong {
  font-size: 15px;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ref-org-main em {
  font-style: normal;
  color: #64748b;
  font-size: 12px;
}
.loading-card {
  width: min(84vw, 320px);
}
.loading-detail {
  margin-top: 8px;
  padding: 9px 10px;
  border-radius: 14px;
  background: #f8fafc;
  color: #334155;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 600;
  white-space: pre-line;
  text-align: left;
  max-height: 138px;
  overflow: auto;
}
.loading-detail.hidden {
  display: none;
}
.loading-overlay.loading-success .loading-card {
  border-color: rgba(34,197,94,.25);
  box-shadow: 0 24px 70px rgba(22,163,74,.20);
}
.loading-overlay.loading-success #loadingText {
  color: #15803d;
}
.loading-overlay.loading-error .loading-card {
  border-color: rgba(239,68,68,.25);
  box-shadow: 0 24px 70px rgba(220,38,38,.18);
}
.loading-overlay.loading-error #loadingText {
  color: #b91c1c;
}


/* fix26: 美化成员类型选择弹窗，缩短loading结果停留 */
.native-ref-category-select {
  display: none !important;
}
.ref-category-picker-button {
  width: 100%;
  border: 1px solid #dbe7fb;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  color: var(--text);
  border-radius: 16px;
  padding: 13px 46px 13px 14px;
  margin-top: 6px;
  text-align: left;
  box-shadow: 0 8px 22px rgba(15,23,42,.06);
  display: flex;
  flex-direction: column;
  gap: 5px;
  position: relative;
  min-height: 56px;
}
.ref-category-picker-button::after {
  content: "选择";
  position: absolute;
  right: 12px;
  top: 12px;
  font-size: 12px;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 999px;
  padding: 3px 8px;
  font-weight: 800;
}
.ref-category-panel {
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}
.ref-category-picker-list {
  display: grid;
  gap: 9px;
  overflow: auto;
  max-height: 48vh;
  padding-right: 2px;
}
.ref-category-picker-item {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  border-radius: 16px;
  padding: 12px 13px;
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  gap: 10px;
  text-align: left;
  box-shadow: 0 8px 20px rgba(15,23,42,.04);
}
.ref-category-picker-item.active {
  border-color: rgba(37, 99, 235, .35);
  background: linear-gradient(135deg, rgba(37,99,235,.11), rgba(14,165,233,.07));
}
.loading-card {
  transition: transform .18s ease, opacity .18s ease, box-shadow .18s ease;
}


/* fix27: loading结果弹窗保持原有圆润形状，结果2秒自动关闭，文案卡片美化 */
.loading-card {
  width: min(78vw, 286px) !important;
  min-width: 188px !important;
  padding: 18px 18px 16px !important;
  border-radius: 24px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,251,255,.96)) !important;
  border: 1px solid rgba(255,255,255,.92) !important;
  box-shadow: 0 24px 70px rgba(15,23,42,.22) !important;
  overflow: hidden;
}
.loading-overlay.loading-result .loading-card {
  width: min(86vw, 318px) !important;
  padding: 18px 18px 17px !important;
  border-radius: 24px !important;
}
.loading-overlay.loading-result .loading-card img {
  width: 94px !important;
  height: 94px !important;
  margin-bottom: 4px !important;
}
#loadingText {
  font-size: 15px !important;
  line-height: 1.35 !important;
  font-weight: 900 !important;
  letter-spacing: .2px;
}
.loading-detail {
  margin-top: 10px !important;
  padding: 10px !important;
  border-radius: 18px !important;
  background: linear-gradient(135deg, #f8fbff 0%, #eef6ff 100%) !important;
  border: 1px solid rgba(37,99,235,.10) !important;
  color: #334155 !important;
  font-size: 12px !important;
  line-height: 1.48 !important;
  font-weight: 650 !important;
  white-space: normal !important;
  text-align: left !important;
  max-height: 128px !important;
  overflow: auto !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.loading-result-main {
  text-align: center;
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  padding: 2px 0 7px;
  margin-bottom: 6px;
  border-bottom: 1px dashed rgba(100,116,139,.20);
}
.loading-result-row {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 8px;
  align-items: baseline;
  padding: 4px 2px;
}
.loading-result-row span {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}
.loading-result-row strong {
  min-width: 0;
  color: #0f172a;
  font-size: 12px;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.loading-result-row-full {
  display: block;
  text-align: center;
}
.loading-overlay.loading-success .loading-card {
  border-color: rgba(34,197,94,.25) !important;
  box-shadow: 0 24px 70px rgba(22,163,74,.18) !important;
}
.loading-overlay.loading-success .loading-detail {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfeff 100%) !important;
  border-color: rgba(34,197,94,.18) !important;
}
.loading-overlay.loading-error .loading-detail {
  background: linear-gradient(135deg, #fff1f2 0%, #fff7ed 100%) !important;
  border-color: rgba(239,68,68,.18) !important;
}


/* fix28: 首页现场照片加载态 */
.photo-carousel-loading {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #2f5fae;
}

.photo-carousel-loading img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 6px 12px rgba(37, 99, 235, .16));
}

.photo-carousel-loading strong {
  font-size: 14px;
  font-weight: 800;
  color: #2455a6;
  letter-spacing: .02em;
}

.photo-carousel-loading span {
  font-size: 12px;
  color: #6b83a8;
}

/* fix29: stats detail popups and text-only photo loading */
.photo-carousel-loading.text-only {
  background: linear-gradient(135deg, rgba(239,246,255,.92), rgba(255,255,255,.86));
  border: 1px solid rgba(59,130,246,.14);
  border-radius: 18px;
}
.photo-carousel-loading.text-only::before {
  content: '';
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(37,99,235,.14);
  border-top-color: rgba(37,99,235,.75);
  animation: h5Spin 1s linear infinite;
}
@keyframes h5Spin { to { transform: rotate(360deg); } }

.stat-card-clickable {
  cursor: pointer;
  text-align: left;
  border: none;
  width: 100%;
  font-family: inherit;
}
.stat-card-clickable em,
.stats-mini-item em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 11px;
  color: rgba(37,99,235,.72);
  font-weight: 700;
}
.stat-card-clickable:active,
.stats-mini-item:active {
  transform: scale(.985);
}
.stats-mini-click-grid .stats-mini-item {
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  padding: 12px;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15,23,42,.04);
}
.stats-mini-click-grid .stats-mini-item span {
  display: block;
  font-size: 12px;
  color: #64748b;
}
.stats-mini-click-grid .stats-mini-item strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  color: #0f172a;
}

.stats-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: rgba(15,23,42,.42);
  backdrop-filter: blur(6px);
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding: 14px;
}
.stats-detail-overlay.hidden { display: none; }
.stats-detail-panel {
  width: min(720px, 100%);
  max-height: min(76vh, 720px);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-radius: 24px 24px 18px 18px;
  box-shadow: 0 -12px 50px rgba(15,23,42,.22);
  border: 1px solid rgba(255,255,255,.72);
  overflow: hidden;
  animation: statsPanelUp .18s ease-out;
}
@keyframes statsPanelUp { from { transform: translateY(18px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }
.stats-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid rgba(148,163,184,.18);
}
.stats-detail-head strong {
  font-size: 17px;
  color: #0f172a;
}
.stats-detail-body {
  padding: 12px 14px 16px;
  max-height: calc(min(76vh, 720px) - 76px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.stats-detail-loading,
.stats-detail-empty {
  padding: 32px 12px;
  text-align: center;
  color: #64748b;
  font-weight: 700;
}
.stats-detail-item {
  display: flex;
  gap: 10px;
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 18px;
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(148,163,184,.16);
  box-shadow: 0 8px 22px rgba(15,23,42,.04);
}
.stats-detail-index {
  flex: 0 0 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb, #06b6d4);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}
.stats-detail-content { min-width: 0; flex: 1; }
.stats-detail-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.stats-detail-line strong { color: #0f172a; font-size: 14px; }
.stats-detail-line em {
  font-style: normal;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(37,99,235,.09);
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
}
.stats-detail-plan {
  margin-top: 6px;
  color: #334155;
  font-size: 13px;
  word-break: break-word;
}

.stats-detail-address {
  margin-top: 6px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(15, 23, 42, .04);
  color: #475569;
  font-size: 12px;
  line-height: 1.45;
  word-break: break-word;
}

.stats-detail-meta {
  margin-top: 6px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.stats-detail-meta span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(14,165,233,.08);
  color: #0369a1;
  font-size: 12px;
  font-weight: 700;
}

/* fix31: 今日概览和汇总卡片恢复数值展示，并统一为明细趋势风格 */
#homeSummaryCards,
#statsSummaryCards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.summary-detail-card {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(148,163,184,.18);
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  padding: 12px;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15,23,42,.04);
  overflow: hidden;
}

.summary-detail-card::before {
  display: none !important;
  content: none !important;
}

.summary-detail-card span {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}

.summary-detail-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.25;
  color: #0f172a;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.summary-detail-card em {
  display: block;
  margin-top: 4px;
  font-style: normal;
  font-size: 11px;
  color: rgba(37,99,235,.72);
  font-weight: 700;
}

.summary-detail-card:active {
  transform: scale(.985);
}

.summary-detail-card.placeholder {
  cursor: default;
  opacity: .72;
}

@media (max-width: 430px) {
  #homeSummaryCards,
  #statsSummaryCards {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }
  .summary-detail-card {
    padding: 10px;
    border-radius: 14px;
  }
  .summary-detail-card strong {
    font-size: 17px;
  }
}


/* fix45: 计划录入地图提示栏 + 手动使用当前位置按钮 */
.map-hint-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.map-hint-row .secondary.small {
  padding: 7px 12px;
  border-radius: 999px;
  white-space: nowrap;
}

/* fix47: 跨距离签退按钮与后台审查表 */
.btn-warning {
  width: 100%;
  margin-top: 10px;
  border: 0;
  border-radius: 16px;
  padding: 13px 16px;
  font-size: 15px;
  font-weight: 900;
  color: #7c2d12;
  background: linear-gradient(135deg, #fde68a 0%, #fbbf24 100%);
  box-shadow: 0 10px 22px rgba(245, 158, 11, .22);
}
.btn-warning:active { transform: scale(.985); }
.cross-distance-table th,
.cross-distance-table td {
  white-space: nowrap;
  vertical-align: middle;
}
.cross-distance-row td {
  color: #b91c1c;
  font-weight: 800;
}
.cross-distance-row .muted {
  color: rgba(185, 28, 28, .72) !important;
  font-weight: 700;
}


/* opportunity type custom picker v1 */
.native-opportunity-type-select {
  display: none !important;
}
.opportunity-type-picker-button {
  margin-top: 6px;
}
.opportunity-type-placeholder {
  color: #64748b;
  font-weight: 700;
}
.opportunity-type-picker-item {
  position: relative;
  padding-right: 48px;
}
.opportunity-type-picker-item.active::after {
  content: "✓";
  position: absolute;
  right: 16px;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(37, 99, 235, .22);
}
