/* 跑店宝 PC · 真实数据层补充样式 */

/* ============================== 启动 / 登录 ============================== */

#app {
  min-height: 100vh;
}

.app-boot {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--ink-2);
}

.app-boot .brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.boot-copy {
  line-height: 1.35;
}

.boot-copy strong {
  display: block;
  font-size: 14px;
  font-weight: 650;
  color: var(--ink);
}

.boot-copy span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 2px;
}

.spinner,
.mini-spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(108, 138, 255, 0.18);
  border-top-color: var(--accent);
  animation: pc2spin 0.8s linear infinite;
  flex: none;
}

.mini-spinner {
  width: 13px;
  height: 13px;
  border-width: 1.5px;
}

@keyframes pc2spin {
  to { transform: rotate(360deg); }
}

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  gap: 18px;
  padding: 18px;
}

.login-art {
  position: relative;
  overflow: hidden;
  border-radius: 30px;
  padding: 38px 42px;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(189, 220, 255, 0.9), transparent 65%),
    radial-gradient(700px 500px at -10% 110%, rgba(255, 212, 192, 0.7), transparent 62%),
    linear-gradient(145deg, #f7f4ff 0%, #eef1ff 48%, #f7f9ff 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 40px 90px -60px rgba(55, 67, 130, 0.55);
}

.login-art::before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  right: -120px;
  bottom: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(150, 122, 255, 0.22), transparent 65%);
}

.login-art::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  left: 20%;
  top: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(122, 183, 255, 0.22), transparent 68%);
}

.login-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
}

.login-brand > div {
  line-height: 1.2;
}

.login-brand strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.login-brand span {
  display: block;
  font-size: 8px;
  letter-spacing: 0.18em;
  color: #929bb2;
  margin-top: 3px;
}

.login-copy {
  position: relative;
  z-index: 1;
  margin-top: 16vh;
  max-width: 520px;
}

.login-kicker {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.9);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #7b86a5;
}

.login-copy h1 {
  margin-top: 16px;
  font-size: clamp(34px, 3.6vw, 54px);
  line-height: 1.22;
  font-weight: 650;
  letter-spacing: -0.035em;
  color: #202942;
}

.login-copy p {
  max-width: 440px;
  margin-top: 16px;
  font-size: 12.5px;
  line-height: 1.8;
  color: #7d86a0;
}

.login-points {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
  font-size: 10px;
  color: #66728f;
}

.login-points span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.login-points .ico {
  color: #34b88d;
}

.login-art-card {
  position: relative;
  z-index: 1;
  width: min(360px, 82%);
  margin-top: auto;
  padding: 13px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 36px -28px rgba(55, 67, 130, 0.5);
  backdrop-filter: blur(16px);
}

.lac-head {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  font-weight: 500;
  color: #59637f;
}

.lac-head em {
  margin-left: auto;
  font-style: normal;
  font-size: 7.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #39ad84;
}

.lac-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 8px;
  margin-top: 9px;
}

.lac-row strong {
  font-size: 8.5px;
  font-weight: 500;
  color: #747f99;
}

.lac-row b {
  display: none;
}

.lac-row i {
  display: block;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c97ff, #a18af2);
  opacity: 0.8;
}

.login-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
}

.login-card {
  width: min(390px, 100%);
}

.login-card > .eyebrow {
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: #9aa3b9;
}

.login-card h2 {
  margin-top: 8px;
  font-size: 27px;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: #232b47;
}

.login-card > p.muted {
  margin-top: 6px;
  font-size: 11px;
  color: #8d96ac;
}

.login-card form {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.login-card .field > label {
  font-size: 10px;
  color: #7d87a0;
}

.login-card .input {
  height: 44px;
  border-radius: 11px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.76);
}

.login-submit {
  height: 44px;
  margin-top: 4px;
  border-radius: 11px;
  font-size: 12px;
}

.login-error {
  margin-top: 14px;
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(249, 123, 145, 0.09);
  border: 1px solid rgba(249, 123, 145, 0.16);
  color: #d65f76;
  font-size: 10px;
  line-height: 1.5;
}

.demo-login {
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid rgba(113, 125, 166, 0.09);
}

.demo-login > span {
  display: block;
  font-size: 9px;
  color: #9aa3b9;
  margin-bottom: 9px;
}

.demo-accounts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
}

.demo-accounts button {
  padding: 8px 9px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.56);
  text-align: left;
  font-size: 10px;
  color: #58627f;
  transition: background 0.16s ease;
}

.demo-accounts button:hover {
  background: #fff;
}

.demo-accounts button small {
  display: block;
  font-size: 7.5px;
  color: #9aa3b9;
  margin-top: 2px;
}

.login-foot {
  margin-top: 20px;
  font-size: 8.5px;
  color: #a4abbd;
  text-align: center;
}

@media (max-width: 960px) {
  .login-screen {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 12px;
  }

  .login-art {
    min-height: 300px;
    padding: 26px;
  }

  .login-copy {
    margin-top: 34px;
  }

  .login-copy h1 {
    font-size: 34px;
  }

  .login-art-card {
    display: none;
  }

  .login-side {
    padding: 28px 10px 40px;
  }
}

/* ============================== 数据 / 错误 / 空态 ============================== */

.api-loading {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #8e97ae;
  font-size: 10.5px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.42);
}

.api-error {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(249, 123, 145, 0.18);
  background: rgba(255, 246, 248, 0.8);
  color: #b85a6f;
}

.api-error strong {
  display: block;
  font-size: 11px;
  margin-bottom: 3px;
}

.api-error p {
  font-size: 10px;
  line-height: 1.6;
  color: #a56878;
}

.api-error .btn {
  margin-top: 8px;
}

.list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 12px;
}

.list-head strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: #303955;
}

.list-head span {
  display: block;
  margin-top: 3px;
  font-size: 9px;
  color: #9aa3b9;
}

.form-hint {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 8.5px;
  line-height: 1.55;
  color: #9aa3b9;
}

.error-text {
  min-height: 0;
  font-size: 9.5px;
  color: #d45e76;
  line-height: 1.5;
  margin: 8px 0;
}

.error-text:empty {
  display: none;
}

.danger-text {
  color: #de7184 !important;
}

.settings-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 16px;
  padding-top: 13px;
  border-top: 1px solid rgba(113, 125, 166, 0.08);
}

/* ============================== 拜访列表 ============================== */

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

.visit-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.visit-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 13px 15px;
  border-radius: 15px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.62));
  box-shadow: 0 10px 24px -24px rgba(42, 55, 116, 0.45);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.visit-row:hover {
  background: rgba(255, 255, 255, 0.94);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -24px rgba(42, 55, 116, 0.5);
}

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

.vr-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.vr-owner {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 3px;
  font-size: 9px;
  color: #7b85a0;
}

.vr-owner .avatar {
  width: 17px;
  height: 17px;
  font-size: 6.5px;
}

.visit-row h3 {
  font-size: 12.5px;
  font-weight: 600;
  color: #29314e;
  margin-top: 6px;
  line-height: 1.45;
}

.visit-row p {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 3px;
  font-size: 9px;
  color: #929bb2;
  line-height: 1.5;
}

.visit-row p .ico {
  color: #a5aec2;
}

.visit-row .vr-reason {
  color: #d77763;
}

.visit-row .vr-reason .ico {
  color: #ec927f;
}

.visit-row .vr-next {
  color: #8b78ca;
}

.vr-side {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 9px;
}

.vr-date {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 8.5px;
  color: #9aa3b9;
  white-space: nowrap;
}

.vr-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.vr-actions .btn {
  height: 27px;
  padding: 0 8px;
  font-size: 9px;
  border-radius: 7px;
}

@media (max-width: 760px) {
  .visit-row {
    flex-direction: column;
    gap: 8px;
  }

  .vr-side {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .vr-actions {
    justify-content: flex-start;
  }
}

/* 路线页 / 计划卡 */
.plan-group {
  margin-bottom: 18px;
}

.plan-group-head {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 2px 8px;
  font-size: 10px;
  color: #56607d;
}

.plan-group-head strong {
  font-weight: 600;
}

.plan-group-head span {
  margin-left: auto;
  color: #9aa3b9;
  font-size: 8.5px;
}

.plan-stop {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 18px -18px rgba(42, 55, 116, 0.4);
}

.plan-stop + .plan-stop {
  margin-top: 8px;
}

.plan-stop .stop-body > strong {
  font-size: 10.5px;
  font-weight: 600;
  color: #333c59;
}

.plan-stop .stop-meta {
  margin-top: 4px;
}

.stop-tools {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: none;
}

.stop-tools .icon-btn {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: #a2abc0;
}

.stop-tools .icon-btn:disabled {
  opacity: 0.25;
}

/* ============================== 拜访记录 ============================== */

.record-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.record-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 8px 20px -22px rgba(42, 55, 116, 0.4);
}

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

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

.record-icon.warn {
  color: #dc7e56;
  background: rgba(249, 160, 123, 0.12);
}

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

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

.record-top strong {
  font-size: 11px;
  font-weight: 600;
  color: #333c59;
}

.record-main > p {
  margin-top: 4px;
  font-size: 9px;
  color: #858fa8;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.record-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 5px;
  font-size: 8px;
  color: #9aa3b9;
}

.record-meta .avatar {
  width: 15px;
  height: 15px;
  font-size: 6px;
}

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

.record-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  flex: none;
  font-size: 8.5px;
  color: #8a94ad;
}

.record-side .btn {
  height: 26px;
  padding: 0 8px;
  font-size: 8.5px;
}

/* ============================== 公共池 / 分组 ============================== */

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

.pool-card {
  padding: 13px;
  border-radius: 15px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.pool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px -26px rgba(42, 55, 116, 0.5);
}

.pool-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.pool-card h3 {
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #333c59;
}

.pool-card p {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 4px;
  font-size: 8.5px;
  color: #929bb2;
  line-height: 1.5;
}

.pool-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px dashed rgba(120, 133, 175, 0.14);
}

.pool-foot > span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 8px;
  color: #9aa3b9;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pool-foot .btn {
  margin-left: auto;
  flex: none;
  height: 26px;
  font-size: 8.5px;
}

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

.group-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px;
  border-radius: 14px;
}

.group-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: #7c6ad5;
  background: rgba(143, 123, 245, 0.1);
  flex: none;
}

.group-card strong {
  display: block;
  font-size: 10.5px;
  color: #3d4763;
}

.group-card p {
  font-size: 8px;
  color: #9aa3b9;
  margin-top: 2px;
}

@media (max-width: 1100px) {
  .pool-grid,
  .group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .pool-grid,
  .group-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================== 分配预览 ============================== */

.assign-preview {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  background: rgba(249, 250, 255, 0.6);
  padding: 7px;
}

.assign-preview > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  color: #4e5875;
}

.assign-preview small {
  color: #9aa3b9;
  font-size: 8px;
}

/* ============================== 分析补充 ============================== */

.kpi-hint {
  margin-top: 6px;
  font-size: 8.5px;
  color: #9aa3b9;
}

.seg-rose {
  background: linear-gradient(90deg, #f97b91, #ffadba);
}

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

.cov-ring::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 50%;
  background: #fff;
}

.cov-ring .sla-ring-inner {
  position: relative;
  z-index: 1;
}

.coverage-panel {
  padding: 18px;
}

.coverage-hero {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 6px 0 16px;
}

.coverage-hero > div:last-child strong {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -0.04em;
  color: #2a3452;
}

.coverage-hero > div:last-child strong small {
  font-size: 9px;
  font-weight: 400;
  color: #9aa3b9;
}

.coverage-hero > div:last-child p {
  font-size: 9px;
  color: #8f98b0;
  margin-top: 2px;
}

.coverage-hero > div:last-child span {
  display: block;
  font-size: 8.5px;
  color: #e0787b;
  margin-top: 6px;
}

.coverage-bar {
  display: flex;
  height: 9px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(120, 137, 190, 0.1);
}

.coverage-bar i {
  display: block;
  height: 100%;
}

