/* ==========================================================================
   跑店宝工作台 · 页面层
   工作台 / 看板 / 门店 / 分析 / 团队 / 设置 / 路线
   ========================================================================== */

/* ============================== 通用面板 ============================== */

.panel {
  position: relative;
  padding: 18px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.94);
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.58));
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px) saturate(1.1);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.panel-head h3 {
  font-size: 13.5px;
  font-weight: 650;
  color: #2b3450;
  letter-spacing: -0.01em;
}

.panel-head p {
  margin-top: 3px;
  font-size: 10px;
  color: #9aa2b8;
  line-height: 1.5;
}

.panel-head > :last-child {
  margin-left: auto;
}

.panel-tag {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-size: 8.5px;
  font-weight: 600;
  color: #98a1b6;
  white-space: nowrap;
}

.panel-link {
  font-size: 9.5px;
  color: #6c7cd8;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.panel-link:hover {
  color: #5566cf;
}

.panel-more {
  width: 100%;
  height: 32px;
  margin-top: 8px;
  border-radius: 8px;
  background: rgba(246, 248, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-size: 9.5px;
  color: #7883a0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.panel-more:hover {
  background: #fff;
  color: #5f6a88;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3ecf9a;
  box-shadow: 0 0 0 4px rgba(62, 207, 154, 0.12);
  flex: none;
}

.pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #43cd9c;
  box-shadow: 0 0 0 3px rgba(67, 205, 156, 0.13);
  animation: pulseDot 2.4s ease-in-out infinite;
  flex: none;
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(67, 205, 156, 0.13); }
  50% { box-shadow: 0 0 0 5px rgba(67, 205, 156, 0.06); }
}

.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
  flex: none;
}

.dot-blue { background: #5b8def; box-shadow: 0 0 0 4px rgba(91, 141, 239, 0.12); }
.dot-violet { background: #8f7bf5; box-shadow: 0 0 0 4px rgba(143, 123, 245, 0.12); }
.dot-amber { background: #f5b247; box-shadow: 0 0 0 4px rgba(245, 178, 71, 0.14); }
.dot-mint { background: #3ecf9a; box-shadow: 0 0 0 4px rgba(62, 207, 154, 0.13); }

/* ============================== 工作台：顶部数据区 ============================== */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(238px, 0.82fr) minmax(210px, 0.58fr);
  gap: 14px;
  align-items: stretch;
  margin: 2px 0 8px;
}

.hero-main {
  position: relative;
  overflow: hidden;
  padding: 20px 22px 15px;
  border-radius: 22px;
  background:
    radial-gradient(420px 220px at 96% -30%, rgba(131, 157, 255, 0.24), transparent 70%),
    linear-gradient(138deg, rgba(255, 255, 255, 0.94), rgba(240, 245, 255, 0.7) 65%, rgba(245, 242, 255, 0.72));
}

.hero-main::after {
  content: "";
  position: absolute;
  width: 240px;
  height: 240px;
  right: -70px;
  bottom: -140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(160, 140, 255, 0.18), transparent 68%);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 300px;
  height: 220px;
  right: -100px;
  top: -90px;
  background: radial-gradient(circle, rgba(131, 170, 255, 0.2), transparent 65%);
  filter: blur(6px);
  pointer-events: none;
}

.hero-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 18px;
}

.hero-copy {
  min-width: 0;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #8993ad;
}

.hero-number-row {
  display: flex;
  align-items: flex-end;
  gap: 7px;
  margin-top: 7px;
}

.hero-number {
  font-size: 46px;
  line-height: 0.95;
  font-weight: 650;
  letter-spacing: -0.045em;
  color: #232c4b;
  text-shadow: 0 8px 26px rgba(70, 95, 190, 0.1);
}

.hero-unit {
  font-size: 12px;
  color: #7e88a2;
  margin-bottom: 5px;
}

.hero-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 20px;
  padding: 0 7px;
  margin-bottom: 6px;
  border-radius: 7px;
  font-size: 8.5px;
  font-weight: 600;
  color: #2ea47b;
  background: rgba(62, 207, 154, 0.1);
  border: 1px solid rgba(62, 207, 154, 0.12);
}

.hero-sub {
  margin-top: 7px;
  font-size: 10px;
  color: #929bb2;
}

.hero-sub b {
  color: #e8877f;
  font-weight: 600;
}

.hero-goal {
  margin-left: auto;
  width: 164px;
  padding-top: 18px;
  flex: none;
}

.goal-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.goal-top span {
  font-size: 9px;
  color: #8f98b0;
}

.goal-top strong {
  font-size: 15px;
  font-weight: 650;
  color: #3a4463;
}

.goal-top small {
  font-size: 8.5px;
  font-weight: 400;
  color: #98a1b7;
}

.goal-track {
  height: 5px;
  margin: 8px 0 6px;
  border-radius: 999px;
  background: rgba(120, 137, 190, 0.12);
  overflow: hidden;
}

.goal-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #5e8cff, #a17bf5);
  box-shadow: 0 0 10px rgba(104, 133, 245, 0.4);
}

.goal-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 8.5px;
  color: #a0a8bc;
}

.goal-foot b {
  color: #6d7894;
  font-weight: 600;
}

.hero-seg {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 4px;
  height: 6px;
  margin-top: 18px;
}

.hero-seg i {
  display: block;
  height: 100%;
  border-radius: 999px;
  min-width: 4px;
  transition: width 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.seg-blue { background: linear-gradient(90deg, #5f8cf2, #7ba5ff); }
.seg-violet { background: linear-gradient(90deg, #8f7bf5, #b195ff); }
.seg-amber { background: linear-gradient(90deg, #f3ae44, #ffcb7d); }
.seg-mint { background: linear-gradient(90deg, #3ecf9a, #6ee4ba); }

.hero-legend {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 11px;
  font-size: 9px;
  color: #8e97ae;
}

.hero-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.hero-legend b {
  font-weight: 600;
  color: #5a6480;
  margin-left: 1px;
}

.hero-team {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 8.5px;
  color: #99a1b6;
  white-space: nowrap;
}

.hero-team .avatar-stack .avatar {
  width: 20px;
  height: 20px;
  font-size: 8px;
}

/* AI 提醒卡 */
.hero-ai {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(160px 120px at 100% 0%, rgba(174, 151, 255, 0.2), transparent 70%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.94), rgba(245, 241, 255, 0.76) 58%, rgba(237, 246, 255, 0.8));
}

.hero-ai::before {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: -58px;
  bottom: -64px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 160, 255, 0.22), transparent 66%);
}

.hero-ai-head {
  display: flex;
  align-items: center;
  gap: 7px;
  position: relative;
  z-index: 1;
}

.ai-orb {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #7d8bff, #a06cf6);
  box-shadow: 0 7px 16px -8px rgba(118, 102, 244, 0.8);
  flex: none;
}

.ai-orb.big {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.ai-panel-label {
  font-size: 10px;
  font-weight: 650;
  color: #4d5083;
  letter-spacing: 0.01em;
}

.ai-tag {
  margin-left: auto;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #8a7ada;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(150, 135, 230, 0.2);
  padding: 2px 5px;
  border-radius: 5px;
}

.hero-ai p {
  position: relative;
  z-index: 1;
  margin: 10px 0 10px;
  font-size: 10.5px;
  line-height: 1.68;
  color: #7b7f9e;
}

.hero-ai p b {
  color: #5a5da2;
  font-weight: 600;
}

.ai-reco {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 9px;
  border-top: 1px dashed rgba(129, 133, 190, 0.16);
}

.ai-reco span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
  color: #9599b2;
  white-space: nowrap;
}

.ai-reco button {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  font-weight: 600;
  color: #6567d0;
  white-space: nowrap;
}

.ai-reco button:hover {
  color: #5052c4;
}

.hero-ai-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-size: 8px;
  color: #a4aabd;
}

/* SLA 环形卡 */
.hero-sla {
  position: relative;
  overflow: hidden;
  padding: 15px 14px 12px;
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
  background:
    radial-gradient(150px 120px at 50% 10%, rgba(155, 238, 215, 0.24), transparent 70%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(243, 252, 249, 0.72));
}

.sla-ring {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from -90deg, #46d6ac 0%, #58b9f0 52%, #7e7bf6 calc(var(--v) * 1%), rgba(140, 157, 200, 0.14) 0);
  box-shadow: 0 14px 30px -20px rgba(74, 154, 200, 0.6);
}

.sla-ring::before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: linear-gradient(160deg, #fff, #fbfdff);
  box-shadow: inset 0 1px 2px rgba(60, 80, 130, 0.05);
}

.sla-ring-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 1px;
}

.sla-ring-inner strong {
  font-size: 21px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -0.04em;
  color: #2b3556;
}

.sla-ring-inner span {
  font-size: 8px;
  color: #8e98b0;
}

.sla-copy {
  text-align: center;
  line-height: 1.35;
}

.sla-copy small {
  display: block;
  font-size: 8.5px;
  color: #98a1b6;
}

.sla-copy strong {
  display: block;
  font-size: 11px;
  font-weight: 650;
  color: #2f9f7f;
  margin-top: 1px;
}

.sla-copy span {
  display: block;
  font-size: 8px;
  color: #a6adc0;
  margin-top: 1px;
}

.sla-copy b {
  color: #3cb58c;
  font-weight: 600;
}

.sla-spark {
  width: 100%;
  height: 25px;
  opacity: 0.85;
  margin-top: -2px;
}

.sla-spark .spark {
  height: 25px;
}

.spark {
  width: 100%;
  height: 34px;
}

/* 看板分节头 */
.board-section-head {
  margin-top: 20px;
  margin-bottom: 12px;
}

.board-section-head .hint {
  margin-left: 2px;
}

.board-section-head .tools {
  margin-left: auto;
}

.view-seg button {
  height: 27px;
}

/* ============================== 看板 ============================== */

.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
  align-items: stretch;
}

.board-col {
  position: relative;
  min-height: 424px;
  padding: 13px 11px 11px;
  border-radius: 19px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: linear-gradient(180deg, rgba(237, 242, 255, 0.62), rgba(247, 248, 255, 0.34));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(5px);
}

.board-col.col-doing {
  background: linear-gradient(180deg, rgba(243, 239, 255, 0.64), rgba(249, 246, 255, 0.34));
}

.board-col.col-review {
  background: linear-gradient(180deg, rgba(255, 248, 235, 0.65), rgba(255, 251, 244, 0.34));
}

.board-col.col-done {
  background: linear-gradient(180deg, rgba(236, 250, 245, 0.64), rgba(247, 253, 250, 0.34));
}

.col-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 4px 11px;
}

.col-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
}

.col-head h2 {
  font-size: 11.5px;
  font-weight: 600;
  color: #404a68;
  letter-spacing: 0.01em;
}

.col-count {
  font-size: 8.5px;
  font-weight: 600;
  color: #8e97ae;
  background: rgba(255, 255, 255, 0.72);
  height: 17px;
  min-width: 17px;
  padding: 0 5px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.85);
}