.coverage-bar .ok { background: linear-gradient(90deg, #3ecf9a, #66dfb6); }
.coverage-bar .due { background: linear-gradient(90deg, #f97b91, #ffa1b0); }
.coverage-bar .pending { background: #dbe2f4; }

.coverage-legend {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 9px;
  font-size: 8.5px;
  color: #8f98b0;
}

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

.coverage-legend i {
  width: 6px;
  height: 6px;
  border-radius: 2px;
}

.coverage-legend .ok { background: #3ecf9a; }
.coverage-legend .due { background: #f97b91; }
.coverage-legend .pending { background: #dbe2f4; }

.team-exec {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 8px 0 10px;
}

.team-exec > div {
  text-align: center;
  padding: 8px 4px;
  border-radius: 9px;
  background: rgba(248, 250, 255, 0.72);
}

.team-exec strong {
  display: block;
  font-size: 17px;
  font-weight: 650;
  color: #333c59;
}

.team-exec small {
  display: block;
  font-size: 7.5px;
  color: #9aa3b9;
  margin-top: 1px;
}

/* ============================== 销售 ============================== */

.sales-empty {
  padding: 44px 26px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sales-empty-orb {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #7d89c8;
  background: linear-gradient(150deg, #fff, #eef2ff);
  box-shadow: 0 16px 30px -24px rgba(55, 67, 130, 0.5);
}

.sales-empty h2 {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 650;
  color: #303955;
}

.sales-empty p {
  max-width: 560px;
  margin-top: 6px;
  font-size: 10px;
  line-height: 1.7;
  color: #8f98b0;
}

.sales-steps {
  display: flex;
  gap: 10px;
  margin: 18px 0;
  flex-wrap: wrap;
  justify-content: center;
}

.sales-steps span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 8.5px;
  color: #6f7a9a;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.sales-steps b {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 7px;
  color: #fff;
  background: linear-gradient(135deg, #7d8bff, #a06cf6);
}

/* ============================== 路线补充 ============================== */

.stop-card .stop-tools {
  margin-left: auto;
  align-self: center;
}

.route-layout .stops-panel {
  min-width: 0;
}

.route-layout .map-panel {
  min-width: 0;
}

.map-canvas.empty-map {
  min-height: 380px;
  display: grid;
  place-items: center;
}

.empty-map .empty {
  border: 0;
  background: transparent;
}

/* 地图装饰与网格 */
.route-bg path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.92);
  stroke-width: 13;
  stroke-linecap: round;
}

.route-river {
  fill: none;
  stroke: rgba(211, 233, 249, 0.72);
  stroke-width: 24;
  stroke-linecap: round;
}

.map-canvas .grid-line {
  stroke: rgba(120, 137, 180, 0.1);
  stroke-width: 1;
}

.page-actions > .input,
.page-actions > .select {
  width: auto;
  min-width: 138px;
  height: 37px;
  font-size: 11px;
  flex: none;
}

@media (max-width: 900px) {
  .coverage-hero {
    gap: 14px;
  }

  .cov-ring {
    width: 96px;
    height: 96px;
  }
}

@media (max-width: 520px) {
  .coverage-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .team-exec {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   可读性提升：在不改变布局骨架的前提下整体放大一档
   ========================================================================== */

body {
  font-size: 14.5px;
}

.page-head h1 {
  font-size: 26px;
}

.page-head p {
  font-size: 12.5px;
  line-height: 1.7;
}

.page-head .eyebrow,
.eyebrow {
  font-size: 10px;
}

.small,
.hint,
.form-hint {
  font-size: 10.5px;
}

/* 侧边栏与顶栏 */
.nav-label {
  font-size: 10.5px;
}

.nav-item {
  height: 43px;
  font-size: 14.5px;
}

.nav-badge {
  min-width: 22px;
  height: 20px;
  font-size: 10.5px;
}

.quick-filter {
  height: 33px;
  font-size: 12.5px;
}

.quick-filter b {
  font-size: 11.5px;
}

.brand-line strong {
  font-size: 16.5px;
}

.brand-info small {
  font-size: 9.5px;
}

.brand-pro {
  font-size: 9px;
}

.tc-head strong {
  font-size: 11px;
}

.tc-frac {
  font-size: 9.5px;
}

.today-card p {
  font-size: 9px;
}

.tc-link {
  height: 30px;
  font-size: 9.5px;
}

.user-meta strong {
  font-size: 12.5px;
}

.user-meta small {
  font-size: 10.5px;
}

.crumb {
  font-size: 13px;
}

.crumb strong {
  font-size: 14.5px;
}

.sync-chip {
  height: 23px;
  font-size: 10.5px;
}

.search-trigger {
  height: 42px;
  font-size: 12.5px;
}

.search-trigger kbd {
  font-size: 10px;
}

.user-chip .name {
  font-size: 12.5px;
}

.icon-btn {
  width: 39px;
  height: 39px;
}

/* 顶部概览 */
.hero-number {
  font-size: 52px;
}

.hero-unit {
  font-size: 13.5px;
}

.hero-delta {
  height: 22px;
  font-size: 10px;
}

.hero-sub {
  font-size: 11.5px;
}

.hero-eyebrow {
  font-size: 10.5px;
}

.goal-top span {
  font-size: 10px;
}

.goal-top strong {
  font-size: 17px;
}

.goal-foot {
  font-size: 9.5px;
}

.hero-legend {
  font-size: 10.5px;
}

.hero-team {
  font-size: 9.5px;
}

.ai-panel-label {
  font-size: 11.5px;
}

.ai-tag {
  font-size: 8.5px;
}

.hero-ai p {
  font-size: 11.5px;
}

.ai-reco span,
.ai-reco button {
  font-size: 10px;
}

.hero-ai-foot {
  font-size: 9px;
}

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

.sla-copy small {
  font-size: 9.5px;
}

.sla-copy strong {
  font-size: 12.5px;
}

.sla-copy span {
  font-size: 9px;
}

/* 看板 */
.section-head h2 {
  font-size: 17px;
}

.section-head .count {
  font-size: 11.5px;
  height: 22px;
}

.section-head .hint {
  font-size: 10.5px;
}

.col-head h2 {
  font-size: 13px;
}

.col-count {
  font-size: 9.5px;
  height: 19px;
  min-width: 19px;
}

.task-title {
  font-size: 14px;
  line-height: 1.5;
}

.task-addr {
  font-size: 10.5px;
}

.type-chip {
  height: 22px;
  font-size: 10px;
}

.prio {
  font-size: 10px;
}

.sla-alert {
  font-size: 10px;
  padding: 5px 7px;
}

.task-foot .person {
  font-size: 10.5px;
}

.task-foot .time {
  font-size: 10px;
}

.task-foot .avatar {
  width: 21px;
  height: 21px;
  font-size: 8px;
}

.unassigned,
.done-pill {
  height: 21px;
  font-size: 9.5px;
}

.col-empty {
  font-size: 10.5px;
}

/* 面板、图表、团队 */
.panel-head h3 {
  font-size: 15px;
}

.panel-head p {
  font-size: 11px;
}

.chart-summary strong {
  font-size: 21px;
}

.chart-summary small {
  font-size: 9.5px;
}

.chart-legend {
  font-size: 9.5px;
}

.team-mini-list .tm-line strong {
  font-size: 11.5px;
}

.tm-role {
  font-size: 9px;
}

.tm-line b {
  font-size: 11px;
}

.team-mini-foot {
  font-size: 9.5px;
}

/* 通用按钮、标签、表单 */
.btn {
  height: 39px;
  font-size: 12.5px;
}

.btn.sm {
  height: 33px;
  font-size: 11.5px;
}

.btn.lg {
  height: 43px;
  font-size: 13px;
}

.btn-soft {
  height: 32px;
  font-size: 11.5px;
}

.pill {
  height: 23px;
  padding: 0 9px;
  font-size: 10.5px;
}

.tag {
  height: 24px;
  font-size: 10.5px;
}

.input,
.select {
  height: 40px;
  font-size: 12.5px;
}

textarea.input {
  min-height: 90px;
}

.field > label {
  font-size: 11.5px;
}

.search-input {
  height: 38px;
}

.filter-select {
  height: 36px;
  font-size: 11px;
}

.filter-search .input {
  height: 36px;
  font-size: 11.5px;
}

.result-count {
  font-size: 10.5px;
}

.seg button {
  height: 30px;
  font-size: 11.5px;
}

.active-filter {
  height: 23px;
  font-size: 9.5px;
}

/* 表格 */
.table {
  font-size: 12.5px;
}

.table thead th {
  font-size: 10.5px;
  padding: 12px 14px;
}

.table tbody td {
  padding: 13px 14px;
}

.cell-main strong {
  font-size: 12.5px;
}

.cell-main small {
  font-size: 10px;
}

.cell-muted {
  font-size: 11px;
}

.type-label {
  font-size: 11px;
}

.table-person {
  font-size: 11.5px;
}

.sales-cell small {
  font-size: 9px;
}

.overdue-text,
.today-text,
.soon-text {
  font-size: 10px;
}

.pager-btn {
  min-width: 29px;
  height: 29px;
  font-size: 10px;
}

.table-foot {
  font-size: 9.5px;
}

/* 门店统计 */
.ms-body small {
  font-size: 9.5px;
}

.ms-body strong {
  font-size: 24px;
}

.ms-body em {
  font-size: 9px;
}

/* 门店页签 */
.store-tab {
  height: 31px;
  font-size: 11px;
}

.store-tab span {
  font-size: 9px;
}

/* 拜访列表 */
.list-head strong {
  font-size: 14.5px;
}

.list-head span {
  font-size: 10px;
}

.visit-row h3 {
  font-size: 14px;
}

.visit-row p {
  font-size: 10.5px;
}

.vr-owner {
  font-size: 10px;
}

.vr-date {
  font-size: 9.5px;
}

.vr-actions .btn {
  height: 30px;
  font-size: 10px;
}

.record-top strong {
  font-size: 12.5px;
}

.record-main > p {
  font-size: 10.5px;
}

.record-meta {
  font-size: 9px;
}

.record-side {
  font-size: 9.5px;
}

.pool-card h3 {
  font-size: 13px;
}

.pool-card p {
  font-size: 9.5px;
}

.pool-foot > span,
.pool-foot .btn {
  font-size: 9.5px;
}

.group-card strong {
  font-size: 12px;
}

.group-card p {
  font-size: 9px;
}

/* 分析 */
.kpi-label {
  font-size: 10.5px;
}

.kpi-value {
  font-size: 31px;
}

.kpi-value small {
  font-size: 10px;
}

.kpi-hint {
  font-size: 9.5px;
}

.kpi-delta {
  font-size: 9px;
}

.insight-banner .ib-body strong {
  font-size: 10.5px;
}

.ib-body p {
  font-size: 10.5px;
}

.trend-big strong {
  font-size: 28px;
}

.region-top strong,
.region-top span {
  font-size: 10.5px;
}

.donut-legend li {
  font-size: 10px;
}

.donut-legend b {
  font-size: 10px;
}

.donut-hole strong {
  font-size: 23px;
}

.analytics-note {
  font-size: 9px;
}

.coverage-hero > div:last-child strong {
  font-size: 27px;
}

.coverage-hero > div:last-child p,
.coverage-hero > div:last-child span {
  font-size: 10px;
}

.coverage-legend {
  font-size: 9.5px;
}

/* 团队 */
.team-stat small {
  font-size: 9.5px;
}

.team-stat strong {
  font-size: 25px;
}

.team-stat p {
  font-size: 9px;
}

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

.member-name small {
  font-size: 9.5px;
}

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

.member-stats small {
  font-size: 8.5px;
}

.mp-label,
.member-today,
.member-foot .rating {
  font-size: 9px;
}

.rank-name strong {
  font-size: 10.5px;
}

.rank-score {
  font-size: 12px;
}

.activity-list .act-body p {
  font-size: 9.5px;
}

/* 设置 */
.settings-tab strong {
  font-size: 10.5px;
}

.settings-tab small {
  font-size: 8.5px;
}

.settings-panel-head h2 {
  font-size: 17px;
}

.settings-panel-head p {
  font-size: 10.5px;
}

.brand-setting strong {
  font-size: 12px;
}

.brand-setting small {
  font-size: 9px;
}

.settings-tip {
  font-size: 9px;
}

/* 路线 */
.route-stat small {
  font-size: 9px;
}

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

.stops-head h3 {
  font-size: 14.5px;
}

.stops-head p {
  font-size: 10px;
}

.stop-body > strong {
  font-size: 12px;
}

.stop-body > p {
  font-size: 9.5px;
}

.stop-meta {
  font-size: 9px;
}

.stop-purpose {
  font-size: 9px;
}

.map-head h3 {
  font-size: 14.5px;
}

.map-head p {
  font-size: 10px;
}

.map-legend {
  font-size: 8.5px;
}

.map-float strong {
  font-size: 9.5px;
}

.map-float small {
  font-size: 8.5px;
}

.map-foot {
  font-size: 9px;
}

/* 移动端整体再收一点，避免字号放大后换行过多 */
@media (max-width: 760px) {
  body {
    font-size: 14px;
  }

  .page-head h1 {
    font-size: 22px;
  }

  .page-head p {
    font-size: 11.5px;
  }

  .nav-item {
    font-size: 14px;
  }

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

  .task-title,
  .visit-row h3 {
    font-size: 13.5px;
  }

  .table {
    font-size: 12px;
  }

  .table thead th {
    font-size: 10px;
  }

  .kpi-value {
    font-size: 27px;
  }
}

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

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

.settings-nav {
  padding: 9px;
  border-radius: 19px;
}

.settings-tab {
  padding: 11px 10px;
  gap: 10px;
  border-radius: 11px;
}

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

.settings-tab strong {
  font-size: 12px;
  font-weight: 560;
}

.settings-tab small {
  font-size: 9px;
  margin-top: 2px;
}

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

.settings-tab.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.active .settings-tab-icon {
  color: #5d74e6;
  background: #eef3ff;
}

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

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

.settings-tip {
  font-size: 9.5px;
  line-height: 1.6;
  align-items: flex-start;
  padding: 12px 9px 4px;
}

.settings-panel {
  padding: 24px 26px 22px;
  border-radius: 21px;
  min-height: 520px;
}

.settings-panel-head {
  align-items: flex-start;
  margin-bottom: 20px;
}

.settings-panel-head h2 {
  font-size: 19px;
  letter-spacing: -0.01em;
}

.settings-panel-head p {
  max-width: 680px;
  font-size: 11.5px;
  line-height: 1.65;
  margin-top: 5px;
}

.settings-panel-head > .pill {
  margin-left: auto;
  flex: none;
}

.settings-panel-head > .btn {
  margin-left: auto;
  flex: none;
}

.settings-block {
  padding: 16px 17px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 10px 24px -26px rgba(42, 55, 116, 0.45);
}

.settings-block + .settings-block {
  margin-top: 12px;
}

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

.settings-block-head > div {
  flex: 1;
  min-width: 0;
}

.settings-block-head h3 {
  font-size: 13.5px;
  font-weight: 650;
  color: #333c59;
}

.settings-block-head p {
  font-size: 10px;
  line-height: 1.6;
  color: #939bb0;
  margin-top: 3px;
}

.settings-block-tag {
  flex: none;
  height: 21px;
  padding: 0 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  background: rgba(108, 138, 255, 0.08);
  color: #6e7fb8;
  font-size: 9px;
  font-weight: 500;
}

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

.settings-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.input-unit {
  display: flex;
  align-items: center;
  gap: 7px;
}

.input-unit .input {
  width: 112px;
  min-width: 0;
}

.input-unit > span {
  font-size: 10.5px;
  color: #9099b0;
}

.req {
  color: #e07c91;
  font-weight: 400;
}

.settings-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 15px;
  padding-top: 13px;
  border-top: 1px solid rgba(113, 125, 166, 0.08);
}

.settings-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid rgba(108, 138, 255, 0.09);
  background: rgba(244, 247, 255, 0.66);
  color: #7e88a1;
}

.settings-note > .ico {
  color: #7f8fd7;
  margin-top: 1px;
  flex: none;
}

.settings-note strong {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: #687392;
}

.settings-note p {
  font-size: 9.5px;
  line-height: 1.65;
  margin-top: 2px;
  color: #929bb1;
}

.settings-note.soft {
  background: rgba(255, 251, 244, 0.72);
  border-color: rgba(240, 180, 100, 0.12);
}

.settings-note.soft > .ico {
  color: #d9a25f;
}

/* 品牌外观 */
.brand-workbench {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.brand-preview {
  position: relative;
  min-height: 330px;
  padding: 22px;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: hidden;
  background:
    radial-gradient(300px 220px at 90% 10%, rgba(188, 208, 255, 0.65), transparent 70%),
    linear-gradient(150deg, #f5f2ff, #f2f7ff 65%, #fbf7ff);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

.brand-preview::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -80px;
  bottom: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(166, 130, 255, 0.2), transparent 70%);
}

.brand-preview-label {
  font-size: 8px;
  letter-spacing: 0.16em;
  color: #9ba3b9;
  text-transform: uppercase;
}

.brand-preview-logo {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  margin-top: 30px;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #6e88ff, #9b70f3);
  color: #fff;
  font-size: 22px;
  font-weight: 650;
  box-shadow: 0 16px 30px -18px rgba(91, 100, 200, 0.7);
  overflow: hidden;
}

.brand-preview-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-preview > strong {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  font-size: 18px;
  font-weight: 650;
  color: #2c3552;
}

.brand-preview > span {
  position: relative;
  z-index: 1;
  margin-top: 3px;
  font-size: 10.5px;
  color: #8b95ad;
}

.brand-preview-rail {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: 26px;
  display: flex;
  gap: 5px;
}

.brand-preview-rail i {
  display: block;
  height: 3px;
  flex: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.brand-preview-rail i.active {
  background: linear-gradient(90deg, #7b8dff, #a17cf3);
}

.brand-preview-foot {
  position: relative;
  z-index: 1;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  color: #8791a9;
}

.brand-forms {
  min-width: 0;
}

.logo-edit-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-current {
  width: 56px;
  height: 56px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  flex: none;
  background: linear-gradient(140deg, #6e88ff, #9b70f3);
  color: #fff;
  font-size: 19px;
  font-weight: 650;
  overflow: hidden;
}

.logo-current img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo-actions {
  flex: 1;
  min-width: 0;
}

.file-input {
  height: 38px;
  padding: 7px 9px;
  font-size: 10px;
  width: 100%;
}

/* 规则 */
.rule-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.rule-card {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.58);
}

.rule-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
}

.rule-card small {
  display: block;
  font-size: 9px;
  color: #9aa3b9;
}

.rule-card strong {
  display: block;
  margin-top: 3px;
  font-size: 10.5px;
  font-weight: 600;
  color: #48516d;
  line-height: 1.45;
}

.rule-card p {
  margin-top: 2px;
  font-size: 8.5px;
  line-height: 1.55;
  color: #9ba4b9;
}

.plan-policy-line {
  gap: 18px;
}

.switch-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  color: #5c6682;
  cursor: pointer;
}

.switch-line input {
  width: 15px;
  height: 15px;
  accent-color: #7a8cf0;
}

.field-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #7c86a0;
}

.time-input {
  width: 132px;
  height: 36px;
  font-size: 11px;
}

/* 客户分类 */
.attribute-groups {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.attribute-group {
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.attribute-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px 11px;
}

.attribute-head h3 {
  font-size: 13px;
  font-weight: 650;
  color: #3a4360;
}

.attribute-head p {
  margin-top: 2px;
  font-size: 9.5px;
  color: #9aa3b9;
}

.attribute-add {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.attribute-add .input {
  width: 170px;
  height: 34px;
  font-size: 11px;
}

.attribute-table {
  border-top: 1px solid rgba(113, 125, 166, 0.08);
}

.attribute-table thead th {
  background: rgba(247, 249, 255, 0.62);
}

.attribute-table tbody td {
  padding: 9px 14px;
}

.attr-name {
  width: min(300px, 100%);
  height: 34px;
  font-size: 11.5px;
}

.attr-count {
  font-size: 11px;
  color: #4f5976;
}

.attribute-table td small {
  display: block;
  margin-top: 2px;
  font-size: 8.5px;
  color: #a3abbe;
}

.attr-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.btn.danger {
  color: #d66c80;
  border-color: rgba(224, 120, 140, 0.18);
  background: rgba(255, 247, 249, 0.7);
}

.btn.danger:hover {
  background: rgba(255, 240, 244, 0.95);
}

/* 地区 */
.region-top {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(270px, 0.8fr);
  gap: 12px;
  align-items: stretch;
}

.region-primary {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.region-primary .select {
  min-width: 220px;
}

.region-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.region-stat {
  padding: 12px 13px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.6);
}

.region-stat small {
  display: block;
  font-size: 9px;
  color: #9aa3b9;
}

.region-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #303a58;
}

.region-stat strong em {
  font-size: 9px;
  font-weight: 400;
  font-style: normal;
  color: #9aa3b9;
}

.region-stat .version-text {
  font-size: 11px;
  letter-spacing: 0;
  line-height: 1.45;
  word-break: break-all;
}

.region-stat p {
  font-size: 8.5px;
  color: #a0a8bb;
  margin-top: 2px;
}

.region-toolbar {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(247, 249, 255, 0.62);
}

.region-toolbar .form-hint {
  margin-left: auto;
}

.region-inventory,
.region-update {
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.45);
}

.region-inventory > summary,
.region-update > summary {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 10px;
  color: #69748f;
  list-style: none;
}

.region-inventory > summary::-webkit-details-marker,
.region-update > summary::-webkit-details-marker {
  display: none;
}

.region-province-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  max-height: 260px;
  overflow: auto;
  padding: 0 12px 12px;
}

.region-province-grid > div {
  padding: 7px 8px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.6);
}

.region-province-grid strong {
  display: block;
  font-size: 9.5px;
  color: #56617e;
}

.region-province-grid span {
  float: right;
  margin-top: -14px;
  font-size: 9px;
  color: #5d6e9b;
}

.region-province-grid small {
  display: block;
  margin-top: 2px;
  font-size: 7.5px;
  color: #a8afc0;
  word-break: break-all;
}

.region-update[open] {
  padding-bottom: 12px;
}

.region-update > form {
  margin: 0 12px;
}

.region-update .settings-block {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.region-update .file-input {
  max-width: 300px;
}

.region-preview-box {
  margin-top: 12px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(108, 138, 255, 0.12);
  background: rgba(246, 249, 255, 0.8);
}

.region-preview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 7px;
  margin: 10px 0;
}

.region-preview-grid > div {
  text-align: center;
  padding: 8px 4px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.region-preview-grid small {
  display: block;
  font-size: 8px;
  color: #9aa3b9;
}

.region-preview-grid strong {
  display: block;
  margin-top: 2px;
  font-size: 17px;
  color: #38425f;
}

.region-confirm {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin: 8px 0;
  font-size: 9.5px;
  line-height: 1.55;
  color: #65708c;
}

.region-confirm input {
  margin-top: 2px;
}

.settings-confirm-count {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 9.5px;
  color: #8a7080;
}

.settings-confirm-count .input {
  width: 72px;
  height: 32px;
}

.region-history {
  margin-top: 12px;
  padding: 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.45);
}

.region-history > strong {
  display: block;
  font-size: 10px;
  color: #65708c;
  margin-bottom: 6px;
}

.region-history > div {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 5px 0;
  border-top: 1px solid rgba(113, 125, 166, 0.07);
  font-size: 9px;
  color: #8d96ac;
}

/* 审计 */
.audit-filters {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.audit-filters .select {
  width: auto;
  min-width: 150px;
  height: 36px;
  font-size: 11px;
}

.audit-table {
  font-size: 11.5px;
}

.audit-table tbody td {
  padding: 10px 13px;
  vertical-align: middle;
}

.audit-person {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.audit-action {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 7px;
  border-radius: 5px;
  background: rgba(108, 138, 255, 0.07);
  color: #6674b0;
  font-size: 9.5px;
  white-space: nowrap;
}

.audit-detail {
  display: block;
  max-width: 440px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #969fb5;
  font-size: 9.5px;
}

.nowrap {
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .settings-layout {
    grid-template-columns: 210px minmax(0, 1fr);
  }

  .brand-workbench {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .region-top {
    grid-template-columns: 1fr;
  }
}

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

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

  .settings-tab {
    min-width: 150px;
  }

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

  .settings-tip {
    display: none;
  }

  .settings-panel {
    padding: 18px;
  }

  .brand-workbench {
    grid-template-columns: 1fr;
  }

  .brand-preview {
    min-height: 220px;
  }

  .rule-summary {
    grid-template-columns: 1fr;
  }

  .region-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 620px) {
  .settings-grid-2 {
    grid-template-columns: 1fr;
  }

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

  .attribute-add {
    width: 100%;
  }

  .attribute-add .input {
    flex: 1;
  }

  .region-stats {
    grid-template-columns: 1fr 1fr;
  }

  .region-province-grid {
    grid-template-columns: 1fr 1fr;
  }

  .logo-edit-row {
    align-items: flex-start;
  }

  .settings-panel-head {
    flex-wrap: wrap;
  }

  .settings-panel-head > .pill,
  .settings-panel-head > .btn {
    margin-left: 0;
  }
}

/* 设置内的小字再提一档 */
.settings-block-head p {
  font-size: 10.5px;
}

.settings-tab small {
  font-size: 9.5px;
}

.settings-note p {
  font-size: 10px;
}

.rule-card small {
  font-size: 9.5px;
}

.rule-card strong {
  font-size: 11px;
}

.rule-card p {
  font-size: 9.5px;
}

.attribute-head p {
  font-size: 10px;
}

.region-province-grid strong {
  font-size: 10px;
}

.region-province-grid small {
  font-size: 8.5px;
}

.audit-detail,
.audit-action {
  font-size: 10px;
}

/* 输入框 + 按钮在同一行 */
.settings-block .settings-inline > .input:not(.file-input) {
  flex: 1 1 260px;
  width: auto;
  min-width: 220px;
}

.settings-block .settings-inline > .btn {
  flex: none;
}

/* 主表格再大一点 */
.table {
  font-size: 13.5px;
}

.table thead th {
  font-size: 11px;
}

.cell-main strong {
  font-size: 13.5px;
}

.cell-main small {
  font-size: 10.5px;
}

.cell-muted {
  font-size: 11.5px;
}

.type-label {
  font-size: 11.5px;
}

.table-person {
  font-size: 12px;
}

.visit-row h3 {
  font-size: 14.5px;
}

.visit-row p {
  font-size: 11px;
}

.task-title {
  font-size: 14.5px;
}

.task-addr {
  font-size: 11px;
}

.task-foot .person {
  font-size: 11px;
}

.page-head p {
  font-size: 13px;
}

.hero-sub {
  font-size: 12px;
}

/* ==========================================================================
   顶栏整合：去掉面包屑，页面操作移到搜索框前，内容整体上移
   ========================================================================== */

:root {
  --topbar-h: 58px;
}

.topbar {
  gap: 10px;
  padding: 0 20px;
}

.view {
  padding-top: 0;
}

.page-head {
  margin-top: 0;
}

.page-actions-top {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
  margin-left: 2px;
}

.page-actions-top:empty {
  display: none;
}

.page-actions-top .btn {
  height: 34px;
  padding: 0 11px;
  font-size: 11.5px;
  border-radius: 9px;
  white-space: nowrap;
}

.page-actions-top .btn .ico {
  width: 13px;
  height: 13px;
}

.page-actions.is-in-topbar {
  display: none;
}

.search-trigger {
  height: 42px;
}

@media (max-width: 1100px) {
  .page-actions-top {
    display: none;
  }
}

@media (max-width: 760px) {
  :root {
    --topbar-h: 54px;
  }

  .topbar {
    padding: 0 14px;
    gap: 7px;
  }

  .search-trigger {
    height: 38px;
  }
}

/* 地区分布名称不换行（1440 等较窄桌面） */
.region-top strong {
  white-space: nowrap;
}

.region-top {
  gap: 11px;
}

.region-top strong {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.region-top span {
  flex: none;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .insight-banner > .btn {
    width: auto;
    max-width: calc(100% - 42px);
    flex: 0 1 auto;
  }
}

/* 顶栏页面标题：标题在左，说明紧随其后，不换行 */
.top-page-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}

.top-page-title h1 {
  flex: none;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 650;
  letter-spacing: -0.015em;
  color: #232b47;
  white-space: nowrap;
}

.top-page-title p {
  min-width: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #8c95ac;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.page-head.has-top-title {
  margin: 0 0 14px;
  justify-content: flex-end;
  align-items: center;
  min-height: 0;
}

.page-head.has-top-title > div:first-child {
  display: none;
}

.page-head.has-top-title-only {
  display: none;
}

@media (max-width: 1100px) {
  .top-page-title {
    display: none;
  }

  .page-head.has-top-title {
    display: flex;
    margin: 0 0 16px;
    justify-content: space-between;
    align-items: flex-end;
  }

  .page-head.has-top-title > div:first-child {
    display: block;
  }

  .page-head.has-top-title-only {
    display: flex;
  }
}

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

.team-tabs {
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 14px;
  margin-bottom: 14px;
  width: fit-content;
}

.team-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 10px;
  color: #7e88a2;
  text-align: left;
}

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

.team-tab strong {
  display: block;
  font-size: 11.5px;
  font-weight: 560;
  color: #58627e;
}

.team-tab small {
  display: block;
  margin-top: 1px;
  font-size: 8.5px;
  color: #a0a8ba;
}

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

.team-tab.active .team-tab-icon {
  color: #5d74e6;
  background: #eef3ff;
}

.team-tab.active strong {
  color: #3e4868;
  font-weight: 650;
}

.team-manage {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.team-admin-panel {
  padding: 18px;
  border-radius: 18px;
}

.team-admin-panel .panel-head {
  margin-bottom: 12px;
}

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

.team-filter-card {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.58);
  overflow: hidden;
  transition: background 0.16s ease, box-shadow 0.16s ease;
}

.team-filter-card:hover {
  background: rgba(255, 255, 255, 0.85);
}

.team-filter-card.active {
  background: linear-gradient(145deg, #fff, #f1f5ff);
  box-shadow: inset 0 0 0 1px rgba(123, 142, 245, 0.3), 0 10px 22px -22px rgba(54, 72, 150, 0.55);
}

.team-filter-main {
  display: block;
  width: 100%;
  padding: 12px 13px;
  text-align: left;
}

.team-filter-main > span {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #45506e;
}

.team-filter-main > small {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  color: #9aa3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team-filter-main > b {
  display: block;
  margin-top: 8px;
  font-size: 20px;
  font-weight: 650;
  color: #303a58;
}

.team-filter-main > b em {
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
  color: #9aa3b9;
}

.team-filter-foot {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 13px 11px;
}

.team-filter-foot .btn {
  margin-left: auto;
}

.team-status {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 8.5px;
  background: rgba(120, 137, 170, 0.08);
  color: #929bb1;
}

.team-status.is-active {
  background: rgba(62, 207, 154, 0.1);
  color: #2fa982;
}

.team-status.is-inactive {
  background: rgba(240, 150, 120, 0.1);
  color: #c87961;
}

.team-member-table {
  font-size: 12px;
}

.team-member-table thead th {
  background: rgba(247, 249, 255, 0.54);
}

.team-member-table tbody td {
  padding: 10px 12px;
}

.team-member-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  color: #3d4763;
}

.team-member-link .avatar {
  width: 28px;
  height: 28px;
  font-size: 9px;
}

.team-member-link span {
  min-width: 0;
}

.team-member-link strong {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: #333d5a;
}

.team-member-link small {
  display: block;
  margin-top: 1px;
  font-size: 9px;
  color: #9ba4b9;
}

.team-row-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.status-text {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: #9aa3b9;
  white-space: nowrap;
}

.status-text.on {
  color: #2fa982;
}

.status-text.off {
  color: #d17d68;
}

.status-text i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.team-admin-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 11px;
  font-size: 9.5px;
  line-height: 1.6;
  color: #9aa3b9;
}

/* 成员详情 */
.member-profile-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(113, 125, 166, 0.08);
}

.member-profile-head .avatar {
  width: 54px;
  height: 54px;
  font-size: 17px;
}

.member-profile-head h3 {
  font-size: 17px;
  font-weight: 650;
  color: #303955;
}

.member-profile-head p {
  font-size: 10.5px;
  color: #929bb2;
  margin-top: 2px;
}

.member-profile-head .status-text {
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(62, 207, 154, 0.08);
}

.member-profile-head .status-text.off {
  background: rgba(240, 150, 120, 0.1);
}

.member-profile-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 14px 0;
}

.member-profile-stats > div {
  text-align: center;
  padding: 10px 6px;
  border-radius: 10px;
  background: rgba(247, 249, 255, 0.7);
}

.member-profile-stats strong {
  display: block;
  font-size: 20px;
  font-weight: 650;
  color: #333d5a;
}

.member-profile-stats small {
  display: block;
  margin-top: 2px;
  font-size: 8.5px;
  color: #9aa3b9;
}

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

.member-info-list > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 1px;
  border-bottom: 1px solid rgba(113, 125, 166, 0.06);
  font-size: 10.5px;
}

.member-info-list span {
  color: #9aa3b9;
}

.member-info-list strong {
  font-weight: 500;
  color: #4d5875;
  text-align: right;
}

.member-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.member-profile-actions .btn {
  height: 33px;
  font-size: 10.5px;
}

.credentials-box {
  padding: 6px 2px 2px;
  text-align: center;
}

.credentials-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(140deg, #738cff, #a06cf6);
  box-shadow: 0 14px 24px -18px rgba(92, 105, 220, 0.8);
}

.credentials-box h3 {
  margin-top: 10px;
  font-size: 16px;
  font-weight: 650;
  color: #303955;
}

.credentials-box > p {
  margin-top: 3px;
  font-size: 10.5px;
  color: #929bb2;
}

.credentials-password {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 15px 0 9px;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(247, 249, 255, 0.86);
}

.credentials-password span {
  font-size: 9.5px;
  color: #9aa3b9;
}

.credentials-password strong {
  font-size: 15px;
  letter-spacing: 0.06em;
  color: #5264c6;
}

.member-card,
.rank-row {
  cursor: pointer;
}

@media (max-width: 1100px) {
  .team-filter-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .team-tabs {
    width: 100%;
  }

  .team-tab {
    flex: 1;
  }

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

  .team-member-table {
    min-width: 620px;
  }

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

/* 团队页字号再提一档 */
.top-page-title h1 {
  font-size: 24px;
}

.top-page-title p {
  font-size: 13px;
}

.team-tab strong {
  font-size: 12px;
}

.team-tab small {
  font-size: 9.5px;
}

.team-stat small {
  font-size: 10.5px;
}

.team-stat p {
  font-size: 10px;
}

.team-stat strong {
  font-size: 26px;
}

.team-filter-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.team-filter-card {
  border-color: rgba(120, 132, 172, 0.09);
  background: rgba(255, 255, 255, 0.72);
}

.team-filter-main > span {
  font-size: 12px;
}

.team-filter-main > small {
  font-size: 10px;
}

.team-status {
  font-size: 9.5px;
}

.team-member-table {
  font-size: 12.5px;
}

.team-member-link strong {
  font-size: 12.5px;
}

.team-member-link small {
  font-size: 10px;
}

.status-text {
  font-size: 11px;
}

.team-admin-note {
  font-size: 10.5px;
}

.member-stats small {
  font-size: 10px;
}

.member-name small {
  font-size: 10.5px;
}

.mp-label {
  font-size: 10px;
}

.member-today,
.member-foot .rating {
  font-size: 10px;
}

.team-exec small {
  font-size: 9px;
}

.team-mini-foot {
  font-size: 10.5px;
}

.rank-name small {
  font-size: 9.5px;
}

.rank-foot {
  font-size: 10.5px;
}

.panel-tag {
  font-size: 9.5px;
}

.member-profile-head p {
  font-size: 11px;
}

.member-info-list > div {
  font-size: 11.5px;
}

.member-profile-stats small {
  font-size: 9.5px;
}

.member-profile-actions .btn {
  font-size: 11.5px;
}

/* 最后一轮可读性补强 */
body {
  font-size: 15px;
}

.table {
  font-size: 14px;
}

.team-member-table {
  font-size: 13.5px;
}

.cell-main strong {
  font-size: 14px;
}

.cell-main small {
  font-size: 11px;
}

.task-title {
  font-size: 15px;
}

.visit-row h3 {
  font-size: 15px;
}

.page-head p {
  font-size: 13.5px;
}

.top-page-title p {
  font-size: 13.5px;
}

.hero-sub {
  font-size: 12.5px;
}

.hero-legend {
  font-size: 11px;
}

.team-stat small {
  font-size: 11px;
}

.team-stat p {
  font-size: 10.5px;
}

.member-stats small {
  font-size: 10.5px;
}

.member-name small {
  font-size: 11px;
}

.rank-name small {
  font-size: 10px;
}

.team-filter-main > small {
  font-size: 10.5px;
}

.team-member-link strong {
  font-size: 13px;
}

.team-member-link small {
  font-size: 10.5px;
}

.status-text {
  font-size: 11.5px;
}

.kpi-label {
  font-size: 11px;
}

.kpi-hint {
  font-size: 10px;
}

.settings-block-head p {
  font-size: 11px;
}

.settings-note p {
  font-size: 10.5px;
}

/* 侧边栏二级导航 */
.nav-parent {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.nav-chevron {
  margin-left: auto;
  display: inline-flex;
  color: #aab2c4;
  transition: transform 0.18s ease;
}

.nav-group-wrap.is-open .nav-chevron {
  transform: rotate(180deg);
}

.nav-sub {
  display: none;
  flex-direction: column;
  gap: 1px;
  margin: 2px 0 5px 38px;
  padding-left: 11px;
  border-left: 1px solid rgba(122, 134, 174, 0.14);
}

.nav-group-wrap.is-open .nav-sub {
  display: flex;
}

.nav-sub-item {
  display: flex;
  align-items: center;
  height: 31px;
  padding: 0 8px;
  border-radius: 7px;
  font-size: 12.5px;
  color: #8d96ac;
  white-space: nowrap;
}

.nav-sub-item:hover {
  background: rgba(255, 255, 255, 0.55);
  color: #5e6a8c;
}

.nav-sub-item.is-active {
  background: linear-gradient(100deg, rgba(238, 243, 255, 0.95), rgba(246, 243, 255, 0.85));
  color: #5669d3;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

@media (max-width: 760px) {
  .nav-sub {
    margin-left: 34px;
  }

  .nav-sub-item {
    height: 34px;
    font-size: 13px;
  }
}

/* 团队成员管理：卡片化，不使用原版表格 */
.member-admin-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.member-admin-row {
  display: grid;
  grid-template-columns: minmax(250px, 1.45fr) minmax(190px, 1fr) 165px 130px;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.94);
  background: rgba(255, 255, 255, 0.62);
  transition: background 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
}

.member-admin-row:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -24px rgba(42, 55, 116, 0.5);
}

.member-admin-person {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  text-align: left;
}

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

.member-admin-avatar .avatar {
  width: 35px;
  height: 35px;
  font-size: 10px;
}

.member-admin-avatar .status-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
}

.member-admin-id {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.member-admin-id > strong {
  font-size: 13px;
  font-weight: 600;
  color: #333d5a;
}

.member-admin-id > small {
  margin-top: 1px;
  font-size: 10px;
  color: #9aa3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-admin-chips {
  display: flex;
  gap: 4px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.mini-chip {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 5px;
  background: rgba(120, 137, 170, 0.08);
  color: #7c86a0;
  font-size: 8.5px;
  font-style: normal;
}

.mini-chip.mint {
  background: rgba(62, 207, 154, 0.09);
  color: #3b9c7d;
}

.mini-chip.blue {
  background: rgba(92, 136, 235, 0.09);
  color: #5c76bb;
}

.mini-chip.violet {
  background: rgba(139, 107, 225, 0.1);
  color: #7c62bd;
}

.member-admin-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.member-admin-metrics > div {
  text-align: center;
  padding: 6px 3px;
  border-radius: 8px;
  background: rgba(248, 250, 255, 0.72);
}

.member-admin-metrics small {
  display: block;
  font-size: 8.5px;
  color: #9aa3b9;
}

.member-admin-metrics strong {
  display: block;
  margin-top: 1px;
  font-size: 16px;
  font-weight: 650;
  color: #3b4664;
}

.member-admin-perms {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.perm-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  color: #9aa3b9;
}

.perm-line > span {
  width: 22px;
  flex: none;
}

.perm-line em {
  font-style: normal;
  font-size: 9.5px;
  color: #8f98ae;
}

.perm-line em.ok {
  color: #2fa982;
}

.perm-line em.warn {
  color: #ca7c67;
}

.team-switch {
  position: relative;
  width: 32px;
  height: 18px;
  padding: 0;
  border-radius: 999px;
  background: rgba(132, 144, 173, 0.25);
  border: 0;
  flex: none;
  transition: background 0.16s ease;
}

.team-switch i {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(40, 52, 96, 0.2);
  transition: transform 0.16s ease;
}

.team-switch.on {
  background: linear-gradient(90deg, #47c9a5, #63d7b5);
}

.team-switch.on i {
  transform: translateX(14px);
}

.team-switch:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.member-admin-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
  flex-wrap: wrap;
}

.member-admin-actions .btn {
  height: 28px;
  padding: 0 8px;
  font-size: 9.5px;
}

@media (max-width: 1250px) {
  .member-admin-row {
    grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr) 150px;
  }

  .member-admin-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 2px;
  }
}

@media (max-width: 760px) {
  .member-admin-row {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .member-admin-metrics {
    grid-template-columns: repeat(3, 1fr);
  }

  .member-admin-perms {
    flex-direction: row;
    gap: 18px;
  }

  .member-admin-actions {
    justify-content: flex-end;
  }
}

/* 成员管理卡片字号再提一档 */
.member-admin-id > strong {
  font-size: 14px;
}

.member-admin-id > small {
  font-size: 11px;
}

.mini-chip {
  font-size: 9.5px;
  height: 19px;
}

.member-admin-metrics small {
  font-size: 9.5px;
}

.member-admin-metrics strong {
  font-size: 18px;
}

.perm-line,
.perm-line em {
  font-size: 10.5px;
}

.member-admin-actions .btn {
  height: 30px;
  font-size: 10.5px;
}

/* 系统设置：单页分区布局 */
.settings-page {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 20px;
}

.settings-section {
  padding: 22px 24px 20px;
  border-radius: 20px;
}

.settings-section .settings-panel-head {
  margin-bottom: 17px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(113, 125, 166, 0.08);
}

.settings-section .settings-panel-head h2 {
  font-size: 19px;
}

.settings-section .settings-panel-head p {
  max-width: 760px;
  font-size: 11.5px;
  line-height: 1.65;
}

.settings-section .settings-panel-head > .pill {
  margin-left: auto;
}

.settings-section .settings-block {
  background: rgba(255, 255, 255, 0.56);
}

.settings-section .settings-block.is-unavailable {
  background: rgba(250, 250, 253, 0.55);
}

.settings-section .rule-summary {
  margin: 14px 0;
}

.settings-section .attribute-groups {
  margin-top: 2px;
}

.settings-section .region-top {
  margin-top: 2px;
}

.settings-section .region-toolbar {
  margin-top: 12px;
}

.settings-section .settings-note {
  margin-top: 13px;
}

.settings-section .settings-form-actions {
  margin-top: 14px;
}

/* 操作记录独立页面 */
.audit-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}

.audit-sum-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px;
  border-radius: 14px;
}

.audit-sum-icon {
  width: 31px;
  height: 31px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex: none;
}

.audit-sum-card small {
  display: block;
  font-size: 9.5px;
  color: #9aa3b9;
}

.audit-sum-card strong {
  display: block;
  margin-top: 2px;
  font-size: 20px;
  font-weight: 650;
  color: #303a58;
}

.audit-sum-card strong em {
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
  color: #9aa3b9;
}

.audit-sum-card p {
  margin-top: 2px;
  font-size: 9px;
  color: #9aa3b9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.audit-panel {
  padding: 18px;
  border-radius: 18px;
}

.audit-panel .panel-head {
  align-items: flex-start;
  gap: 12px;
}

.audit-filters {
  margin-left: auto;
  margin-bottom: 0;
}

@media (max-width: 1000px) {
  .audit-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .settings-section {
    padding: 18px;
  }
}

@media (max-width: 760px) {
  .audit-panel .panel-head {
    flex-direction: column;
  }

  .audit-filters {
    margin-left: 0;
  }

  .audit-summary {
    grid-template-columns: 1fr 1fr;
  }
}

/* 顶栏在页面滚动后必须遮住下方内容，避免标题和内容重叠 */
.topbar {
  background: linear-gradient(180deg, rgba(248, 249, 255, 0.97), rgba(248, 249, 255, 0.86));
  backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(112, 124, 165, 0.06);
}

.topbar.is-scrolled {
  background: linear-gradient(180deg, rgba(248, 249, 255, 0.99), rgba(248, 249, 255, 0.94));
  box-shadow: 0 1px 0 rgba(112, 124, 165, 0.1), 0 10px 24px -24px rgba(40, 52, 110, 0.35);
}

/* Data dashboard period and trend components */
.analytics-period-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 12px;
  border-radius: 16px;
  margin-bottom: 14px;
}

.period-seg {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.period-btn {
  height: 31px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 11.5px;
  color: #7e88a2;
  white-space: nowrap;
}

.period-btn:hover {
  color: #5b6685;
}

.period-btn.active {
  background: linear-gradient(100deg, #fff, #f1f5ff);
  color: #5669d3;
  font-weight: 650;
  box-shadow: 0 5px 12px -12px rgba(50, 66, 140, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}

.period-context {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: #98a1b7;
  font-size: 10.5px;
}

.period-context strong {
  font-weight: 600;
  color: #5d6886;
  white-space: nowrap;
}

.period-context span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.analytics-period-bar > .btn {
  margin-left: auto;
}

.trend-panel {
  padding: 18px;
  min-height: 100%;
}

.trend-bars {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  min-height: 205px;
  padding: 12px 4px 0;
  border-bottom: 1px solid rgba(113, 125, 166, 0.08);
}

.trend-bars.is-dense {
  gap: 5px;
}

.trend-col {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  height: 185px;
  justify-content: flex-end;
}

.trend-value {
  font-size: 9.5px;
  font-weight: 600;
  color: #59647f;
  height: 13px;
}

.trend-bar-track {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  height: 150px;
}

.trend-bar {
  display: block;
  width: min(30px, 70%);
  min-height: 3px;
  border-radius: 6px 6px 2px 2px;
  opacity: 0.82;
  transition: opacity 0.16s ease;
}

.trend-col:hover .trend-bar {
  opacity: 1;
}

.trend-col.is-current .trend-bar {
  opacity: 1;
  box-shadow: 0 8px 16px -10px rgba(110, 125, 240, 0.8);
}

.trend-col.is-future .trend-bar {
  opacity: 0.18;
}

.trend-col.is-future .trend-value,
.trend-col.is-future .trend-label {
  opacity: 0.45;
}

.trend-label {
  height: 16px;
  font-size: 8.5px;
  color: #9aa3b9;
  white-space: nowrap;
}

.trend-bars.is-dense .trend-label {
  font-size: 7.5px;
}

.trend-total {
  color: #9aa3b9;
  font-size: 9.5px;
}

.trend-total b {
  color: #5669d3;
  font-weight: 650;
}

.period-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid rgba(113, 125, 166, 0.08);
}

.period-mini-stats > div {
  text-align: center;
  padding: 7px 3px;
  border-radius: 8px;
  background: rgba(248, 250, 255, 0.7);
}

.period-mini-stats small {
  display: block;
  font-size: 8.5px;
  color: #9aa3b9;
}

.period-mini-stats strong {
  display: block;
  margin-top: 2px;
  font-size: 15px;
  color: #3e4a69;
}

.period-mini-stats em {
  margin-left: 2px;
  font-size: 8px;
  font-style: normal;
  font-weight: 400;
  color: #9aa3b9;
}

.city-panel {
  padding: 18px;
}

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

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

.city-rank {
  width: 18px;
  flex: none;
  font-size: 8.5px;
  font-weight: 600;
  color: #a8b0c2;
}

.city-rank.top {
  color: #6f80d8;
}

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

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

.city-top strong {
  font-size: 10.5px;
  font-weight: 550;
  color: #4b5573;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.city-top span {
  flex: none;
  font-size: 9px;
  color: #9aa3b9;
  white-space: nowrap;
}

.city-top b {
  margin-left: 3px;
  font-weight: 600;
  color: #5d6ebd;
}

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

.city-bar i {
  display: block;
  height: 100%;
  border-radius: 999px;
}

.analytics-second {
  margin-top: 13px;
}

@media (max-width: 1100px) {
  .analytics-period-bar {
    gap: 8px;
  }

  .period-context span {
    display: none;
  }

  .analytics-period-bar > .btn {
    margin-left: 0;
  }
}

@media (max-width: 760px) {
  .analytics-period-bar {
    align-items: flex-start;
  }

  .period-seg {
    width: 100%;
  }

  .period-btn {
    flex: 1;
    padding: 0 6px;
    font-size: 10.5px;
  }

  .period-context {
    order: 3;
    width: 100%;
  }

  .analytics-period-bar > .btn {
    margin-left: auto;
  }

  .trend-bars {
    gap: 5px;
  }

  .trend-col {
    height: 165px;
  }

  .trend-bar-track {
    height: 128px;
  }

  .trend-label {
    font-size: 8px;
  }

  .city-top {
    gap: 5px;
  }

  .city-top span {
    font-size: 8.5px;
  }
}

/* Board refinements: integrated header, spacing, 3-column composition */
.topbar {
  position: relative;
  background: transparent !important;
  backdrop-filter: none;
  box-shadow: none;
}

.topbar.is-scrolled {
  background: transparent !important;
  backdrop-filter: none;
  box-shadow: none;
}

.kpi-grid + .analytics-grid {
  margin-top: 16px;
}

.analytics-three {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.78fr) minmax(300px, 0.78fr);
  gap: 13px;
  align-items: stretch;
  margin-top: 16px;
}

.analytics-three .city-panel {
  min-width: 0;
}

.analytics-three .donut-panel {
  min-width: 0;
}

.analytics-three .donut-body {
  gap: 12px;
}

.donut {
  width: 154px;
  height: 154px;
}

.donut::before {
  inset: 21px;
}

.donut-hole strong {
  font-size: 27px;
}

.donut-hole span {
  font-size: 8.5px;
}

.donut-legend {
  gap: 6px;
}

.donut-legend li {
  font-size: 9px;
  gap: 4px;
}

.donut-legend b {
  font-size: 9.5px;
}

.donut-legend small {
  font-size: 8px;
  color: #9aa3b9;
  flex: none;
}

.analytics-three .city-top strong {
  font-size: 11px;
}

.analytics-three .city-top span {
  font-size: 9.5px;
}

@media (max-width: 1400px) {
  .analytics-three {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .analytics-three .city-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .analytics-three {
    grid-template-columns: 1fr;
  }

  .analytics-three .city-panel {
    grid-column: auto;
  }

  .donut {
    width: 136px;
    height: 136px;
  }

  .donut::before {
    inset: 19px;
  }

  .donut-hole strong {
    font-size: 24px;
  }
}

.kpi-grid + .analytics-grid {
  margin-top: 20px;
}

.donut {
  width: 164px;
  height: 164px;
}

.donut::before {
  inset: 22px;
}

.donut-hole strong {
  font-size: 29px;
}

@media (max-width: 760px) {
  .donut {
    width: 140px;
    height: 140px;
  }

  .donut::before {
    inset: 19px;
  }

  .donut-hole strong {
    font-size: 25px;
  }
}

/* Store filters, selection and batch operations */
.region-select {
  min-width: 96px;
  max-width: 128px;
}

.store-tabs {
  gap: 4px;
}

.store-tab {
  position: relative;
  border-radius: 9px;
  padding: 8px 12px;
  transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.store-tab.is-active {
  color: #4f62c7;
  font-weight: 650;
  background: linear-gradient(100deg, #ffffff, #eef3ff);
  box-shadow: 0 5px 12px -12px rgba(50, 66, 140, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.95);
}

.store-tab.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c8dff, #a17cf3);
}

.store-batch-bar {
  display: none;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin: 0 14px 10px;
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px solid rgba(108, 138, 255, 0.14);
  background: rgba(242, 246, 255, 0.82);
}

.store-batch-bar.is-visible {
  display: flex;
}

.batch-count {
  font-size: 10.5px;
  color: #65708c;
}

.batch-count b {
  color: #5369d5;
  font-size: 13px;
}

.store-batch-bar .select {
  height: 32px;
  min-width: 120px;
  font-size: 10.5px;
}

.store-batch-bar .btn {
  height: 31px;
  font-size: 10px;
}

.store-table tbody tr.is-selected {
  background: rgba(108, 138, 255, 0.055);
}

.store-table .cell-check {
  width: 30px;
  padding-right: 2px;
}

.cell-check .checkbox {
  width: 18px;
  height: 18px;
  border-radius: 5px;
}

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

.store-table tbody tr .cell-check {
  cursor: default;
}

@media (max-width: 1500px) {
  .region-select {
    min-width: 86px;
    max-width: 112px;
  }
}

@media (max-width: 760px) {
  .store-batch-bar {
    margin: 0 0 9px;
  }

  .store-batch-bar .select {
    flex: 1;
  }
}

/* Group management */
.group-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.group-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 15px;
}

.group-toolbar > div:first-child {
  min-width: 0;
}

.group-toolbar strong {
  display: block;
  font-size: 14px;
  color: #343e5c;
}

.group-toolbar span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  color: #929bb2;
}

.group-toolbar-actions {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  flex: none;
}

.group-batch-bar {
  display: none;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  padding: 9px 11px;
  border-radius: 11px;
  border: 1px solid rgba(108, 138, 255, 0.14);
  background: rgba(242, 246, 255, 0.82);
  font-size: 10.5px;
  color: #65708c;
}

.group-batch-bar.is-visible {
  display: flex;
}

.group-batch-bar b {
  color: #5369d5;
  font-size: 13px;
}

.group-batch-bar .select {
  height: 32px;
  min-width: 120px;
  font-size: 10.5px;
}

.group-batch-bar .btn {
  height: 31px;
  font-size: 10px;
}

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

.group-card {
  display: block;
  padding: 13px;
  border-radius: 14px;
  transition: background 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.group-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px -26px rgba(42, 55, 116, 0.5);
}

.group-card.is-selected {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(108, 138, 255, 0.25);
}

.group-card-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.group-card-head .group-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #7c6ad5;
  background: rgba(143, 123, 245, 0.1);
  flex: none;
}

.group-card-head > div {
  min-width: 0;
  flex: 1;
}

.group-card-head strong {
  display: block;
  font-size: 12px;
  color: #3d4763;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.group-card-head p {
  margin-top: 2px;
  font-size: 9.5px;
  color: #9aa3b9;
}

.group-card-actions {
  display: flex;
  gap: 4px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(113, 125, 166, 0.08);
}

.group-card-actions .btn {
  height: 27px;
  font-size: 9px;
}

.group-empty {
  padding: 36px 20px;
  text-align: center;
  border-radius: 15px;
  color: #8f99b0;
}

.group-empty > .ico {
  color: #8e9bd8;
}

.group-empty h3 {
  margin-top: 8px;
  font-size: 14px;
  color: #3d4763;
}

.group-empty p {
  margin: 4px 0 12px;
  font-size: 10px;
}

.group-note {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 9.5px;
  line-height: 1.6;
  color: #9aa3b9;
}

.group-filter-grid {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr) minmax(120px, 1fr) minmax(120px, 1.4fr) auto;
  gap: 7px;
  margin: 11px 0;
}

.group-filter-grid .select,
.group-filter-grid .input {
  height: 36px;
  font-size: 10.5px;
}

.group-filter-grid .filter-search {
  min-width: 150px;
}

.group-editor-form {
  margin-top: 4px;
}

.group-editor-count {
  margin: 9px 0;
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(247, 249, 255, 0.7);
  font-size: 9.5px;
  color: #8e98af;
}

.group-candidate-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 8px 0 6px;
}

.group-candidate-head strong {
  font-size: 12px;
  color: #3e4868;
}

.group-candidate-head span {
  margin-left: 5px;
  font-size: 9.5px;
  color: #9aa3b9;
}

.group-candidate-head b {
  color: #5d6fd0;
}

.group-candidate-list {
  max-height: 300px;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(250, 250, 255, 0.6);
}

.group-candidate-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(113, 125, 166, 0.06);
  cursor: pointer;
}

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

.group-candidate-row.is-selected {
  background: rgba(108, 138, 255, 0.055);
}

.group-candidate-row input {
  width: 15px;
  height: 15px;
  accent-color: #7288ec;
  flex: none;
}

.group-candidate-row > span:nth-of-type(1) {
  flex: 1;
  min-width: 0;
}

.group-candidate-row strong {
  display: block;
  font-size: 10.5px;
  color: #3e4868;
}