.col-add {
  margin-left: auto;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #9aa3b9;
  opacity: 0;
  transition: opacity 0.16s ease, background 0.16s ease;
}

.board-col:hover .col-add {
  opacity: 1;
}

.col-add:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #5d6a90;
}

.col-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 90px;
  border-radius: 12px;
  transition: background 0.18s ease, outline-color 0.18s ease;
  outline: 1.5px dashed transparent;
  outline-offset: 3px;
}

.col-body.is-over {
  background: rgba(111, 137, 246, 0.055);
  outline-color: rgba(111, 137, 246, 0.34);
}

.col-empty {
  min-height: 96px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px dashed rgba(120, 133, 177, 0.16);
  font-size: 9px;
  color: #a9b0c2;
  background: rgba(255, 255, 255, 0.22);
}

.task-card {
  position: relative;
  padding: 10px 11px 9px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.96);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.86));
  box-shadow:
    0 9px 22px -18px rgba(42, 55, 116, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  cursor: grab;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.18s ease, border-color 0.18s ease;
}

.task-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 1);
  box-shadow:
    0 18px 32px -22px rgba(42, 55, 116, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.7);
}

.task-card:active {
  cursor: grabbing;
}

.task-card.is-dragging {
  opacity: 0.48;
  transform: rotate(1.2deg) scale(0.99);
}

.task-card.is-done {
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.94), rgba(250, 255, 252, 0.8));
}

.task-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 7px;
}

.type-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 6px;
  border-radius: 6px;
  border: 1px solid rgba(120, 133, 175, 0.1);
  font-size: 9px;
  font-weight: 500;
  color: #6f7b9a;
  background: rgba(247, 249, 255, 0.8);
  white-space: nowrap;
}

.type-chip .ico {
  width: 10px;
  height: 10px;
}

.t-blue { color: #5474d4; background: rgba(236, 242, 255, 0.9); border-color: rgba(198, 214, 255, 0.55); }
.t-violet { color: #7b66d6; background: rgba(244, 240, 255, 0.9); border-color: rgba(217, 206, 255, 0.6); }
.t-amber { color: #c08a30; background: rgba(255, 248, 232, 0.92); border-color: rgba(255, 230, 184, 0.65); }
.t-teal { color: #2f9e8b; background: rgba(235, 251, 247, 0.9); border-color: rgba(190, 240, 228, 0.6); }
.t-pink { color: #cd6e8b; background: rgba(255, 241, 246, 0.9); border-color: rgba(255, 214, 226, 0.65); }

.prio {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 600;
  color: #9aa2b8;
  white-space: nowrap;
}

.prio::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.prio-urgent { color: #ee6c83; }
.prio-high { color: #e8a331; }
.prio-normal { color: #9aa2b8; }

.task-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.48;
  color: #29314e;
  letter-spacing: 0.005em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.task-addr {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  font-size: 9.5px;
  color: #969fb5;
  white-space: nowrap;
  overflow: hidden;
}

.task-addr .ico {
  color: #a7afc4;
}

.task-addr span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sla-alert {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 7px;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 500;
}

.sla-alert .ico {
  flex: none;
}

.sla-alert.urgent {
  color: #ee7459;
  background: linear-gradient(90deg, rgba(255, 238, 233, 0.94), rgba(255, 247, 242, 0.7));
}

.sla-alert.review {
  color: #d4952c;
  background: linear-gradient(90deg, rgba(255, 248, 232, 0.94), rgba(255, 252, 244, 0.7));
}

.sla-alert b {
  font-weight: 600;
}

.task-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed rgba(120, 133, 175, 0.14);
}

.person {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  color: #737d99;
  min-width: 0;
}

.person .avatar {
  width: 19px;
  height: 19px;
  font-size: 7.5px;
}

.time {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  color: #9aa2b8;
  white-space: nowrap;
}

.time .ico {
  color: #adb4c6;
}

.unassigned {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 19px;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 8.5px;
  font-weight: 500;
  color: #6c83e2;
  background: rgba(240, 244, 255, 0.9);
  border: 1px dashed #cfd9ff;
  white-space: nowrap;
}

.done-pill {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 18px;
  padding: 0 6px;
  border-radius: 6px;
  font-size: 8.5px;
  font-weight: 500;
  color: #27a77c;
  background: rgba(62, 207, 154, 0.11);
  border: 1px solid rgba(62, 207, 154, 0.16);
  white-space: nowrap;
}

.is-done .task-title {
  color: #4b5470;
}

/* ============================== 工作台下部 ============================== */

.dash-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, 0.85fr);
  gap: 14px;
  margin-top: 18px;
}

.chart-panel {
  padding: 17px 18px 12px;
}

.chart-legend {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 8.5px;
  color: #8f98b0;
  white-space: nowrap;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.chart-legend i {
  width: 12px;
  height: 2px;
  border-radius: 2px;
}

.line-solid {
  background: #6c8aff;
}

.line-dash {
  background: repeating-linear-gradient(90deg, #bcc5dc 0 3px, transparent 3px 5px);
}

.chart-summary {
  display: flex;
  align-items: flex-end;
  gap: 22px;
  margin: 3px 0 4px;
}

.chart-summary > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.chart-summary strong {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: #2b3450;
  line-height: 1.2;
}

.chart-summary strong em {
  font-style: normal;
  font-size: 10px;
  color: #8f98b0;
  margin-left: 1px;
}

.chart-summary small {
  font-size: 8.5px;
  color: #9ca4b9;
}

.chart-link {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  color: #6c7cd8;
  padding-bottom: 3px;
}

.chart-link:hover {
  color: #5566c9;
}

.line-chart {
  position: relative;
  width: 100%;
  margin-top: 2px;
}

.line-chart svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.grid-line {
  stroke: rgba(110, 125, 170, 0.09);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.axis-text {
  fill: #a4abbd;
  font-size: 8.5px;
  font-family: var(--font-sans);
}

.main-line {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  filter: drop-shadow(0 7px 8px rgba(96, 122, 240, 0.16));
}

.plan-line {
  fill: none;
  stroke: #c3cbe3;
  stroke-width: 1.5;
  stroke-dasharray: 4 5;
  stroke-linecap: round;
}

.chart-dot {
  fill: #fff;
  stroke: #6c8aff;
  stroke-width: 2;
}

.chart-hit {
  fill: transparent;
  cursor: pointer;
}

.chart-point:hover .chart-dot {
  r: 5;
  stroke-width: 2.4;
}

.chart-tip {
  position: absolute;
  z-index: 5;
  transform: translate(-50%, -128%);
  min-width: 96px;
  padding: 7px 9px;
  border-radius: 9px;
  background: rgba(38, 46, 79, 0.94);
  color: #fff;
  font-size: 8.5px;
  line-height: 1.55;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
  box-shadow: 0 12px 26px -14px rgba(20, 28, 60, 0.65);
}

.chart-tip.is-on {
  opacity: 1;
}

.chart-tip strong {
  display: block;
  margin-bottom: 2px;
  font-size: 9px;
  font-weight: 600;
}

.chart-tip span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #cbd4e9;
}

.chart-tip i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.chart-tip i.dash {
  background: #aab5d0;
}

.team-panel {
  display: flex;
  flex-direction: column;
  padding: 17px 18px 13px;
}

.team-mini-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 4px;
}

.team-mini-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.team-mini-row .avatar {
  width: 30px;
  height: 30px;
  font-size: 10.5px;
}

.tm-main {
  flex: 1;
  min-width: 0;
}

.tm-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 5px;
}

.tm-line strong {
  font-size: 10.5px;
  font-weight: 600;
  color: #3b4462;
}

.tm-role {
  font-size: 8px;
  color: #a1a8bc;
}

.tm-line b {
  margin-left: auto;
  font-size: 10px;
  font-weight: 600;
  color: #4d5878;
}

.tm-line b small {
  font-size: 8px;
  font-weight: 400;
  color: #a5adc0;
}

.team-mini-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(120, 133, 175, 0.09);
  font-size: 8.5px;
  color: #949db2;
}

.team-mini-foot span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.team-mini-foot b {
  color: #55617f;
  font-weight: 600;
}

/* ============================== 拜访看板页 ============================== */

.filter-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  padding: 9px 11px;
  border-radius: 16px;
  margin-bottom: 11px;
}

.filter-search .ico {
  color: #a0a8bc;
}

.filter-search .input {
  width: 206px;
  height: 33px;
  font-size: 10px;
  border-radius: 9px;
  border-color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.56);
  box-shadow: 0 4px 12px -14px rgba(40, 52, 110, 0.5);
}

.filter-search .input:focus {
  background: #fff;
}

.filter-select {
  width: auto;
  min-width: 94px;
  height: 33px;
  border-radius: 9px;
  border-color: rgba(255, 255, 255, 0.9);
  background-color: rgba(255, 255, 255, 0.56);
  font-size: 9.5px;
  padding-left: 9px;
  color: #737e9a;
}

.filter-bar-right {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-left: auto;
}

.result-count {
  font-size: 9px;
  color: #9aa2b8;
  white-space: nowrap;
}

.result-count b {
  color: #5f6a88;
  font-weight: 600;
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 20px;
  padding: 0 3px 0 6px;
  border-radius: 6px;
  background: #eef3ff;
  border: 1px solid #e2e9ff;
  color: #5c70d8;
  font-size: 8.5px;
  font-weight: 500;
  white-space: nowrap;
}

.active-filter button {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: #7f8bda;
}

.active-filter button:hover {
  background: rgba(108, 124, 220, 0.12);
}

.visits-scope {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 3px 11px;
  font-size: 8.5px;
  color: #9aa2b8;
}

.visits-scope b {
  color: #5e6986;
  font-weight: 600;
}

.scope-sep {
  color: #c4cad8;
}

.scope-risk {
  color: #e27883;
}

#visits-content {
  min-height: 380px;
}

#visits-content.is-list {
  animation: pageIn 0.3s ease both;
}