.group-candidate-row small {
  display: block;
  margin-top: 1px;
  font-size: 8.5px;
  color: #9aa3b9;
}

.group-owner {
  flex: none;
  font-size: 9px;
  color: #8e98af;
}

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

  .group-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .group-filter-grid > .btn {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .group-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .group-grid,
  .group-filter-grid {
    grid-template-columns: 1fr;
  }

  .group-filter-grid > .btn {
    grid-column: auto;
  }
}

.group-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.group-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}

.group-card-head {
  flex: 1;
  align-items: center;
}

.group-card-actions {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
  margin-left: auto;
  flex: none;
}

@media (max-width: 760px) {
  .group-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .group-card-actions {
    margin-left: 0;
  }

  .group-grid {
    display: flex;
  }
}

/* Visit tabs: clearer active state */
#visit-tabs {
  padding: 4px;
  border-radius: 12px;
}

#visit-tabs button {
  position: relative;
  height: 31px;
  padding: 0 13px;
  border-radius: 8px;
  font-size: 11.5px;
  color: #7f89a1;
}

#visit-tabs button.is-active {
  color: #4f62c7;
  font-weight: 650;
  background: linear-gradient(100deg, #ffffff, #eef3ff);
  box-shadow: 0 5px 12px -13px rgba(50, 66, 140, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.95);
}