.visit-table-wrap {
  background: rgba(255, 255, 255, 0.58);
}

.visit-table {
  min-width: 920px;
}

.visit-table td {
  padding-top: 11px;
  padding-bottom: 11px;
}

.visit-table tbody tr {
  cursor: pointer;
}

.store-dot {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.type-pet { background: linear-gradient(140deg, #8eb1ff, #6284ef); }
.type-hospital { background: linear-gradient(140deg, #63d8b3, #32b98d); }
.type-cattery { background: linear-gradient(140deg, #b297ff, #8467e8); }
.type-kennel { background: linear-gradient(140deg, #ffcb82, #eda53c); }
.type-chain { background: linear-gradient(140deg, #ffa5b4, #ef778f); }

.table-person {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #5b6582;
  font-size: 10.5px;
  white-space: nowrap;
}

.table-person .avatar {
  width: 20px;
  height: 20px;
  font-size: 8px;
}

.table-person small {
  display: block;
  font-size: 8px;
  color: #a2a9bc;
}

.row-sla {
  display: block;
  font-size: 8px;
  color: #ee7c67;
  margin-top: 3px;
}

.row-sla.review {
  color: #d79b32;
}

/* ============================== 门店管理 ============================== */

.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.mini-stat {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 14px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.58));
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.mini-stat:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 44px -34px rgba(42, 55, 116, 0.5);
}

.ms-icon {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.ms-body {
  min-width: 0;
  line-height: 1.25;
}

.ms-body small {
  display: block;
  font-size: 8.5px;
  color: #9aa2b8;
}

.ms-body strong {
  display: inline-block;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: #2c3452;
  margin-top: 2px;
}

.ms-body em {
  display: block;
  font-style: normal;
  font-size: 8px;
  color: #a7aec0;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ms-arrow {
  margin-left: auto;
  color: #b2b8c9;
}

.store-filter-bar {
  padding: 8px 10px;
  gap: 8px;
}

.store-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.store-tab {
  height: 28px;
  padding: 0 9px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  color: #7c86a1;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.store-tab span {
  font-size: 8px;
  color: #9ba3b7;
  background: rgba(255, 255, 255, 0.6);
  padding: 1px 5px;
  border-radius: 999px;
}

.store-tab:hover {
  color: #59637f;
}

.store-tab.is-active {
  background: #fff;
  color: #3f4868;
  font-weight: 500;
  box-shadow: 0 4px 10px -8px rgba(45, 57, 115, 0.55);
}

.store-tab.is-active span {
  color: #6273d4;
  background: #f0f4ff;
}

.store-filter-right {
  gap: 7px;
}

.stores-scope {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 2px 3px 10px;
  font-size: 8.5px;
  color: #9aa2b8;
}

.stores-scope b {
  color: #5f6a88;
  font-weight: 600;
}

.table-card {
  border-radius: 18px;
  overflow: hidden;
  padding: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.48));
}

.table-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(113, 125, 166, 0.08);
}

.tt-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tt-left strong {
  font-size: 12px;
  font-weight: 650;
  color: #313a58;
}

.tt-left span {
  font-size: 8.5px;
  color: #9ba3b8;
}

.tt-left b {
  color: #5c6785;
  font-weight: 600;
}

.tt-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
}

.bulk-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: linear-gradient(90deg, rgba(238, 243, 255, 0.85), rgba(245, 242, 255, 0.6));
  border-bottom: 1px solid rgba(113, 125, 166, 0.08);
  animation: fadeIn 0.18s ease both;
}

.bulk-info {
  font-size: 9.5px;
  color: #697493;
}

.bulk-info b {
  color: #5167d8;
  font-weight: 650;
}

.bulk-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.store-table-wrap {
  border: 0;
  border-radius: 0;
  background: transparent;
  max-height: 560px;
}

.store-table {
  min-width: 980px;
}

.store-table thead th {
  padding-top: 10px;
  padding-bottom: 10px;
  background: rgba(249, 250, 255, 0.76);
}

.store-table tbody tr {
  cursor: pointer;
}

.store-table td {
  padding-top: 10px;
  padding-bottom: 10px;
}

.store-table .cell-main strong {
  font-size: 10.5px;
}

.store-table .cell-main small {
  font-size: 8.5px;
}

.cell-check {
  width: 40px;
  padding-right: 4px !important;
  padding-left: 15px !important;
}

.cell-check .checkbox {
  vertical-align: middle;
}

.type-label {
  font-size: 9.5px;
  color: #697491;
}

.grade {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  margin-left: 4px;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 700;
  vertical-align: 1px;
}

.grade-A { color: #c98b22; background: #fff4d9; }
.grade-B { color: #7180c8; background: #eef1fc; }
.grade-C { color: #98a0b5; background: #f2f4f9; }

.sales-cell {
  font-weight: 600;
  color: #414b68;
}

.sales-cell small {
  font-size: 8px;
  font-weight: 400;
  color: #9ba3b8;
}

.overdue-text {
  color: #e57b76;
  font-size: 9px;
  font-weight: 500;
  background: rgba(249, 123, 145, 0.09);
  padding: 2px 6px;
  border-radius: 5px;
}

.today-text {
  color: #3a9f80;
  font-size: 9px;
  font-weight: 500;
  background: rgba(62, 207, 154, 0.1);
  padding: 2px 6px;
  border-radius: 5px;
}

.soon-text {
  color: #c18b2d;
  font-size: 9px;
  font-weight: 500;
}

.cell-action {
  text-align: right;
  padding-right: 12px !important;
}

.row-more {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  color: #a5adc0;
}

.row-more:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #5c6785;
}

.table-foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-top: 1px solid rgba(113, 125, 166, 0.08);
  font-size: 8.5px;
  color: #9aa2b8;
}

.pager {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pager-btn {
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 9px;
  color: #7c86a1;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease;
}

.pager-btn:hover:not([disabled]) {
  background: rgba(255, 255, 255, 0.8);
  color: #505b78;
}

.pager-btn.is-active {
  background: #fff;
  color: #5167d8;
  font-weight: 600;
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 3px 8px -6px rgba(45, 57, 115, 0.5);
}

.pager-btn[disabled] {
  opacity: 0.35;
  cursor: default;
}

/* ============================== 数据分析 ============================== */

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

.kpi-card {
  position: relative;
  overflow: hidden;
  padding: 14px 15px 10px;
  border-radius: 17px;
}

.kpi-card::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -46px;
  top: -58px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(152, 167, 255, 0.16), transparent 68%);
  pointer-events: none;
}

.kpi-top {
  display: flex;
  align-items: center;
  gap: 7px;
}

.kpi-icon {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
}

.kpi-label {
  font-size: 9.5px;
  color: #7e88a2;
  white-space: nowrap;
}

.kpi-delta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 18px;
  padding: 0 5px;
  border-radius: 5px;
  font-size: 8px;
  font-weight: 600;
  color: #2fa87d;
  background: rgba(62, 207, 154, 0.09);
  white-space: nowrap;
}

.kpi-value {
  margin-top: 9px;
  font-size: 27px;
  line-height: 1;
  font-weight: 650;
  letter-spacing: -0.04em;
  color: #293250;
}

.kpi-value small {
  margin-left: 3px;
  font-size: 9px;
  font-weight: 400;
  color: #9aa2b8;
  letter-spacing: 0;
}

.kpi-spark {
  height: 30px;
  margin-top: 5px;
  opacity: 0.9;
}

.kpi-spark .spark {
  height: 30px;
}

.insight-banner {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 13px 0 14px;
  padding: 11px 14px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  background:
    radial-gradient(240px 100px at 20% 0%, rgba(183, 161, 255, 0.18), transparent 70%),
    linear-gradient(100deg, rgba(244, 241, 255, 0.9), rgba(236, 246, 255, 0.78));
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.ib-orb {
  width: 31px;
  height: 31px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #7d8bff, #a06cf6);
  box-shadow: 0 8px 16px -9px rgba(118, 102, 244, 0.8);
  flex: none;
}

.ib-body {
  min-width: 0;
}

.ib-body strong {
  font-size: 9.5px;
  font-weight: 650;
  color: #565a93;
}

.ib-body p {
  margin-top: 1px;
  font-size: 9.5px;
  color: #7f84a0;
  line-height: 1.5;
}

.ib-body b {
  color: #5a5fc1;
  font-weight: 600;
}

.insight-banner > .btn {
  margin-left: auto;
  flex: none;
}

.analytics-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.8fr);
  gap: 13px;
}

.analytics-main {
  min-width: 0;
}

.analytics-trend {
  padding: 17px 18px 12px;
  height: 100%;
}

.trend-summary {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  margin: 2px 0 3px;
}

.trend-big {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.trend-big strong {
  font-size: 25px;
  font-weight: 650;
  letter-spacing: -0.04em;
  color: #293250;
  line-height: 1;
}

.trend-big span {
  font-size: 8.5px;
  color: #9aa2b8;
}

.trend-big em {
  font-style: normal;
  font-size: 8px;
  font-weight: 600;
  color: #2fa87d;
  background: rgba(62, 207, 154, 0.1);
  padding: 2px 5px;
  border-radius: 5px;
  margin-left: 2px;
}

.trend-meta {
  margin-left: auto;
  display: flex;
  gap: 14px;
  font-size: 8.5px;
  color: #9aa2b8;
  padding-bottom: 2px;
}

.trend-meta b {
  color: #5c6785;
  font-weight: 600;
}

.chart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
  padding-top: 9px;
  border-top: 1px solid rgba(113, 125, 166, 0.07);
  font-size: 8px;
  color: #a3aabd;
}

.chart-foot > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.region-panel {
  padding: 17px 18px 14px;
  height: 100%;
}

.region-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-top: 4px;
}

.region-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.region-rank {
  width: 17px;
  font-size: 8px;
  font-weight: 600;
  color: #b3b9c9;
  font-variant-numeric: tabular-nums;
  flex: none;
}

.region-rank.top {
  color: #7d8ada;
}

.region-main {
  flex: 1;
  min-width: 0;
}

.region-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.region-top strong {
  font-size: 9.5px;
  font-weight: 500;
  color: #4e5874;
}

.region-top span {
  font-size: 9.5px;
  font-weight: 600;
  color: #4b5573;
}

.region-top span small {
  font-size: 7.5px;
  font-weight: 400;
  color: #a1a8bc;
}

.region-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(120, 137, 190, 0.1);
  overflow: hidden;
}

.region-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  opacity: 0.85;
  transition: width 0.6s ease;
}

.region-stores {
  width: 29px;
  text-align: right;
  font-size: 7.5px;
  color: #a4abbd;
  flex: none;
}

.region-foot {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding-top: 9px;
  border-top: 1px solid rgba(113, 125, 166, 0.07);
  font-size: 8px;
  color: #9aa2b8;
  line-height: 1.5;
}

.region-foot b {
  color: #37a983;
  font-weight: 600;
  white-space: nowrap;
}

.analytics-composition {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.25fr);
  align-items: start;
  gap: 13px;
  margin-top: 13px;
}

.donut-panel {
  padding: 17px 18px;
}

.donut-body {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 2px;
}

.donut {
  position: relative;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px -22px rgba(55, 70, 140, 0.5);
}

.donut::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: linear-gradient(160deg, #fff, #fdfdff);
  box-shadow: inset 0 1px 3px rgba(55, 70, 130, 0.06);
}

.donut-hole {
  position: relative;
  z-index: 1;
  text-align: center;
  line-height: 1.15;
}

.donut-hole strong {
  display: block;
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: #2b3450;
}

.donut-hole span {
  display: block;
  font-size: 7.5px;
  color: #9aa2b8;
  margin-top: 1px;
}

.donut-legend {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.donut-legend li {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 8.5px;
  color: #75809c;
}

.donut-legend i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
  flex: none;
}

.donut-legend span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.donut-legend b {
  font-size: 9px;
  font-weight: 600;
  color: #4f5a78;
}

.donut-legend small {
  width: 25px;
  text-align: right;
  font-size: 7.5px;
  color: #a4abbd;
}

.donut-insight {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 13px;
  padding-top: 10px;
  border-top: 1px solid rgba(113, 125, 166, 0.07);
  font-size: 8px;
  line-height: 1.6;
  color: #8f98b0;
}

.donut-insight .di-orb {
  width: 21px;
  height: 21px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #8c9bff, #9c76f0);
  flex: none;
  box-shadow: 0 4px 9px -5px rgba(112, 103, 230, 0.7);
}

.donut-insight strong {
  color: #5b6584;
  font-weight: 600;
}

.analytics-members {
  padding: 17px 18px 8px;
}

.analytics-members .table-wrap {
  border-radius: 12px;
  background: transparent;
  border: 0;
}

.analytics-members .table {
  font-size: 9.5px;
}

.analytics-members .table thead th {
  padding: 8px 8px;
  background: transparent;
  font-size: 8px;
}

.analytics-members .table tbody td {
  padding: 7px 8px;
}

.member-role {
  font-size: 7.5px;
  color: #a2a9bc;
}

.inline-progress {
  display: inline-block;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: rgba(120, 137, 190, 0.12);
  overflow: hidden;
  vertical-align: 1px;
  margin-right: 5px;
}

.inline-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6c8aff, #9a7bf4);
}

.inline-rate {
  font-size: 8.5px;
  color: #6f7a98;
}

.rating {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 8.5px;
  font-weight: 600;
  color: #c08d2b;
}

.rating .ico {
  color: #f1b54b;
  fill: rgba(241, 181, 75, 0.2);
}

.analytics-note {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  padding: 0 2px;
  font-size: 8px;
  color: #a0a8bc;
  line-height: 1.6;
}

/* ============================== 团队管理 ============================== */

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

.team-stat {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
}

.ts-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.team-stat small {
  display: block;
  font-size: 8.5px;
  color: #98a1b6;
}

.team-stat strong {
  display: block;
  font-size: 22px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: #2b3450;
  margin-top: 1px;
}

.team-stat strong em {
  font-style: normal;
  font-size: 9px;
  font-weight: 400;
  color: #9aa2b8;
  margin-left: 2px;
}

.team-stat p {
  font-size: 8px;
  color: #a4abbd;
  margin-top: 1px;
}

.team-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.72fr);
  gap: 13px;
  align-items: start;
}

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

.member-card {
  padding: 15px 16px 12px;
  border-radius: 18px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.member-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 50px -36px rgba(42, 55, 116, 0.55);
}

.member-head {
  display: flex;
  align-items: center;
  gap: 9px;
}

.member-avatar {
  position: relative;
  flex: none;
}

.member-avatar .avatar {
  width: 42px;
  height: 42px;
  font-size: 14px;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3.5px rgba(122, 134, 232, 0.22),
    0 4px 10px -4px rgba(47, 57, 120, 0.35);
}

.status-dot {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #9aa2b8;
}