#visit-tabs button.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #7c8dff, #a17cf3);
}

#visit-tabs button .cnt {
  font-size: 9.5px;
  color: #9aa3b9;
}

#visit-tabs button.is-active .cnt {
  color: #6274d2;
  font-weight: 600;
}

@media (max-width: 760px) {
  #visit-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  #visit-tabs button {
    flex: none;
  }
}

/* Visit record filters */
.visit-filter-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
  flex-wrap: wrap;
}

.visit-date-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 36px;
  padding: 0 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.92);
}

.visit-date-filter > span,
.visit-date-filter > em {
  font-size: 9.5px;
  font-style: normal;
  color: #9aa3b9;
  white-space: nowrap;
}

.visit-date-filter .input {
  width: 122px;
  height: 29px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  font-size: 9.5px;
  color: #59647f;
}

.visit-filter-tools > .filter-select {
  height: 36px;
  min-width: 86px;
  max-width: 120px;
  font-size: 10px;
}

.visit-search {
  width: 210px;
  min-width: 160px;
}

.visit-search .search-input {
  height: 36px;
  font-size: 10.5px;
}

.visit-filter-tools > .btn {
  height: 34px;
  font-size: 10px;
  flex: none;
}

@media (max-width: 900px) {
  .visit-filter-tools {
    width: 100%;
    flex-basis: 100%;
  }

  .visit-filter-tools > .filter-select {
    flex: 1;
    max-width: none;
  }

  .visit-search {
    flex: 1 1 190px;
  }
}