.status-dot.online { background: #3ecf9a; }
.status-dot.visiting { background: #6c8aff; }
.status-dot.away { background: #c6cbd8; }

.member-name {
  min-width: 0;
  line-height: 1.3;
}

.member-name strong {
  display: block;
  font-size: 12.5px;
  font-weight: 650;
  color: #2c3452;
}

.member-name small {
  display: block;
  font-size: 8.5px;
  color: #9aa2b8;
  margin-top: 1px;
}

.member-head .pill {
  margin-left: auto;
}

.member-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 13px 0 11px;
  padding: 9px 0;
  border-top: 1px solid rgba(120, 133, 175, 0.08);
  border-bottom: 1px solid rgba(120, 133, 175, 0.08);
}

.member-stats > div {
  text-align: center;
  border-right: 1px solid rgba(120, 133, 175, 0.08);
}

.member-stats > div:last-child {
  border-right: 0;
}

.member-stats strong {
  display: block;
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #333c59;
  line-height: 1.2;
}

.member-stats strong em {
  font-style: normal;
  font-size: 8px;
  color: #8f98af;
  margin-left: 1px;
  font-weight: 400;
}

.member-stats small {
  display: block;
  font-size: 7.5px;
  color: #a1a8bc;
  margin-top: 2px;
}

.member-progress {
  margin-bottom: 10px;
}

.mp-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 8px;
  color: #9aa2b8;
}

.mp-label b {
  font-size: 8.5px;
  font-weight: 600;
  color: #6f7a98;
}

.member-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(120, 133, 175, 0.12);
}

.member-today {
  font-size: 8px;
  color: #9aa2b8;
}

.member-actions {
  margin-left: auto;
  display: flex;
  gap: 1px;
}

.member-actions .icon-btn {
  width: 27px;
  height: 27px;
  border-radius: 7px;
  color: #a3abbf;
}

.member-actions .icon-btn:hover {
  color: #5b6785;
}

.team-side {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.rank-panel {
  padding: 16px 16px 12px;
}

.rank-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rank-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px;
  border-radius: 9px;
  transition: background 0.15s ease;
}

.rank-row:hover {
  background: rgba(255, 255, 255, 0.6);
}

.rank-medal {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 7.5px;
  font-weight: 600;
  color: #a4abbd;
  background: rgba(246, 248, 253, 0.8);
  flex: none;
}

.rank-row.is-top .rank-medal {
  color: #fff;
}

.rank-1 { background: linear-gradient(135deg, #ffcc6e, #eda63a); box-shadow: 0 5px 10px -6px rgba(226, 164, 49, 0.7); }
.rank-2 { background: linear-gradient(135deg, #c8d4ea, #9cabc6); box-shadow: 0 5px 10px -6px rgba(126, 142, 170, 0.6); }
.rank-3 { background: linear-gradient(135deg, #f0b79b, #d6906d); box-shadow: 0 5px 10px -6px rgba(190, 126, 89, 0.6); }

.rank-name {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.rank-name strong {
  display: block;
  font-size: 9.5px;
  font-weight: 500;
  color: #46506d;
}

.rank-name small {
  display: block;
  font-size: 7.5px;
  color: #a4abbd;
}

.rank-score {
  font-size: 11px;
  font-weight: 650;
  color: #37415f;
  white-space: nowrap;
}

.rank-score small {
  font-size: 7.5px;
  font-weight: 400;
  color: #a4abbd;
}

.rank-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(113, 125, 166, 0.08);
  font-size: 8.5px;
  color: #98a1b6;
}

.rank-foot strong {
  font-size: 13px;
  font-weight: 650;
  color: #2f3856;
}

.rank-foot strong small {
  font-size: 8px;
  font-weight: 400;
  color: #9aa2b8;
}

.activity-panel {
  padding: 16px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.activity-list li {
  display: flex;
  gap: 8px;
}

.act-icon {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.act-body {
  min-width: 0;
  flex: 1;
}

.act-body p {
  font-size: 8.5px;
  line-height: 1.55;
  color: #7c86a0;
}

.act-body p b {
  color: #46506d;
  font-weight: 600;
}

.act-body p strong {
  color: #5b6684;
  font-weight: 500;
}

.act-body time {
  display: block;
  font-size: 7.5px;
  color: #b0b6c6;
  margin-top: 1px;
}

.activity-panel .panel-head .live-dot {
  margin-left: auto;
  margin-top: 5px;
}

/* ============================== 系统设置 ============================== */

.settings-layout {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.settings-nav {
  position: sticky;
  top: 90px;
  padding: 8px;
  border-radius: 17px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.settings-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 9px;
  border-radius: 10px;
  text-align: left;
  color: #6c7692;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.settings-tab > span:nth-child(2) {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.st-icon {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: rgba(245, 247, 253, 0.9);
  color: #8a94ad;
  flex: none;
}

.settings-tab strong {
  display: block;
  font-size: 9.5px;
  font-weight: 500;
  color: #4f5976;
}

.settings-tab small {
  display: block;
  font-size: 7.5px;
  color: #a3aabd;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-tab > .ico {
  color: #b2b9ca;
}

.settings-tab:hover {
  background: rgba(255, 255, 255, 0.55);
}

.settings-tab.is-active {
  background: linear-gradient(100deg, #fff, #f3f6ff);
  box-shadow: 0 7px 16px -14px rgba(45, 57, 115, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.settings-tab.is-active .st-icon {
  color: #5d74e6;
  background: #eef3ff;
}

.settings-tab.is-active strong {
  color: #3e4868;
  font-weight: 600;
}

.settings-tab.is-active > .ico {
  color: #6978d8;
}

.settings-nav-foot {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  padding: 9px;
  border-top: 1px solid rgba(113, 125, 166, 0.08);
  font-size: 7.5px;
  color: #a4abbd;
}

.settings-panel {
  padding: 21px 22px 18px;
  border-radius: 19px;
}

.settings-panel-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
}

.settings-panel-head h2 {
  font-size: 15px;
  font-weight: 650;
  color: #2a334f;
}

.settings-panel-head p {
  margin-top: 3px;
  font-size: 9px;
  color: #9aa2b8;
}

.settings-saved {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  color: #39a983;
  background: rgba(62, 207, 154, 0.08);
  padding: 3px 7px;
  border-radius: 6px;
  white-space: nowrap;
}

.brand-setting {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px;
  border-radius: 13px;
  background: linear-gradient(120deg, rgba(246, 248, 255, 0.8), rgba(250, 246, 255, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.9);
  margin-bottom: 18px;
}

.brand-logo.large {
  width: 44px;
  height: 44px;
  border-radius: 13px;
}

.brand-setting > div {
  flex: 1;
  min-width: 0;
}

.brand-setting strong {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: #3a4462;
}

.brand-setting small {
  display: block;
  font-size: 8px;
  color: #9da5b9;
  margin-top: 2px;
}

.form-grid {
  display: grid;
  gap: 13px;
}

.form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid .span2 {
  grid-column: span 2;
}

.form-grid .field > label {
  font-size: 9px;
  color: #8b95ad;
}

.form-grid .input,
.form-grid .select {
  height: 36px;
  font-size: 10.5px;
  border-radius: 9px;
}

.form-grid textarea.input {
  min-height: 74px;
}

.input-suffix {
  position: relative;
  display: flex;
  align-items: center;
}

.input-suffix .input {
  padding-right: 40px;
}

.input-suffix > span {
  position: absolute;
  right: 11px;
  font-size: 9px;
  color: #9aa2b8;
  pointer-events: none;
}

.settings-tip {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(113, 125, 166, 0.08);
  font-size: 8px;
  color: #a1a8bc;
  line-height: 1.55;
}

.switch-list {
  margin-top: 17px;
  border-top: 1px solid rgba(113, 125, 166, 0.08);
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 1px;
  border-bottom: 1px solid rgba(113, 125, 166, 0.07);
}

.switch-row:last-child {
  border-bottom: 0;
}

.switch-copy {
  flex: 1;
  min-width: 0;
}

.switch-copy strong {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #424c69;
}

.switch-copy small {
  display: block;
  font-size: 8px;
  color: #9da5b9;
  margin-top: 2px;
  line-height: 1.5;
}

.switch {
  width: 36px;
  height: 21px;
  border-radius: 999px;
  background: rgba(137, 149, 183, 0.24);
  padding: 2px;
  flex: none;
  transition: background 0.2s ease;
}

.switch i {
  display: block;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(40, 52, 100, 0.22);
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.switch.is-on {
  background: linear-gradient(90deg, #6d8aff, #8c6ef3);
}

.switch.is-on i {
  transform: translateX(15px);
}

.appearance-block {
  padding: 14px 0;
  border-bottom: 1px solid rgba(113, 125, 166, 0.08);
}

.appearance-block h3 {
  font-size: 10px;
  font-weight: 600;
  color: #424c69;
}

.appearance-block > p {
  font-size: 8px;
  color: #9da5b9;
  margin-top: 2px;
}

.swatch-row {
  display: flex;
  gap: 9px;
  margin-top: 11px;
}

.swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  padding: 3px;
  border: 1.5px solid transparent;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.swatch i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--sw);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.4), 0 3px 8px -4px var(--sw);
}

.swatch:hover {
  transform: translateY(-2px);
}

.swatch.is-on {
  border-color: var(--sw);
}

.density-seg {
  margin-top: 10px;
}

.density-seg button {
  min-width: 52px;
  justify-content: center;
}

.appearance-preview {
  margin-top: 15px;
  padding: 13px;
  border-radius: 13px;
  background: linear-gradient(140deg, rgba(246, 248, 255, 0.9), rgba(250, 246, 255, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.ap-card {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ap-dot {
  width: 27px;
  height: 27px;
  border-radius: 8px;
  background: linear-gradient(140deg, #8eb1ff, #7d68ee);
  flex: none;
}

.ap-card > div {
  flex: 1;
  line-height: 1.35;
}

.ap-card strong {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: #3e4867;
}

.ap-card small {
  display: block;
  font-size: 7.5px;
  color: #9da5b9;
}

.ap-progress {
  height: 4px;
  border-radius: 999px;
  background: rgba(120, 137, 190, 0.13);
  margin-top: 9px;
  overflow: hidden;
}

.ap-progress i {
  display: block;
  width: 64%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6c8aff, #9a7bf4);
}

/* ============================== 路线规划 ============================== */

.route-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.route-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 15px;
}

.rs-icon {
  width: 33px;
  height: 33px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.route-stat small {
  display: block;
  font-size: 8px;
  color: #98a1b6;
}

.route-stat strong {
  display: block;
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: #2c3452;
  line-height: 1.25;
}

.route-stat strong em {
  font-style: normal;
  font-size: 8px;
  font-weight: 400;
  color: #98a1b6;
}

.route-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 14px;
  align-items: start;
}

.stops-panel {
  padding: 16px;
  border-radius: 19px;
}

.stops-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 11px;
}

.stops-head h3 {
  font-size: 13px;
  font-weight: 650;
  color: #2b3450;
}

.stops-head p {
  margin-top: 3px;
  font-size: 9px;
  color: #99a1b6;
}

.stops-head p b {
  color: #5b6684;
  font-weight: 600;
}

.stops-head .btn {
  margin-left: auto;
  flex: none;
}

.stops-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stop-card {
  position: relative;
  display: flex;
  gap: 9px;
  padding: 10px 10px 10px 9px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.64));
  box-shadow: 0 8px 18px -18px rgba(42, 55, 116, 0.5);
  cursor: grab;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.stop-card:hover {
  border-color: rgba(255, 255, 255, 1);
  box-shadow: 0 14px 26px -20px rgba(42, 55, 116, 0.5);
}

.stop-card.is-active {
  border-color: rgba(115, 136, 246, 0.4);
  box-shadow: 0 0 0 3px rgba(115, 136, 246, 0.09), 0 14px 28px -22px rgba(42, 55, 116, 0.55);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.98), rgba(245, 247, 255, 0.82));
}

.stop-card.is-done {
  opacity: 0.8;
}

.stop-card.is-dragging {
  opacity: 0.45;
}

.stop-card.is-over {
  border-color: rgba(115, 136, 246, 0.5);
  transform: translateY(2px);
}

.stop-seq {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  flex: none;
  font-size: 9px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #6d8aff, #8f72f2);
  box-shadow: 0 5px 10px -5px rgba(100, 115, 235, 0.7);
  margin-top: 1px;
}

.stop-card.is-done .stop-seq {
  background: linear-gradient(135deg, #5cd7ae, #3bbb8f);
  box-shadow: 0 5px 10px -5px rgba(52, 183, 139, 0.6);
}

.stop-body {
  flex: 1;
  min-width: 0;
}

.stop-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 3px;
}

.stop-time {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 8.5px;
  color: #9aa2b8;
  font-variant-numeric: tabular-nums;
}

.stop-body > strong {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: #333c59;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stop-body > p {
  font-size: 8.5px;
  color: #9aa2b8;
  margin-top: 2px;
}

.stop-meta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 5px;
  font-size: 8px;
  color: #8993ab;
  white-space: nowrap;
}

.stop-meta .avatar {
  width: 16px;
  height: 16px;
  font-size: 6.5px;
}

.stop-meta i {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #c2c8d6;
}

.stop-purpose {
  margin-top: 5px;
  font-size: 8px;
  color: #7f8aa5;
  background: rgba(246, 248, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  padding: 3px 6px;
  border-radius: 6px;
  width: fit-content;
}

.stop-drag {
  color: #b3bacb;
  align-self: center;
  cursor: grab;
}

.stop-return {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 11px;
  border: 1px dashed rgba(120, 133, 175, 0.2);
  background: rgba(255, 255, 255, 0.32);
}

.stop-return > span:first-child {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #8d99b8;
  background: rgba(246, 248, 255, 0.9);
  flex: none;
}

.stop-return > div {
  flex: 1;
  line-height: 1.35;
}

.stop-return strong {
  display: block;
  font-size: 9px;
  font-weight: 500;
  color: #68738f;
}

.stop-return small {
  display: block;
  font-size: 7.5px;
  color: #a4abbd;
}

.return-time {
  font-size: 9px;
  font-weight: 600;
  color: #8d96ae;
  font-variant-numeric: tabular-nums;
}

.map-panel {
  padding: 16px;
  border-radius: 19px;
  position: sticky;
  top: 90px;
}

.map-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 11px;
}

.map-head h3 {
  font-size: 13px;
  font-weight: 650;
  color: #2b3450;
}

.map-head p {
  margin-top: 3px;
  font-size: 9px;
  color: #99a1b6;
}

.map-legend {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 7.5px;
  color: #909ab2;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.legend-pin {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid #6d8aff;
  background: #fff;
}

.legend-pin.done {
  border-color: #3ecf9a;
  background: #3ecf9a;
}

.legend-me {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff8e78;
  box-shadow: 0 0 0 3px rgba(255, 142, 120, 0.16);
}

.map-canvas {
  position: relative;
  border-radius: 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: #f1f5fb;
}

.map-canvas > svg {
  display: block;
  width: 100%;
  height: auto;
}

.map-roads path {
  fill: none;
  stroke: #ffffff;
  stroke-width: 13;
  stroke-linecap: round;
  opacity: 0.96;
}

.map-roads path:nth-child(even) {
  stroke-width: 9;
  opacity: 0.82;
}

.map-river {
  fill: none;
  stroke: #dfeefa;
  stroke-width: 24;
  stroke-linecap: round;
}

.map-labels text {
  fill: #aeb8ca;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.route-under {
  fill: none;
  stroke: rgba(255, 255, 255, 0.96);
  stroke-width: 10;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-line {
  fill: none;
  stroke: url(#mapRoute);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 5px 7px rgba(103, 124, 240, 0.35));
}

.map-pin {
  cursor: pointer;
}

.pin-halo {
  fill: rgba(109, 138, 255, 0.1);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.map-pin.is-active .pin-halo,
.map-pin:hover .pin-halo {
  opacity: 1;
}

.pin-core {
  fill: #fff;
  stroke: #6d8aff;
  stroke-width: 2.2;
  filter: drop-shadow(0 3px 5px rgba(60, 80, 150, 0.22));
  transition: fill 0.18s ease, stroke 0.18s ease;
}

.map-pin.is-done .pin-core {
  fill: #3ecf9a;
  stroke: #fff;
}

.map-pin.is-active .pin-core {
  fill: #6d8aff;
  stroke: #fff;
  stroke-width: 2.6;
}

.map-pin.is-done.is-active .pin-core {
  fill: #2fb98a;
}

.pin-text {
  fill: #6885ed;
  font-size: 8.5px;
  font-weight: 700;
  pointer-events: none;
}

.map-pin.is-done .pin-text,
.map-pin.is-active .pin-text {
  fill: #fff;
}

.map-me text {
  fill: #e08b76;
  font-size: 7.5px;
  font-weight: 500;
}

.me-halo {
  fill: rgba(255, 142, 120, 0.14);
}

.me-core {
  fill: #ff8e78;
  stroke: #fff;
  stroke-width: 2;
}

.map-float {
  position: absolute;
  left: 11px;
  top: 11px;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 22px -16px rgba(42, 55, 116, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.95);
}

.map-float .live-dot {
  margin-top: 3px;
}

.map-float strong {
  display: block;
  font-size: 8.5px;
  font-weight: 600;
  color: #46506d;
}

.map-float small {
  display: block;
  font-size: 7.5px;
  color: #9aa2b8;
  margin-top: 1px;
}

.map-brand {
  position: absolute;
  right: 10px;
  bottom: 9px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 6px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 7px;
  color: #9aa2b8;
}

.map-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 10px;
  font-size: 8px;
  color: #9aa2b8;
}

.map-foot > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.map-tip {
  color: #36a581;
}

.route-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(100deg, rgba(244, 241, 255, 0.86), rgba(237, 246, 255, 0.72));
}

.route-note-orb {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #7d8bff, #a06cf6);
  flex: none;
}

.route-note > div {
  flex: 1;
  min-width: 0;
}

.route-note strong {
  font-size: 9.5px;
  font-weight: 650;
  color: #565a93;
}

.route-note p {
  font-size: 8.5px;
  color: #8287a2;
  margin-top: 1px;
  line-height: 1.5;
}

/* ============================== 抽屉内容 ============================== */

.visit-status-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  margin: 2px 0 13px;
}

.tone-todo { background: linear-gradient(120deg, rgba(238, 243, 255, 0.9), rgba(248, 250, 255, 0.7)); }
.tone-doing { background: linear-gradient(120deg, rgba(244, 240, 255, 0.9), rgba(250, 247, 255, 0.7)); }
.tone-review { background: linear-gradient(120deg, rgba(255, 248, 234, 0.9), rgba(255, 252, 245, 0.7)); }
.tone-done { background: linear-gradient(120deg, rgba(236, 251, 245, 0.9), rgba(248, 254, 251, 0.7)); }

.vs-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.vs-left strong {
  font-size: 10px;
  font-weight: 500;
  color: #59627f;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vs-time {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: #8a94ad;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.visit-sla {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  margin-bottom: 13px;
  border-radius: 9px;
  background: linear-gradient(90deg, rgba(255, 239, 234, 0.9), rgba(255, 248, 244, 0.6));
  border: 1px solid rgba(249, 123, 145, 0.12);
  font-size: 8.5px;
  color: #d96f66;
}

.visit-sla b {
  color: #df5f57;
  font-weight: 650;
}

.drawer-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(120, 133, 175, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}

.dm-item {
  padding: 9px 11px;
  background: rgba(255, 255, 255, 0.8);
}

.dm-item > small {
  display: block;
  font-size: 8px;
  color: #9aa2b8;
  margin-bottom: 3px;
}

.dm-item > div {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  color: #4d5775;
  min-height: 19px;
}

.dm-item > div strong {
  font-weight: 600;
}

.dm-item .avatar {
  width: 18px;
  height: 18px;
  font-size: 7px;
}

.drawer-section {
  margin-bottom: 17px;
}

.ds-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ds-head h3 {
  font-size: 10.5px;
  font-weight: 650;
  color: #394361;
}

.ds-head > span {
  margin-left: auto;
  font-size: 8px;
  color: #a4abbd;
}

.note-box {
  padding: 10px 11px;
  border-radius: 10px;
  background: rgba(248, 250, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-size: 9px;
  line-height: 1.7;
  color: #6b7591;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.evidence {
  position: relative;
  aspect-ratio: 1;
  border-radius: 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.evidence small {
  font-size: 7px;
  color: rgba(255, 255, 255, 0.8);
}

.evidence.more {
  background: rgba(245, 247, 253, 0.9);
  color: #8b95ad;
  font-size: 12px;
  font-weight: 600;
}

.ph-0 { background: linear-gradient(140deg, #a9c5ff, #7396ef); }
.ph-1 { background: linear-gradient(140deg, #c5b1ff, #9778e8); }
.ph-2 { background: linear-gradient(140deg, #9fe3c8, #55c39d); }
.ph-3 { background: linear-gradient(140deg, #ffd39b, #eda64e); }

.evidence-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 18px;
  border-radius: 10px;
  border: 1px dashed rgba(120, 133, 175, 0.2);
  background: rgba(255, 255, 255, 0.3);
  font-size: 8.5px;
  color: #a0a8bc;
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 4px 0 0;
}

.timeline-item {
  position: relative;
  display: flex;
  gap: 9px;
  padding-bottom: 13px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 17px;
  bottom: 0;
  width: 1px;
  background: rgba(120, 133, 175, 0.14);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:last-child::before {
  display: none;
}

.tl-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid rgba(130, 143, 180, 0.25);
  background: #fff;
  flex: none;
  margin-top: 1px;
  color: transparent;
  z-index: 1;
}

.timeline-item.is-done .tl-dot {
  border-color: transparent;
  background: linear-gradient(135deg, #5bd6ae, #3cbc91);
  color: #fff;
}

.tl-body {
  flex: 1;
  min-width: 0;
}

.tl-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.tl-line strong {
  font-size: 9px;
  font-weight: 500;
  color: #566080;
}

.timeline-item.is-done .tl-line strong {
  color: #3e4867;
}

.tl-line time {
  margin-left: auto;
  font-size: 8px;
  color: #a4abbd;
  white-space: nowrap;
}

.tl-body p {
  font-size: 8px;
  color: #a0a8bc;
  margin-top: 1px;
  line-height: 1.5;
}

.store-mini {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(248, 250, 255, 0.7);
  transition: background 0.16s ease;
}

.store-mini:hover {
  background: #fff;
}

.store-mini-tile {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  flex: none;
}

.store-mini-info {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.store-mini-info strong {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  color: #424c69;
}

.store-mini-info small {
  display: block;
  font-size: 8px;
  color: #9aa2b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.store-mini > .ico {
  color: #b0b7c8;
}

/* 门店抽屉 */
.store-identity {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 13px;
}

.store-tile {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.store-tile.big {
  width: 54px;
  height: 54px;
  border-radius: 15px;
  font-size: 19px;
}

.si-main {
  min-width: 0;
  flex: 1;
}

.si-tags {
  display: flex;
  align-items: center;
  gap: 5px;
}

.si-main > p {
  font-size: 8.5px;
  color: #99a1b6;
  margin-top: 4px;
}

.store-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 12px 4px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(246, 248, 255, 0.82), rgba(250, 246, 255, 0.6));
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.store-kpis > div {
  text-align: center;
  border-right: 1px solid rgba(120, 133, 175, 0.1);
}

.store-kpis > div:last-child {
  border-right: 0;
}

.store-kpis strong {
  display: block;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #333c59;
  line-height: 1.2;
}

.store-kpis strong em {
  font-style: normal;
  font-size: 8px;
  color: #98a1b6;
  font-weight: 400;
  margin-left: 1px;
}

.store-kpis small {
  display: block;
  font-size: 7.5px;
  color: #a1a8bc;
  margin-top: 2px;
}

.info-list {
  display: grid;
  gap: 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.45);
}

.info-list > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(120, 133, 175, 0.06);
}

.info-list > div:last-child {
  border-bottom: 0;
}

.info-list dt {
  width: 58px;
  flex: none;
  font-size: 8px;
  color: #9aa2b8;
}

.info-list dd {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: #525c79;
  min-width: 0;
}

.info-list .avatar {
  width: 17px;
  height: 17px;
  font-size: 6.5px;
}

.info-list .span2 {
  grid-column: span 2;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.store-history {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.store-history li {
  display: flex;
  gap: 8px;
}

.sh-icon {
  width: 19px;
  height: 19px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  color: #8e98b2;
  background: rgba(246, 248, 253, 0.9);
  flex: none;
  margin-top: 1px;
}

.sh-icon.ok {
  color: #2fae84;
  background: rgba(62, 207, 154, 0.1);
}

.sh-body {
  flex: 1;
  min-width: 0;
}

.sh-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.sh-line strong {
  font-size: 9px;
  font-weight: 500;
  color: #4d5775;
}

.sh-line time {
  margin-left: auto;
  font-size: 8px;
  color: #a4abbd;
}

.sh-body p {
  font-size: 8.5px;
  color: #8f98b0;
  margin-top: 2px;
  line-height: 1.5;
}

.sh-body small {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 3px;
  font-size: 7.5px;
  color: #a6adc0;
}

.sh-body .avatar {
  width: 15px;
  height: 15px;
  font-size: 6px;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 11px;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(240, 245, 255, 0.9), rgba(248, 246, 255, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.rhythm-section {
  margin-top: 17px;
}

.rhythm-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 10px 4px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: linear-gradient(120deg, rgba(247, 249, 255, 0.8), rgba(250, 247, 255, 0.6));
}

.rhythm-grid > div {
  text-align: center;
  border-right: 1px solid rgba(120, 133, 175, 0.08);
}

.rhythm-grid > div:last-child {
  border-right: 0;
}

.rhythm-grid strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #37415f;
  line-height: 1.3;
}

.rhythm-grid strong em {
  font-style: normal;
  font-size: 7px;
  font-weight: 400;
  color: #98a1b6;
  margin-left: 1px;
}

.rhythm-grid small {
  display: block;
  font-size: 7px;
  color: #a1a8bc;
  margin-top: 1px;
}

.ai-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 13px;
  padding: 11px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  background:
    radial-gradient(120px 80px at 100% 0%, rgba(175, 151, 255, 0.17), transparent 70%),
    linear-gradient(130deg, rgba(248, 246, 255, 0.9), rgba(240, 247, 255, 0.76));
}

.ai-note .ai-orb {
  width: 26px;
  height: 26px;
  border-radius: 8px;
}

.ai-note > div {
  flex: 1;
  min-width: 0;
}

.ai-note strong {
  display: block;
  font-size: 9px;
  font-weight: 600;
  color: #555a91;
}

.ai-note p {
  font-size: 8px;
  line-height: 1.6;
  color: #8a8fa9;
  margin-top: 2px;
}

.ai-note .btn {
  align-self: center;
  flex: none;
}

.cc-icon {
  width: 29px;
  height: 29px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #6a7fe0;
  box-shadow: 0 4px 10px -8px rgba(60, 75, 150, 0.5);
  flex: none;
}

.contact-card > div {
  flex: 1;
  line-height: 1.35;
}

.contact-card strong {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  color: #424c69;
}

.contact-card small {
  display: block;
  font-size: 8px;
  color: #9aa2b8;
}

/* ============================== 弹窗内容 ============================== */

.ai-panel-hero {
  display: flex;
  gap: 11px;
  padding: 13px;
  border-radius: 13px;
  background: linear-gradient(120deg, rgba(244, 241, 255, 0.9), rgba(236, 246, 255, 0.75));
  border: 1px solid rgba(255, 255, 255, 0.9);
  margin-bottom: 12px;
}

.ai-panel-hero strong {
  display: block;
  font-size: 10.5px;
  font-weight: 650;
  color: #454a80;
}

.ai-panel-hero p {
  margin-top: 2px;
  font-size: 9px;
  color: #7d82a0;
  line-height: 1.6;
}

.ai-suggest-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ai-suggest {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(248, 250, 255, 0.55);
  text-align: left;
  transition: background 0.16s ease, transform 0.16s ease;
}

.ai-suggest:hover {
  background: #fff;
  transform: translateY(-1px);
}

.ai-suggest > span {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
}

.ai-suggest > div {
  flex: 1;
  min-width: 0;
}

.ai-suggest strong {
  display: block;
  font-size: 9.5px;
  font-weight: 600;
  color: #46506d;
}

.ai-suggest small {
  display: block;
  font-size: 8px;
  color: #9aa2b8;
  margin-top: 1px;
  line-height: 1.5;
}

.ai-suggest > .ico {
  color: #b0b7c8;
}

.advice-note {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid rgba(113, 125, 166, 0.08);
  font-size: 8px;
  color: #9aa2b8;
}

.ai-ask {
  display: flex;
  gap: 7px;
  margin-top: 13px;
}

.ai-ask .input-icon {
  flex: 1;
}

.ai-ask .input {
  height: 36px;
  font-size: 10px;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(248, 250, 255, 0.55);
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.filter-option:hover {
  background: #fff;
}

.filter-option > div {
  flex: 1;
}

.filter-option strong {
  display: block;
  font-size: 10px;
  font-weight: 500;
  color: #46506d;
}

.filter-option small {
  display: block;
  font-size: 8px;
  color: #9aa2b8;
  margin-top: 2px;
}

.filter-option > .ico {
  color: #c3c9d8;
}

.filter-option.is-on {
  border-color: rgba(111, 133, 240, 0.3);
  background: linear-gradient(120deg, rgba(241, 245, 255, 0.95), rgba(247, 243, 255, 0.8));
}

.filter-option.is-on > .ico {
  color: #6b7de0;
}

.form-hint {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 12px;
  font-size: 8px;
  line-height: 1.55;
  color: #9aa2b8;
}

.modal-text {
  font-size: 10px;
  color: #7c86a0;
  line-height: 1.7;
}

/* 密度 */
.density-compact .table tbody td {
  padding-top: 7px;
  padding-bottom: 7px;
}

.density-compact .task-card {
  padding-top: 8px;
  padding-bottom: 7px;
}

.density-compact .member-card,
.density-compact .mini-stat {
  padding-top: 10px;
  padding-bottom: 10px;
}

/* ============================== 页面级响应式 ============================== */

@media (max-width: 1380px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.82fr) minmax(190px, 0.58fr);
  }

  .hero-goal {
    width: 148px;
  }

  .hero-number {
    font-size: 42px;
  }

  .sla-spark {
    display: none;
  }

  .board {
    gap: 10px;
  }

  .task-card {
    padding-left: 10px;
    padding-right: 10px;
  }

  .hero-legend {
    gap: 9px;
  }

  .hero-team span {
    display: none;
  }

  .hero-team {
    margin-left: 4px;
  }
}

@media (max-width: 1280px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.85fr);
  }

  .hero-sla {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: flex-start;
    gap: 16px;
    padding: 11px 16px;
  }

  .sla-ring {
    width: 62px;
    height: 62px;
  }

  .sla-ring-inner strong {
    font-size: 16px;
  }

  .sla-copy {
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 7px;
  }

  .sla-copy span {
    margin-top: 0;
  }

  .sla-spark {
    display: block;
    width: 160px;
    margin-left: auto;
  }

  .hero-goal {
    display: none;
  }

  .dash-lower {
    grid-template-columns: minmax(0, 1.35fr) minmax(290px, 0.85fr);
  }

  .team-layout {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.75fr);
  }

  .analytics-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  }

  .analytics-composition {
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  }
}

@media (max-width: 1180px) {
  .board {
    display: flex;
    align-items: flex-start;
    overflow-x: auto;
    padding: 2px 2px 8px;
    scroll-snap-type: x proximity;
  }

  .board-col {
    min-width: 272px;
    flex: 1 0 272px;
    scroll-snap-align: start;
  }

  .stat-strip,
  .team-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-bar {
    align-items: flex-start;
  }

  .filter-bar-right {
    width: 100%;
    margin-left: 0;
    justify-content: flex-end;
  }

  .store-filter-right {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .store-tabs {
    width: 100%;
    overflow-x: auto;
  }

  .team-layout {
    grid-template-columns: 1fr;
  }

  .team-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

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

  .map-panel {
    position: static;
  }

  .analytics-grid {
    grid-template-columns: 1fr;
  }

  .analytics-composition {
    grid-template-columns: 1fr;
  }

  .dash-lower {
    grid-template-columns: 1fr;
  }

  .settings-layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-sla {
    grid-column: auto;
  }

  .hero-ai {
    min-height: 148px;
  }

  .kpi-grid,
  .route-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .member-grid {
    grid-template-columns: 1fr;
  }

  .team-side {
    grid-template-columns: 1fr;
  }

  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    gap: 4px;
  }

  .settings-tab {
    flex: 0 0 auto;
    min-width: 128px;
  }

  .settings-tab > .ico {
    display: none;
  }

  .settings-nav-foot {
    display: none;
  }

  .settings-tab small {
    display: none;
  }

  .analytics-composition {
    grid-template-columns: 1fr;
  }

  .donut-body {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .hero-number {
    font-size: 40px;
  }

  .hero-head {
    flex-direction: column;
  }

  .hero-legend {
    gap: 8px 12px;
  }

  .hero-team {
    display: none;
  }

  .hero-sla {
    flex-direction: row;
  }

  .sla-spark {
    display: none;
  }

  .stat-strip,
  .team-stats,
  .kpi-grid,
  .route-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    gap: 8px;
  }

  .section-head .hint {
    display: none;
  }

  .board-section-head .tools {
    margin-left: 0;
    width: 100%;
    justify-content: space-between;
  }

  .filter-bar {
    padding: 8px;
  }

  .filter-search,
  .filter-search .input {
    width: 100%;
  }

  .filter-bar .seg {
    flex: 1;
    overflow-x: auto;
  }

  .filter-bar-right {
    justify-content: space-between;
  }

  .store-tab {
    padding: 0 8px;
  }

  .store-table {
    min-width: 900px;
  }

  .tt-left span {
    display: none;
  }

  .tt-right .btn span {
    display: none;
  }

  .table-card {
    border-radius: 14px;
  }

  .analytics-trend {
    padding: 14px 10px 10px;
  }

  .trend-summary {
    gap: 10px;
    flex-wrap: wrap;
  }

  .trend-meta {
    width: 100%;
    margin-left: 0;
  }

  .chart-summary {
    flex-wrap: wrap;
    gap: 12px;
  }

  .chart-summary .chart-link {
    width: 100%;
    margin-left: 0;
    padding-bottom: 0;
  }

  .panel {
    padding: 15px;
  }

  .chart-panel,
  .team-panel,
  .analytics-trend,
  .region-panel,
  .donut-panel,
  .analytics-members {
    padding: 14px;
  }

  .donut-body {
    flex-direction: column;
    align-items: flex-start;
  }

  .donut-legend {
    width: 100%;
  }

  .team-mini-list {
    gap: 9px;
  }

  .settings-panel {
    padding: 16px;
  }

  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .form-grid .span2 {
    grid-column: auto;
  }

  .route-summary {
    gap: 8px;
  }

  .route-stat {
    padding: 9px 10px;
  }

  .route-stat strong {
    font-size: 15px;
  }

  .map-head {
    flex-wrap: wrap;
  }

  .map-legend {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
  }

  .map-foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .route-note {
    align-items: flex-start;
  }

  .route-note .btn {
    display: none;
  }

  .insight-banner {
    flex-wrap: wrap;
  }

  .insight-banner > .btn {
    width: 100%;
    margin-left: 42px;
  }

  .page-actions {
    width: 100%;
  }

  .page-actions .btn {
    flex: 1;
  }

  .page-actions .seg {
    flex: 1;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .hero-sla {
    flex-wrap: wrap;
  }

  .sla-copy {
    flex-direction: column;
    gap: 0;
  }

  .stat-strip,
  .team-stats,
  .kpi-grid,
  .route-summary {
    grid-template-columns: 1fr;
  }

  .analytics-trend .panel-head,
  .chart-panel .panel-head {
    flex-wrap: wrap;
  }

  .chart-legend {
    width: 100%;
  }

  .member-stats strong {
    font-size: 14px;
  }

  .evidence-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .drawer-meta-grid {
    grid-template-columns: 1fr;
  }

  .info-list > div {
    align-items: flex-start;
  }
}