@media (max-width: 760px) {
  .visit-date-filter {
    width: 100%;
    justify-content: space-between;
  }

  .visit-date-filter .input {
    flex: 1;
    width: auto;
  }

  .visit-filter-tools > .filter-select {
    min-width: 0;
  }
}

/* Route plan policy and customer picker */
.route-policy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0 0 13px;
  padding: 10px 13px;
  border-radius: 11px;
  border: 1px solid rgba(108, 138, 255, 0.12);
  background: rgba(243, 247, 255, 0.82);
  color: #7c86a0;
}

.route-policy > .ico {
  flex: none;
  margin-top: 1px;
  color: #6f82cf;
}

.route-policy strong {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  color: #58668f;
}

.route-policy p {
  margin-top: 2px;
  font-size: 9.5px;
  line-height: 1.55;
  color: #929bb1;
}

.route-policy.is-locked {
  border-color: rgba(235, 150, 120, 0.2);
  background: rgba(255, 247, 242, 0.9);
}

.route-policy.is-locked > .ico {
  color: #d08a67;
}

.route-policy.is-locked strong {
  color: #9e6a52;
}

.route-customer-search {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.route-customer-search > .input-icon {
  height: 42px;
}

.route-customer-search > .input-icon .input {
  height: 42px;
  font-size: 12px;
}

.route-customer-hint {
  font-size: 9.5px;
  line-height: 1.55;
  color: #9aa3b9;
}

.route-customer-list {
  max-height: 410px;
  overflow-y: auto;
  border-top: 1px solid rgba(113, 125, 166, 0.08);
}

.route-customer-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 3px;
  border-bottom: 1px solid rgba(113, 125, 166, 0.07);
}

.route-customer-row.is-added {
  opacity: 0.6;
}

.route-customer-icon {
  width: 29px;
  height: 29px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex: none;
  color: #6d7fd1;
  background: rgba(108, 138, 255, 0.09);
}

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

.route-customer-main strong {
  display: block;
  font-size: 11.5px;
  color: #3c4764;
}

.route-customer-main small {
  display: block;
  margin-top: 1px;
  font-size: 9.5px;
  color: #8f99b0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.route-customer-main span {
  display: block;
  margin-top: 2px;
  font-size: 8.5px;
  color: #a1a9bb;
}

.route-customer-row .btn {
  flex: none;
  height: 29px;
  font-size: 9.5px;
}

@media (max-width: 760px) {
  .route-customer-row {
    align-items: flex-start;
  }

  .route-customer-main small {
    white-space: normal;
  }
}

.route-policy[hidden] {
  display: none;
}

.route-customer-status {
  min-height: 0;
  font-size: 9.5px;
  line-height: 1.5;
  color: #319b7d;
}

.route-customer-status:empty {
  display: none;
}

/* Team today's route: one fixed-size owner card with scrollable customer list */
.plan-owner-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.plan-owner-card {
  display: flex;
  flex-direction: column;
  height: clamp(320px, 50vh, 500px);
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
}

.plan-owner-head {
  display: flex;
  align-items: center;
  gap: 9px;
  flex: none;
  padding: 13px 14px;
  border-bottom: 1px solid rgba(113, 125, 166, 0.08);
  background: rgba(255, 255, 255, 0.42);
}

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

.owner-avatar .avatar {
  width: 37px;
  height: 37px;
  font-size: 10px;
}

.owner-avatar .status-dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 8px;
  height: 8px;
  border: 2px solid #fff;
}

.owner-title {
  min-width: 0;
  flex: 1;
}

.owner-title strong {
  display: block;
  font-size: 12.5px;
  color: #3a4461;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.owner-title small {
  display: block;
  margin-top: 2px;
  font-size: 8.5px;
  color: #9aa3b9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.owner-route-stats {
  flex: none;
  text-align: right;
  line-height: 1.15;
}

.owner-route-stats b {
  display: block;
  font-size: 17px;
  font-weight: 650;
  color: #4656a3;
}

.owner-route-stats small {
  display: block;
  font-size: 7.5px;
  color: #9aa3b9;
  white-space: nowrap;
}

.plan-owner-head > .btn {
  flex: none;
  height: 28px;
  padding: 0 8px;
  font-size: 9px;
}

.plan-owner-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.plan-owner-list::-webkit-scrollbar {
  width: 5px;
}

.plan-owner-list::-webkit-scrollbar-thumb {
  border-radius: 9px;
  background: rgba(125, 139, 180, 0.24);
}

.owner-customer {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 9px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: background 0.16s ease, transform 0.16s ease;
}

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

.owner-customer.is-done {
  opacity: 0.72;
}

.owner-customer-seq {
  width: 19px;
  height: 19px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(108, 138, 255, 0.1);
  color: #6073d3;
  font-size: 8.5px;
  font-weight: 600;
}

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

.owner-customer-top {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.owner-customer-top .type-chip {
  height: 18px;
  font-size: 8px;
}

.owner-customer-top .pill {
  height: 18px;
  padding: 0 6px;
  font-size: 8px;
}

.owner-customer-main > strong {
  display: block;
  margin-top: 4px;
  font-size: 10.5px;
  color: #3c4764;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.owner-customer-main > p {
  margin-top: 2px;
  font-size: 8.5px;
  color: #949db2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.owner-customer-main > small {
  display: block;
  margin-top: 2px;
  font-size: 8px;
  color: #a4abba;
}

.owner-customer > .icon-btn {
  width: 24px;
  height: 24px;
  flex: none;
  color: #9aa3b9;
}

.owner-route-empty {
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #9aa3b9;
  font-size: 9.5px;
}

.owner-route-empty > .ico {
  color: #b2b9cc;
}

.owner-route-empty a {
  color: #6577d6;
  font-size: 9px;
}

@media (max-width: 1280px) {
  .plan-owner-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .plan-owner-grid {
    grid-template-columns: 1fr;
  }

  .plan-owner-card {
    height: 50vh;
  }
}

/* Route controls live inside the left route card */
.stops-head {
  flex-wrap: wrap;
  align-items: flex-start;
}

.stops-title {
  flex: 1 1 150px;
  min-width: 0;
}

.route-inline-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 1 1 520px;
  min-width: 0;
  flex-wrap: wrap;
  margin-left: auto;
}

.route-inline-actions .input,
.route-inline-actions .select {
  width: auto;
  height: 33px;
  font-size: 10px;
  border-radius: 8px;
  flex: none;
}

#route-date {
  width: 132px;
}

#route-owner {
  width: 158px;
}

.route-inline-actions .btn {
  height: 33px;
  padding: 0 9px;
  font-size: 10px;
  margin-left: 0;
  flex: none;
}

.stops-head .route-inline-actions .btn {
  margin-left: 0;
}

@media (max-width: 1100px) {
  .route-inline-actions {
    flex-basis: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .route-inline-actions {
    width: 100%;
  }

  #route-date,
  #route-owner {
    flex: 1 1 120px;
    width: auto;
  }

  .route-inline-actions .btn {
    flex: 1 1 auto;
  }
}

/* Anomaly verification */
.anomaly-batch-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(247, 249, 255, 0.72);
  border: 1px solid rgba(113, 125, 166, 0.08);
  font-size: 9.5px;
  color: #7e88a1;
}

.anomaly-select-all {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.anomaly-select-all input {
  width: 14px;
  height: 14px;
  accent-color: #7589ec;
}

.anomaly-batch-bar b {
  color: #5d6ec5;
}

.anomaly-batch-bar .btn {
  margin-left: auto;
  height: 29px;
  font-size: 9.5px;
}

.record-select {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 6px;
}

.record-side-actions {
  display: flex;
  gap: 4px;
}

.record-side-actions .btn {
  height: 26px;
  font-size: 8.5px;
}

@media (max-width: 760px) {
  .record-select {
    margin-top: 2px;
  }

  .anomaly-batch-bar .btn {
    margin-left: 0;
  }
}

/* Public pool approvals and publishing */
.pool-head-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.pool-head-actions .btn {
  height: 30px;
  font-size: 9.5px;
}

.pool-review-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 480px;
  overflow-y: auto;
}

.pool-review-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px;
  border-radius: 10px;
  background: rgba(247, 249, 255, 0.76);
  border: 1px solid rgba(113, 125, 166, 0.08);
}

.pool-review-row > div:first-child {
  flex: 1;
  min-width: 0;
}

.pool-review-row strong {
  display: block;
  font-size: 11.5px;
  color: #3d4866;
}

.pool-review-row small {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  color: #98a1b5;
}

.pool-review-row p {
  margin-top: 6px;
  font-size: 10px;
  color: #7c879f;
  line-height: 1.55;
}

.pool-review-actions {
  display: flex;
  gap: 5px;
  flex: none;
}

.pool-review-actions .btn {
  height: 28px;
  font-size: 9px;
}

.pool-publish-list {
  max-height: 310px;
  overflow-y: auto;
  border-top: 1px solid rgba(113, 125, 166, 0.08);
  border-bottom: 1px solid rgba(113, 125, 166, 0.08);
  margin: 8px 0;
}

.pool-publish-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 4px;
  border-bottom: 1px solid rgba(113, 125, 166, 0.06);
  cursor: pointer;
}

.pool-publish-row input {
  width: 15px;
  height: 15px;
  accent-color: #7589ec;
  flex: none;
}

.pool-publish-row span {
  min-width: 0;
}

.pool-publish-row strong {
  display: block;
  font-size: 11px;
  color: #3c4764;
}

.pool-publish-row small {
  display: block;
  margin-top: 1px;
  font-size: 9px;
  color: #979fb3;
}

.pool-publish-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.pool-publish-fields .field:last-child {
  grid-column: 1 / -1;
}

@media (max-width: 760px) {
  .pool-head-actions {
    width: 100%;
    margin-left: 0;
  }

  .pool-review-row {
    flex-direction: column;
  }

  .pool-review-actions {
    width: 100%;
  }

  .pool-review-actions .btn {
    flex: 1;
  }

  .pool-publish-fields {
    grid-template-columns: 1fr;
  }

  .pool-publish-fields .field:last-child {
    grid-column: auto;
  }
}

/* Visit operations center */
.ops-center {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ops-center-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.ops-center-head > div {
  flex: 1;
  min-width: 180px;
}

.ops-center-head strong {
  display: block;
  font-size: 12px;
  color: #3c4764;
}

.ops-center-head span {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  color: #98a1b5;
}

.ops-session-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  max-height: 430px;
  overflow-y: auto;
}

.ops-session-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(247, 249, 255, 0.76);
  border: 1px solid rgba(113, 125, 166, 0.08);
}

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

.ops-session-main strong {
  display: block;
  font-size: 11.5px;
  color: #3d4866;
}

.ops-session-main small {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  color: #98a1b5;
}

.ops-session-main p {
  margin-top: 4px;
  font-size: 9px;
  color: #b0785e;
  line-height: 1.5;
}

.ops-session-row .btn {
  flex: none;
  height: 29px;
  font-size: 9px;
}

.notice-box {
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(243, 247, 255, 0.82);
  border: 1px solid rgba(108, 138, 255, 0.1);
  color: #7c86a0;
  font-size: 9.5px;
  line-height: 1.6;
}

@media (max-width: 760px) {
  .ops-session-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .ops-session-row .btn {
    width: 100%;
  }
}

/* Sales import wizard */
.sales-import-note {
  padding: 9px 11px;
  border-radius: 9px;
  background: rgba(243, 247, 255, 0.82);
  border: 1px solid rgba(108, 138, 255, 0.1);
  color: #7c86a0;
  font-size: 9.5px;
  line-height: 1.6;
  margin-bottom: 9px;
}

.sales-import-check {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-top: 10px;
  font-size: 10px;
  color: #5d6882;
  cursor: pointer;
}

.sales-import-check input {
  width: 15px;
  height: 15px;
  accent-color: #7589ec;
  flex: none;
  margin-top: 1px;
}

.sales-preview-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.sales-preview-summary > div {
  padding: 10px;
  border-radius: 10px;
  background: rgba(247, 249, 255, 0.78);
  border: 1px solid rgba(113, 125, 166, 0.08);
}

.sales-preview-summary strong {
  display: block;
  font-size: 17px;
  color: #3d4866;
}

.sales-preview-summary span {
  display: block;
  margin-top: 2px;
  font-size: 8.5px;
  color: #98a1b5;
}

.sales-unmatched {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 248, 240, 0.76);
  border: 1px solid rgba(226, 160, 107, 0.16);
}

.sales-unmatched > strong {
  display: block;
  font-size: 10.5px;
  color: #8e6a4f;
}

.sales-unmatched > p {
  margin: 3px 0 8px;
  font-size: 9px;
  color: #a18772;
  line-height: 1.5;
}

@media (max-width: 760px) {
  .sales-preview-summary {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Store change review */
.change-review-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 480px;
  overflow-y: auto;
}

.change-review-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px;
  border-radius: 10px;
  background: rgba(247, 249, 255, 0.76);
  border: 1px solid rgba(113, 125, 166, 0.08);
}

.change-review-row > div:first-child {
  flex: 1;
  min-width: 0;
}

.change-review-row strong {
  display: block;
  font-size: 11.5px;
  color: #3d4866;
}

.change-review-row small {
  display: block;
  margin-top: 2px;
  font-size: 9px;
  color: #98a1b5;
}

.change-review-row p {
  margin-top: 5px;
  font-size: 10px;
  color: #7c879f;
  line-height: 1.5;
}

.change-review-actions {
  display: flex;
  gap: 5px;
  flex: none;
}

.change-review-actions .btn {
  height: 28px;
  font-size: 9px;
}

@media (max-width: 760px) {
  .change-review-row {
    flex-direction: column;
  }

  .change-review-actions {
    width: 100%;
  }

  .change-review-actions .btn {
    flex: 1;
  }
}

/* Store data tools */
.store-tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.store-tool-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 13px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  background: rgba(247, 249, 255, 0.76);
  text-align: left;
  cursor: pointer;
}

.store-tool-card:hover {
  background: #fff;
}

.store-tool-card > .ico {
  color: #6d80d2;
}

.store-tool-card strong {
  font-size: 11.5px;
  color: #3c4764;
}

.store-tool-card span {
  font-size: 9px;
  line-height: 1.5;
  color: #9aa3b9;
}

.check-line {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: #5d6882;
}

.check-line input {
  accent-color: #7589ec;
}

@media (max-width: 760px) {
  .store-tools-grid {
    grid-template-columns: 1fr;
  }

.check-line-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 3px;
}

.ownership-errors {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 9px;
  background: rgba(255, 246, 241, 0.8);
  border: 1px solid rgba(224, 145, 116, 0.16);
  font-size: 9px;
}

.ownership-errors div {
  display: flex;
  gap: 8px;
}

.ownership-errors strong {
  flex: none;
  color: #a16d53;
}

.ownership-errors span {
  color: #a88e7d;
}

/* Compact settings layout */
.settings-section {
  padding: 16px 18px 15px;
}

.settings-section .settings-panel-head {
  margin-bottom: 12px;
  padding-bottom: 10px;
}

.settings-section .settings-panel-head h2 {
  font-size: 17px;
}

.settings-section .settings-panel-head p {
  font-size: 10.5px;
}

.settings-compact {
  padding: 12px 13px;
}

.settings-compact .settings-block-head {
  margin-bottom: 8px;
}

.settings-compact .settings-block-head h3 {
  font-size: 12px;
}

.settings-compact .settings-block-head p {
  font-size: 9px;
  line-height: 1.5;
}

.settings-compact .settings-form-actions {
  margin-top: 8px;
}

.settings-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.settings-two-col .settings-block + .settings-block {
  margin-top: 0;
}

.policy-columns .settings-grid-2 {
  gap: 9px;
}

.policy-columns .settings-form-actions,
.policy-columns .settings-block-head {
  margin-bottom: 7px;
}

.policy-columns .plan-policy-line {
  gap: 8px;
  flex-wrap: wrap;
}

.policy-columns .time-input {
  width: 108px;
}

.settings-section .rule-summary {
  margin: 10px 0;
}

.settings-section .rule-card {
  padding: 9px 10px;
}

.settings-section .settings-note {
  margin-top: 10px;
}

/* Compact brand / appearance */
.brand-workbench {
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 12px;
}

.brand-preview {
  min-height: 222px;
  padding: 15px;
}

.brand-preview-logo {
  width: 48px;
  height: 48px;
  font-size: 16px;
  margin: 9px 0 8px;
}

.brand-preview > strong {
  font-size: 13px;
}

.brand-preview > span {
  margin-top: 2px;
}

.brand-preview-rail {
  margin-top: 12px;
}

.brand-preview-foot {
  margin-top: auto;
  padding-top: 8px;
}

.brand-forms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: stretch;
}

.brand-forms .settings-block {
  padding: 11px 12px;
  min-width: 0;
}

.brand-forms .settings-block + .settings-block {
  margin-top: 0;
}

.brand-forms .settings-block-head {
  margin-bottom: 7px;
}

.brand-forms .settings-block-head h3 {
  font-size: 12px;
}

.brand-forms .settings-block-head p {
  font-size: 8.7px;
  line-height: 1.45;
}

.brand-forms .settings-block-tag {
  height: 18px;
  padding: 0 6px;
  font-size: 8px;
}

.brand-forms .settings-inline {
  gap: 5px;
  align-items: stretch;
}

.brand-forms .settings-inline .input {
  min-width: 0;
  height: 34px;
  font-size: 10.5px;
}

.brand-forms .settings-inline .btn {
  height: 34px;
  padding: 0 8px;
  font-size: 9px;
  white-space: nowrap;
}

.brand-forms .logo-edit-row {
  gap: 7px;
}

.brand-forms .logo-current {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  font-size: 15px;
}

.brand-forms .logo-actions {
  min-width: 0;
}

.brand-forms .file-input {
  height: 31px;
  padding: 4px 6px;
  font-size: 8.5px;
}

.brand-forms .logo-actions .settings-inline {
  margin-top: 5px;
}

.brand-forms .logo-actions .btn {
  height: 27px;
  font-size: 8px;
  padding: 0 6px;
}

/* Narrow attribute dictionary */
.attribute-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.attribute-group {
  min-width: 0;
}

.attribute-head {
  padding: 10px 11px 8px;
  gap: 7px;
}

.attribute-head h3 {
  font-size: 12px;
}

.attribute-head p {
  font-size: 8.5px;
}

.attribute-add {
  gap: 4px;
}

.attribute-add .input {
  width: 112px;
  height: 30px;
  font-size: 9.5px;
}

.attribute-add .btn {
  height: 30px;
  font-size: 9px;
  padding: 0 7px;
}

.attribute-table tbody td {
  padding: 6px 8px;
}

.attr-name {
  width: 100%;
  height: 30px;
  font-size: 10px;
}

.attr-count {
  font-size: 9.5px;
}

.attr-actions {
  gap: 3px;
}

.attr-actions .btn {
  height: 27px;
  font-size: 8.5px;
  padding: 0 6px;
}

@media (max-width: 1200px) {
  .brand-workbench {
    grid-template-columns: 1fr;
  }

  .brand-preview {
    display: none;
  }

  .brand-forms {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .attribute-groups {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .settings-two-col,
  .brand-forms {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .settings-section {
    padding: 13px 12px;
  }

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

  .attribute-add {
    width: 100%;
  }

  .attribute-add .input {
    flex: 1;
    width: auto;
  }
}

/* Compact team member cards */
.member-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.member-card {
  padding: 11px 12px 9px;
  border-radius: 14px;
}

.member-avatar .avatar {
  width: 34px;
  height: 34px;
  font-size: 11.5px;
}

.member-head {
  gap: 7px;
}

.member-name strong {
  font-size: 11.5px;
}

.member-name small {
  font-size: 8px;
}

.member-stats {
  margin: 8px 0 7px;
  padding: 6px 0;
}

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

.member-stats small {
  font-size: 7px;
}

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

.mp-label {
  margin-bottom: 4px;
}

.member-foot {
  gap: 6px;
  padding-top: 6px;
}

.member-today,
.member-foot .rating {
  font-size: 7.5px;
}

.member-actions .icon-btn {
  width: 24px;
  height: 24px;
}

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

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

/* Compact team quick filters in the member panel */
.team-panel-head {
  align-items: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.team-panel-title {
  flex: 1 1 210px;
  min-width: 0;
}

.team-head-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex: 1 1 520px;
  flex-wrap: wrap;
}

.team-filter-chips {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}

.team-filter-chip {
  display: inline-flex;
  align-items: center;
  height: 29px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(113, 125, 166, 0.09);
  overflow: hidden;
}

.team-filter-chip.is-active {
  background: linear-gradient(100deg, #ffffff, #eef3ff);
  border-color: rgba(108, 138, 255, 0.22);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.95);
}

.team-filter-chip > button:first-child {
  height: 100%;
  padding: 0 8px;
  color: #7d88a1;
  font-size: 9px;
  white-space: nowrap;
}

.team-filter-chip.is-active > button:first-child {
  color: #5265c4;
  font-weight: 600;
}

.team-filter-chip.is-off {
  opacity: 0.56;
}

.team-filter-chip b {
  margin-left: 3px;
  font-size: 8.5px;
  color: #9aa3b9;
}

.team-filter-chip.is-active b {
  color: #6a7bd3;
}

.team-chip-edit {
  width: 24px;
  height: 100%;
  border-left: 1px solid rgba(113, 125, 166, 0.08);
  display: grid;
  place-items: center;
  color: #a0a9bc;
}

.team-chip-edit:hover {
  color: #6577d0;
  background: rgba(108, 138, 255, 0.06);
}

.team-head-actions {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
}

.team-head-actions .btn {
  height: 30px;
  font-size: 9px;
  padding: 0 8px;
}

@media (max-width: 900px) {
  .team-head-tools {
    flex-basis: 100%;
    justify-content: flex-start;
  }

  .team-head-actions {
    margin-left: auto;
  }
}

@media (max-width: 620px) {
  .team-head-tools {
    flex-direction: column;
    align-items: stretch;
  }

  .team-head-actions {
    margin-left: 0;
  }

  .team-head-actions .btn {
    flex: 1;
  }
}

/* Refinements after live review */
.brand-forms {
  grid-template-columns: 1fr 1fr 1.35fr;
}

.brand-logo-row {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.brand-logo-file {
  flex: 1;
  min-width: 55px;
  width: auto;
  height: 31px;
  padding: 3px 4px;
  font-size: 8px;
}

.brand-logo-row .btn {
  flex: none;
  height: 29px;
  padding: 0 6px;
  font-size: 8px;
  white-space: nowrap;
}

.policy-fields {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: end;
}

.policy-save {
  padding-bottom: 1px;
}

.policy-save .btn {
  height: 34px;
  padding: 0 9px;
  font-size: 9.5px;
  white-space: nowrap;
}

#numbering-form {
  max-width: 680px;
}

#numbering-form .settings-grid-2 {
  gap: 9px;
}

#numbering-form .settings-block-head {
  margin-bottom: 7px;
}

/* Customer taxonomy needs readable text at narrow width */
.attribute-head h3 {
  font-size: 14px;
}

.attribute-head p {
  font-size: 10px;
}

.attribute-add .input {
  height: 32px;
  font-size: 10px;
}

.attribute-add .btn {
  height: 32px;
  font-size: 9.5px;
}

.attr-name {
  height: 32px;
  font-size: 12px;
}

.attr-count {
  font-size: 11px;
}

.attribute-table td small {
  font-size: 9px;
}

.attr-actions .btn {
  height: 28px;
  font-size: 9px;
}

@media (max-width: 1200px) {
  .brand-forms {
    grid-template-columns: 1fr 1fr 1.35fr;
  }
}

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

  .policy-fields {
    grid-template-columns: 1fr 1fr;
  }

  .policy-save {
    grid-column: 1 / -1;
  }
}

.settings-two-col {
  align-items: stretch;
}

.policy-columns .error-text:empty {
  display: none;
}

.brand-logo-file {
  flex: 0 1 138px;
  max-width: 138px;
  min-width: 55px;
}

.brand-logo-file {
  flex-basis: 90px;
  max-width: 90px;
}

.brand-logo-row .btn {
  padding: 0 5px;
  font-size: 7.5px;
}

/* Settings density pass: larger reading text, less vertical chrome */
.settings-page {
  gap: 12px;
  padding-bottom: 16px;
}

.settings-section {
  padding: 14px 16px 13px;
}

.settings-section .settings-panel-head {
  margin-bottom: 10px;
  padding-bottom: 8px;
}

.settings-section .settings-panel-head h2 {
  font-size: 19px;
}

.settings-section .settings-panel-head p {
  font-size: 11.5px;
  line-height: 1.55;
}

.settings-block-head h3 {
  font-size: 13.5px;
}

.settings-block-head p {
  font-size: 10.5px;
  line-height: 1.5;
}

.settings-compact {
  padding: 11px 12px;
}

.settings-compact .settings-block-head h3 {
  font-size: 12.5px;
}

.settings-compact .settings-block-head p {
  font-size: 9.8px;
}

.settings-section .field > span {
  font-size: 10.5px;
  font-weight: 500;
  color: #7e88a2;
}

.settings-section .form-hint {
  font-size: 9.5px;
  line-height: 1.45;
}

.settings-section .settings-note p {
  font-size: 10px;
}

.settings-region-row {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 12px;
  align-items: stretch;
}

.settings-region-row > .settings-section {
  min-width: 0;
}

.settings-number-section #numbering-form {
  max-width: none;
}

.settings-number-section .settings-grid-2 {
  gap: 8px;
}

.settings-region-section .region-top {
  grid-template-columns: minmax(0, 1.35fr) minmax(210px, 0.65fr);
  gap: 9px;
}

.settings-region-section .region-toolbar {
  margin-top: 9px;
}

.settings-region-section .settings-block {
  padding: 11px 12px;
}

.settings-region-section .settings-note {
  margin-top: 9px;
}

@media (max-width: 1100px) {
  .settings-region-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .settings-section {
    padding: 12px 12px;
  }

  .settings-region-section .region-top {
    grid-template-columns: 1fr;
  }
}

.settings-region-section .region-top {
  grid-template-columns: minmax(0, 1.35fr) minmax(160px, 0.65fr);
}

.settings-region-section .region-stats,
.settings-region-section .region-stat {
  min-width: 0;
}

.brand-forms .settings-block-head h3 {
  font-size: 12.5px;
}

.brand-forms .settings-block-head p {
  font-size: 9.5px;
  line-height: 1.45;
}

.settings-compact .settings-block-head p {
  font-size: 10px;
}

.settings-section .form-hint {
  font-size: 10px;
}

.settings-section .settings-note p {
  font-size: 10.3px;
}

/* Readability pass: make the right content area match the sidebar's comfortable reading scale */
.view .page-head p {
  font-size: 14px;
}

.view .btn {
  font-size: 12px;
}

.view .btn.sm {
  font-size: 11px;
}

.view .input,
.view .select,
.view textarea.input {
  font-size: 12px;
}

.view .filter-select {
  font-size: 11.5px;
}

.view .table th {
  font-size: 12px;
}

.view .table td {
  font-size: 14px;
}

.view small {
  font-size: 10px;
}

.view .mini-stat small {
  font-size: 10.5px;
}

.view .mini-stat strong em {
  font-size: 10px;
}

.view .table-toolbar {
  font-size: 11.5px;
}

.view .table-toolbar strong {
  font-size: 13px;
}

.view .table-toolbar span {
  font-size: 11px;
}

.view .list-head strong {
  font-size: 14px;
}

.view .list-head span {
  font-size: 11.5px;
}

.view .form-hint {
  font-size: 10.5px;
}

.view .field > span {
  font-size: 11.5px;
}

.view .mini-chip {
  font-size: 10px;
}

.view .record-main p {
  font-size: 12.5px;
}

.view .record-meta {
  font-size: 10.5px;
}

.view .record-side > span {
  font-size: 11px;
}

.view .cell-main small,
.view .member-admin-id > small,
.view .member-admin-metrics small,
.view .member-stats small,
.view .team-admin-note,
.view .pool-card p,
.view .route-note {
  font-size: 10.5px;
}

.view .pool-card h3 {
  font-size: 14px;
}

.view .member-admin-metrics strong {
  font-size: 15px;
}

.view .settings-section .field > span {
  font-size: 11px;
}

.view .settings-section .form-hint {
  font-size: 10.5px;
}

/* Readability pass 2: remove the remaining micro-text in the content area */
.view .btn {
  font-size: 12.5px;
}

.view .btn.sm {
  font-size: 11.5px;
}

.view .table th {
  font-size: 12.5px;
}

.view small {
  font-size: 11px !important;
}

.view .mini-stat small,
.view .stat-strip small {
  font-size: 11px !important;
}

.view .mini-stat strong em,
.view .num em {
  font-size: 10.5px;
}

.view .table-toolbar {
  font-size: 12px;
}

.view .table-toolbar span,
.view .list-head span,
.view .pager-current,
.view .cnt,
.view .col-count {
  font-size: 11.5px !important;
}

.view .table-toolbar strong,
.view .list-head strong {
  font-size: 14px;
}

.view .pill,
.view .tag,
.view .type-chip,
.view .mini-chip {
  font-size: 10.5px !important;
}

.view .tm-role,
.view .record-meta,
.view .audit-action,
.view .audit-detail,
.view .member-today,
.view .mp-label,
.view .stop-meta {
  font-size: 11px !important;
}

.view .form-hint {
  font-size: 11px !important;
}

.view .field > span {
  font-size: 11.5px !important;
}

.view .filter-select,
.view .visit-filter-tools > .filter-select,
.view .visit-date-filter > span,
.view .visit-date-filter > em {
  font-size: 11px !important;
}

.view .store-tab,
.view .settings-tab {
  font-size: 12px;
}

.view .task-addr,
.view .task-foot,
.view .visit-row p,
.view .record-main p,
.view .stop-card p,
.view .owner-customer-main > p,
.view .route-note,
.view .audit-action,
.view .audit-detail {
  font-size: 11.5px;
}

.view .owner-title small,
.view .owner-route-stats small,
.view .owner-customer-main > small {
  font-size: 10.5px;
}

.view .avatar.xs {
  font-size: 9.5px;
}

.view .avatar.sm {
  font-size: 10px;
}

.view .avatar {
  font-size: 11px;
}

.view .settings-block-tag,
.view .settings-block-head p,
.view .settings-section .form-hint,
.view .settings-section .settings-note p {
  font-size: 11px !important;
}

.view .settings-block-head h3 {
  font-size: 13.5px !important;
}

.view .settings-section .field > span {
  font-size: 11.5px !important;
}

.view .region-stat small,
.view .brand-preview-label {
  font-size: 10.5px !important;
}

.view .map-foot,
.view .map-tip {
  font-size: 10.5px !important;
}

/* Readability pass 3: residual secondary labels */
.view .mini-stat em,
.view .goal-foot,
.view .audit-sum-card small,
.view .audit-sum-card p,
.view .rule-card p,
.view .settings-block-tag,
.view .brand-forms .settings-inline .btn {
  font-size: 10.5px !important;
}

.view .audit-sum-card strong em,
.view .member-stats strong em,
.view .team-stat strong em,
.view .member-today,
.view .member-foot .rating,
.view .owner-customer-seq,
.view .stop-seq,
.view .owner-route-stats small,
.view .owner-title small {
  font-size: 10.5px !important;
}

.view .owner-customer-main > p {
  font-size: 11px !important;
}

.view .owner-customer-main > small {
  font-size: 10.5px !important;
}

.view .brand-forms .settings-block-head p {
  font-size: 10.5px !important;
}

.view .settings-block-head h3 {
  font-size: 13.5px !important;
}

.view .audit-detail {
  font-size: 11px !important;
}

.view .map-foot,
.view .map-tip {
  font-size: 11px !important;
}

.view .avatar.xs {
  font-size: 10.5px !important;
}

.view .avatar.sm {
  font-size: 11px !important;
}

.view .avatar {
  font-size: 11.5px;
}

.view .ai-tag {
  font-size: 10px !important;
}

.view .mp-label b,
.view .team-stat em,
.view .member-admin-metrics strong em {
  font-size: 10.5px !important;
}

.view .hero-team,
.view .sla-copy,
.view .act-body,
.view .act-body time,
.view .table-foot,
.view .panel-tag,
.view .team-filter-chip b {
  font-size: 10.5px !important;
}

.view .sla-ring-inner span {
  font-size: 10px !important;
}

.view .rank-medal {
  font-size: 9.5px !important;
}

.view .pin-text {
  font-size: 10px !important;
}
