:root {
  --blue: #2f7bff;
  --blue-deep: #1e62f0;
  --blue-soft: #e8f1ff;
  --text: #1a1a1a;
  --text-secondary: #6b7a99;
  --border: #e3ebf5;
  --red: #f5222d;
  --bg-page: #f5f7fb;
  --nav-h: 56px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg-page);
  color: var(--text);
  -webkit-tap-highlight-color: transparent;
}

.phone-shell {
  max-width: 430px;
  margin: 0 auto;
  min-height: 100dvh;
  position: relative;
  background: #fff;
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom));
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.04);
}

/* Top bar */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 12px 0 16px;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
}

.app-header__spacer {
  width: 36px;
}

.app-header__title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.app-header__more {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #eef1f5;
  background: #fafbfc;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0;
  cursor: pointer;
}

.app-header__more-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #333;
}

/* Hero */
.hero {
  position: relative;
  padding: 8px 16px 100px;
  overflow: hidden;
  color: #fff;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(165deg, #5aa0ff 0%, #3b7cff 42%, #2568f5 100%);
  z-index: 0;
}

.hero__bg::before,
.hero__bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.hero__bg::before {
  width: 180px;
  height: 180px;
  top: -40px;
  right: -50px;
}

.hero__bg::after {
  width: 120px;
  height: 120px;
  bottom: 20px;
  left: -30px;
}

.hero > *:not(.hero__bg) {
  position: relative;
  z-index: 1;
}

.hero__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.hero__row--top {
  margin-bottom: 12px;
}

.hero__user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero__avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #cfe4ff, #fff);
  border: 2px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 4px 12px rgba(0, 40, 120, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero__avatar svg {
  display: block;
}

.hero__hi {
  font-size: 18px;
  color: #0d2b66;
  font-weight: 500;
}

.hero__hi strong {
  font-weight: 700;
}

.hero__role {
  font-size: 13px;
  color: rgba(13, 43, 102, 0.72);
  margin-top: 2px;
}

.hero__date {
  text-align: right;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 2px rgba(0, 40, 100, 0.2);
}

.hero__date-line--sub {
  font-size: 12px;
  opacity: 0.9;
}

.hero__date-sep {
  opacity: 0.65;
  margin: 0 2px;
}

.hero__quote {
  margin: 0 0 14px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.96);
  max-width: 72%;
  text-shadow: 0 1px 2px rgba(0, 40, 100, 0.15);
}

.hero__footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

.hero__pill {
  display: inline-block;
  font-size: 11px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(6px);
  white-space: nowrap;
}

.hero__illustration {
  flex-shrink: 0;
  width: 112px;
  height: 88px;
  margin-right: -8px;
  margin-bottom: -8px;
}

.hero__chart {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 8px 16px rgba(0, 50, 140, 0.25));
}

/* Main sheet */
.sheet {
  position: relative;
  margin-top: -72px;
  background: #fff;
  border-radius: 18px 18px 0 0;
  padding: 14px 16px calc(88px + var(--safe-bottom));
  z-index: 5;
  box-shadow: 0 -6px 24px rgba(20, 60, 140, 0.08);
}

.sheet__toolbar {
  margin-bottom: 12px;
}

.sheet__toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  flex-wrap: nowrap;
  scrollbar-width: none;
}

.tabs__cust {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.tabs__eye {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 10px;
  color: #64748b;
  background: rgba(243, 246, 251, 0.95);
}

.tabs__eye:active {
  background: #e8eef8;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs__item {
  border: none;
  background: none;
  padding: 6px 0 10px;
  font-size: 16px;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

.tabs__item--active {
  color: var(--text);
  font-weight: 700;
}

.tabs__item--active::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 28px;
  height: 3px;
  border-radius: 3px;
  background: var(--blue);
}

.rank-btn__label {
  white-space: nowrap;
  font-weight: 700;
}

.rank-btn {
  position: relative;
  width: auto;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid rgba(234, 179, 8, 0.38);
  background: linear-gradient(180deg, #fffdfb 0%, #fff3d6 42%, #ffe8bc 100%);
  font-size: 12px;
  font-weight: 600;
  color: #9a3412;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  box-shadow:
    0 2px 10px rgba(180, 100, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.rank-btn--inline {
  min-height: 40px;
  padding: 0 10px 0 8px;
  border-radius: 12px;
  gap: 5px;
  flex-shrink: 0;
  box-shadow:
    0 1px 8px rgba(180, 100, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.rank-btn--inline .rank-btn__label {
  font-size: 12px;
  font-weight: 700;
}

.rank-btn:active {
  transform: scale(0.99);
}

.rank-btn__crown {
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 1px 1px rgba(180, 90, 0, 0.18));
}

.rank-btn__badge {
  position: absolute;
  top: -3px;
  right: 6px;
  font-size: 10px;
  color: #f5222d;
  filter: drop-shadow(0 1px 0 #fff);
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.icon-btn--border {
  border: 1px solid var(--border);
  background: #fafcff;
}

/* Search */
.search-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f3f6fb;
  border-radius: 999px;
  padding: 10px 14px;
  border: 1px solid transparent;
}

.search:focus-within {
  border-color: var(--blue-soft);
  background: #fff;
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.search__icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.search__input {
  flex: 1;
  border: none;
  background: transparent;
  font-size: 14px;
  outline: none;
  min-width: 0;
}

.search__input::placeholder {
  color: #9aa8bd;
}

/* Segment */
.segment {
  display: flex;
  gap: 0;
  border-radius: 10px;
  padding: 3px;
  background: #f0f4fb;
  margin-bottom: 18px;
}

.segment__btn {
  flex: 1;
  border: none;
  border-radius: 8px;
  padding: 10px 8px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 500;
  color: var(--blue);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.segment__btn--on {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 12px rgba(47, 123, 255, 0.35);
}

/* Metrics */
.metrics__main {
  font-size: 15px;
  margin-bottom: 14px;
}

.metrics__main strong {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.metrics__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.metrics__cell {
  text-align: center;
  padding: 10px 4px;
  background: #fafcff;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.metrics__label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.metrics__value {
  font-size: 16px;
  font-weight: 700;
}

.metrics__value--up {
  color: var(--red);
}

/* Empty */
.empty {
  text-align: center;
  padding: 8px 0 24px;
}

.empty__art {
  max-width: 220px;
  margin: 0 auto 8px;
  opacity: 0.95;
}

.empty__art svg {
  width: 100%;
  height: auto;
}

.empty__text {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text-secondary);
}

.empty__reload {
  border: 1px solid var(--blue);
  color: var(--blue);
  background: #fff;
  border-radius: 999px;
  padding: 8px 28px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.empty__reload:active {
  background: var(--blue-soft);
}

/* 主面板切换：我的业绩 / 我的客户 */
.sheet-panel[hidden] {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.cust-toolbar {
  display: flex;
  align-items: stretch;
  gap: 10px;
  margin-bottom: 14px;
}

.cust-toolbar .segment--cust {
  flex: 1;
  margin-bottom: 0;
  min-width: 0;
}

.cust-select-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.cust-select {
  height: 100%;
  min-height: 46px;
  min-width: 92px;
  padding: 0 30px 0 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background-color: #fafcff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7a99' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.cust-select:focus {
  outline: none;
  border-color: var(--blue-soft);
  box-shadow: 0 0 0 3px var(--blue-soft);
}

.cust-kpi2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.cust-kpi2__cell {
  padding: 12px 10px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f5f9ff 0%, #fafcff 100%);
  border: 1px solid #e3ebf5;
}

.cust-kpi2__label {
  font-size: 11px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.3;
}

.cust-kpi2__value {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.cust-gauge-card {
  position: relative;
  margin-bottom: 8px;
  padding: 4px 0 0;
}

.cust-gauge__ring {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto -52px;
  position: relative;
  z-index: 0;
}

.cust-gauge__hub {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 8px 12px;
}

.cust-gauge__hub-label {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.cust-gauge__hub-num {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 8px;
}

.cust-gauge__deltas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 12px;
  font-size: 11px;
  color: var(--text-secondary);
}

.cust-gauge__deltas em {
  font-style: normal;
  font-weight: 700;
  color: var(--red);
}

.cust-tier-list {
  list-style: none;
  margin: 0;
  padding: 4px 0 8px;
  border-top: 1px solid var(--border);
}

.cust-tier {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px solid #f0f3f8;
  font-size: 13px;
}

.cust-tier:last-child {
  border-bottom: none;
}

.cust-tier__name {
  flex: 1;
  min-width: 0;
  font-weight: 600;
  color: var(--text);
}

.cust-tier__range {
  font-weight: 500;
  font-size: 11px;
  color: var(--text-secondary);
}

.cust-tier__pct {
  flex-shrink: 0;
  width: 3.2rem;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
}

.cust-tier__cnt {
  flex-shrink: 0;
  width: 4.5rem;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--text);
}

/* FAB — align to right edge of centered 430px shell */
.fab {
  position: fixed;
  right: max(16px, calc(50vw - 215px + 16px));
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 16px);
  z-index: 40;
  border: none;
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #4d8fff, var(--blue));
  box-shadow: 0 8px 20px rgba(47, 123, 255, 0.45);
  cursor: pointer;
}

/* 智能助手 — 右下角浮标 */
.ia-fab {
  position: fixed;
  right: max(16px, calc(50vw - 215px + 16px));
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 64px);
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 10px 10px;
  border: none;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  font-family: inherit;
  cursor: pointer;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 48%, #4338ca 100%);
  box-shadow:
    0 4px 16px rgba(79, 70, 229, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  -webkit-tap-highlight-color: transparent;
}

.ia-fab:active {
  transform: scale(0.98);
}

.ia-fab__ico-wrap {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}

.ia-fab__ico {
  display: block;
  width: 22px;
  height: 22px;
}

.ia-fab__txt {
  letter-spacing: 0.02em;
}

.ia-fab--dim {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* 智能助手全屏壳（内嵌智绩览 / 智选客） */
.ia-shell {
  position: fixed;
  inset: 0;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 102;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #e8f1ff 0%, #eef4ff 45%, #f2f7ff 100%);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.ia-shell[hidden] {
  display: none !important;
}

.ia-shell__chrome {
  flex-shrink: 0;
  padding: 8px 12px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 247, 255, 0.96) 100%);
  border-bottom: 1px solid rgba(47, 123, 255, 0.14);
  box-shadow: 0 6px 18px rgba(37, 104, 245, 0.08);
}

.ia-shell__head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.ia-shell__close {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: transparent;
  color: #0d2b66;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.ia-shell__close:active {
  background: rgba(47, 123, 255, 0.1);
}

.ia-shell__title {
  margin: 0;
  flex: 1;
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  color: #0d2b66;
  letter-spacing: 0.02em;
}

.ia-shell__head-spacer {
  width: 44px;
  flex-shrink: 0;
}

.ia-shell__tabs {
  display: flex;
  gap: 8px;
  padding: 2px;
  border-radius: 14px;
  background: rgba(47, 123, 255, 0.1);
  border: 1px solid rgba(47, 123, 255, 0.16);
}

.ia-shell__tab {
  flex: 1;
  min-height: 44px;
  border: none;
  border-radius: 11px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  color: #4a6082;
  background: transparent;
  cursor: pointer;
}

.ia-shell__tab--on {
  color: #fff;
  background: linear-gradient(135deg, #4d8fff, #2f7bff);
  box-shadow: 0 4px 12px rgba(47, 123, 255, 0.35);
}

.ia-shell__tab:active {
  transform: scale(0.99);
}

.ia-shell__stage {
  flex: 1;
  min-height: 0;
  position: relative;
}

.ia-shell .perf-overlay--in-shell,
.ia-shell .pick-overlay--in-shell {
  position: absolute;
  inset: 0;
  left: 0;
  transform: none;
  max-width: none;
  width: 100%;
  z-index: 1;
}

.ia-shell .perf-overlay--in-shell .perf-overlay__top,
.ia-shell .pick-overlay--in-shell .pick-overlay__top {
  display: none;
}

.ia-shell .perf-overlay--in-shell .perf-overlay__scroll::before {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  transform: none;
  max-width: none;
  width: 100%;
}

/* Bottom nav */
.bottom-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: 430px;
  height: calc(var(--nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: #fff;
  border-top: 1px solid #eef1f6;
  display: flex;
  align-items: flex-start;
  justify-content: space-around;
  padding-top: 6px;
  z-index: 35;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.04);
}

.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  color: #9aa3b2;
  text-decoration: none;
  padding-top: 2px;
}

.bottom-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
}

.bottom-nav__item--active {
  color: var(--blue);
  font-weight: 600;
}

.bottom-nav__item--active .bottom-nav__icon {
  opacity: 1;
}

.bottom-nav__item svg {
  display: block;
}

/* 智绩览 / 智选客 并排入口 */
.perf-entry-group {
  display: flex;
  align-items: stretch;
  gap: 6px;
  flex-shrink: 0;
  padding: 6px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.75));
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow:
    0 2px 12px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.perf-entry-group--toolbar {
  padding: 4px;
  gap: 4px;
  border-radius: 14px;
}

.perf-entry-group--toolbar .perf-entry-btn {
  flex: 0 1 auto;
}

.perf-entry-group .perf-entry-btn {
  flex: 1 1 0;
  min-width: 0;
  justify-content: center;
  padding: 6px 7px;
  font-size: 11px;
}

@media (min-width: 360px) {
  .perf-entry-group .perf-entry-btn {
    font-size: 12px;
    padding: 6px 9px 6px 7px;
  }
}

/* 智绩览入口 */
.perf-entry-btn {
  position: relative;
  border: none;
  background: linear-gradient(145deg, #e8f1ff, #d4e8ff);
  border-radius: 12px;
  padding: 6px 10px 6px 8px;
  font-size: 12px;
  font-weight: 600;
  color: #1e5ad4;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(47, 123, 255, 0.15);
  white-space: nowrap;
}

.perf-entry-btn__icon {
  flex-shrink: 0;
  display: block;
  opacity: 0.9;
}

.perf-entry-btn__label {
  white-space: nowrap;
}

.perf-entry-btn:active {
  transform: scale(0.98);
}

.perf-entry-btn--pick {
  background: linear-gradient(145deg, #fff4e8, #ffe4cc);
  color: #c45c00;
  box-shadow: 0 2px 8px rgba(230, 126, 34, 0.2);
}

.perf-entry-btn--pick:active {
  transform: scale(0.98);
}

/* 智选客全屏 — 列表页 */
.pick-overlay {
  position: fixed;
  inset: 0;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 100;
  background: linear-gradient(180deg, #dfe8f5 0%, #eef2f8 40%, #e8edf5 100%);
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.pick-overlay[hidden] {
  display: none !important;
}

.pick-overlay__top {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
  padding: 0 10px 0 6px;
  background: #fff;
  border-bottom: 1px solid rgba(47, 123, 255, 0.1);
  box-shadow: 0 4px 20px rgba(30, 80, 180, 0.08);
}

.pick-overlay__top--brand {
  height: 56px;
  padding-bottom: 2px;
  background: linear-gradient(135deg, #1e4a9a 0%, #2568f5 42%, #3b7cff 100%);
  border-bottom: none;
  box-shadow: 0 8px 28px rgba(37, 104, 245, 0.35);
}

.pick-overlay__brand-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pick-overlay__brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pick-overlay__top--brand .pick-overlay__title {
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 2px rgba(0, 30, 80, 0.2);
}

.pick-overlay__back {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: #1a1a1a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 12px;
}

.pick-overlay__back--on-dark {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.pick-overlay__back--on-dark:active {
  background: rgba(255, 255, 255, 0.22);
}

.pick-overlay__back:active {
  background: #f3f6fb;
}

.pick-overlay__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
}

.pick-overlay__top-spacer {
  width: 44px;
}

.pick-overlay__scroll {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 16px 14px 28px;
}

.pick-overlay__scroll--soft {
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(90, 160, 255, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, transparent 120px);
}

.pick-card {
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 16px 14px 14px;
  margin-bottom: 16px;
  box-shadow:
    0 4px 24px rgba(30, 60, 120, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  border: 1px solid rgba(255, 255, 255, 0.9);
}

.pick-card--hot {
  border-top: 5px solid #fb923c;
}

.pick-card--event {
  border-top: 5px solid #3b82f6;
}

.pick-card--value {
  border-top: 5px solid #22c55e;
}

.pick-card__head {
  margin-bottom: 14px;
}

.pick-card__title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.pick-card__ico {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.pick-card__ico--hot {
  background: linear-gradient(145deg, #fdba74, #ea580c);
}

.pick-card__ico--blue {
  background: linear-gradient(145deg, #7eb6ff, #2563eb);
}

.pick-card__ico--green {
  background: linear-gradient(145deg, #86efac, #15803d);
}

.pick-card__title {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  padding-top: 6px;
  letter-spacing: -0.02em;
}

.pick-wand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.pick-wand svg {
  flex-shrink: 0;
}

.pick-wand--hot {
  background: linear-gradient(135deg, #fb923c, #c2410c);
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.4);
}

.pick-wand--blue {
  background: linear-gradient(135deg, #60a5fa, #1d4ed8);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
}

.pick-wand--green {
  background: linear-gradient(135deg, #22c55e, #14532d);
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

.pick-wand:active {
  transform: scale(0.98);
}

.pick-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.pick-chip--hot {
  background: linear-gradient(90deg, #fff7ed, #ffedd5);
  color: #9a3412;
  border: 1px solid rgba(251, 146, 60, 0.35);
}

.pick-chip--blue {
  background: linear-gradient(90deg, #eff6ff, #dbeafe);
  color: #1e40af;
  border: 1px solid rgba(59, 130, 246, 0.3);
}

.pick-chip--green {
  background: linear-gradient(90deg, #f0fdf4, #dcfce7);
  color: #166534;
  border: 1px solid rgba(34, 197, 94, 0.35);
}

.pick-card__desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.65;
  color: #64748b;
}

.pick-table {
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.pick-table__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) 68px;
  gap: 8px;
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: none;
  letter-spacing: 0.02em;
  background: rgba(241, 245, 249, 0.9);
  border-bottom: 1px solid #e2e8f0;
}

.pick-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) 68px;
  gap: 8px;
  align-items: start;
  padding: 14px 12px;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
}

.pick-row:last-of-type {
  border-bottom: none;
}

.pick-row__cust {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pick-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pick-av--b {
  background: linear-gradient(145deg, #93c5fd, #3b82f6);
}
.pick-av--p {
  background: linear-gradient(145deg, #fbcfe8, #ec4899);
}
.pick-av--lb {
  background: linear-gradient(145deg, #bae6fd, #0ea5e9);
}
.pick-av--g {
  background: linear-gradient(145deg, #bbf7d0, #22c55e);
}
.pick-av--y {
  background: linear-gradient(145deg, #fde68a, #f59e0b);
}
.pick-av--pp {
  background: linear-gradient(145deg, #e9d5ff, #a855f7);
}
.pick-av--o {
  background: linear-gradient(145deg, #fed7aa, #fb923c);
}

.pick-name {
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
}

.pick-phone {
  font-size: 11px;
  color: #8b96ab;
  margin-top: 2px;
}

.pick-row__why {
  min-width: 0;
}

.pick-row__why p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #4a5568;
}

.pick-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.pick-tag--orange {
  background: #ffedd5;
  color: #c2410c;
}

.pick-tag--blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.pick-tag--green {
  background: #dcfce7;
  color: #166534;
}

.pick-row__go {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  padding-top: 2px;
}

.pick-detail {
  border-radius: 8px;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  white-space: nowrap;
}

.pick-detail--hot {
  border: 1px solid #ea580c;
  color: #ea580c;
}

.pick-detail--blue {
  border: 1px solid #2563eb;
  color: #2563eb;
}

.pick-detail--green {
  border: 1px solid #15803d;
  color: #15803d;
}

.pick-detail:active {
  opacity: 0.85;
}

.pick-more {
  display: block;
  width: 100%;
  margin-top: 4px;
  padding: 10px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: #6b7a99;
  cursor: pointer;
  text-align: center;
}

.pick-more:active {
  color: var(--blue);
}

/* 客户概况（智选客「查看详情」） */
.custprof-overlay {
  position: fixed;
  inset: 0;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  background: #edf2f9;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  overflow: hidden;
}

.custprof-overlay[hidden] {
  display: none !important;
}

.custprof-wm-layer {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='440' height='280'%3E%3Ctext x='-10' y='130' fill='%2394a3b8' font-size='10' font-family='system-ui,sans-serif' transform='rotate(-24 40 110)'%3E68402 2026-05-12 内部信息，禁止外传%3C/text%3E%3Ctext x='200' y='210' fill='%2394a3b8' font-size='10' font-family='system-ui,sans-serif' transform='rotate(-24 240 190)'%3E68402 2026-05-12 内部信息，禁止外传%3C/text%3E%3C/svg%3E");
  background-size: 440px 280px;
}

.custprof-hero-bg {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 24px;
  background: linear-gradient(
    165deg,
    #9ec5f7 0%,
    #b9d7fb 22%,
    #cfe5fc 48%,
    #e2eefc 78%,
    rgba(236, 244, 252, 0.98) 100%
  );
}

.custprof-subnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 18px;
}

.custprof-subnav__back {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.42);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.custprof-subnav__back:active {
  background: rgba(255, 255, 255, 0.65);
}

.custprof-subnav__title {
  margin: 0;
  flex: 1;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.03em;
}

.custprof-subnav__spacer {
  width: 42px;
  flex-shrink: 0;
}

.custprof-hero {
  background: transparent;
  border-radius: 0;
  padding: 0;
  margin-bottom: 0;
  box-shadow: none;
  border: none;
}

.custprof-hero__main {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.custprof-hero__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex-shrink: 0;
  padding-top: 2px;
}

.custprof-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.custprof-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.98);
  box-shadow:
    0 8px 24px rgba(30, 64, 120, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  flex-shrink: 0;
}

.custprof-avatar.pick-av {
  width: 68px;
  height: 68px;
}

.custprof-badge {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: -6px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px 4px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
  background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 40%, #a78bfa 100%);
  border: 2px solid #fff;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(91, 33, 182, 0.35);
}

.custprof-badge__gem {
  flex-shrink: 0;
  color: #fde68a;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.2));
}

.custprof-hero__text {
  flex: 1;
  min-width: 0;
  padding-top: 4px;
}

.custprof-name-row {
  display: flex;
  align-items: baseline;
  flex-wrap: nowrap;
  gap: 10px;
  margin-bottom: 10px;
}

.custprof-mask-name {
  font-size: 21px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.04em;
}

.custprof-age {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
}

.custprof-cid {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
}

.custprof-cid:active {
  opacity: 0.75;
}

.custprof-cid__chev {
  font-size: 13px;
  opacity: 0.45;
  font-weight: 500;
}

.custprof-star {
  flex-shrink: 0;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1.5px solid rgba(37, 99, 235, 0.5);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 700;
  color: #1d4ed8;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}

.custprof-star svg {
  color: #2563eb;
}

.custprof-star:active {
  background: rgba(255, 255, 255, 0.75);
}

.custprof-expand {
  padding: 0 2px;
  margin: 0;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  cursor: pointer;
  white-space: nowrap;
}

.custprof-expand:active {
  opacity: 0.75;
}

.custprof-scroll {
  position: relative;
  z-index: 3;
  flex: 1;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 12px 132px;
}

.custprof-sheet {
  background: #fff;
  border-radius: 28px 28px 0 0;
  margin: -22px -12px 0;
  padding: 26px 16px 12px;
  box-shadow:
    0 -12px 40px rgba(15, 23, 42, 0.07),
    0 -1px 0 rgba(255, 255, 255, 0.8) inset;
  border: 1px solid rgba(226, 232, 240, 0.65);
  border-bottom: none;
}

.custprof-quick {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  background: transparent;
  padding: 0 0 20px;
  margin-bottom: 2px;
}

.custprof-quick__btn {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 2px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  letter-spacing: 0.01em;
}

.custprof-quick__btn:active {
  opacity: 0.88;
}

.custprof-quick__ic {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 6px 16px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset;
}

.custprof-quick__ic--call {
  background: linear-gradient(145deg, #60a5fa, #2563eb);
}

.custprof-quick__ic--sms {
  background: linear-gradient(145deg, #fb923c, #ea580c);
}

.custprof-quick__ic--visit {
  background: linear-gradient(145deg, #38bdf8, #0284c7);
}

.custprof-quick__ic--wx {
  background: linear-gradient(145deg, #f87171, #dc2626);
}

.custprof-twin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.custprof-twin__card {
  border-radius: 18px;
  padding: 14px 12px 12px;
  text-align: left;
  box-shadow: 0 2px 14px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 120px;
}

.custprof-twin__card--blue {
  background: linear-gradient(165deg, #f8fbff 0%, #e8f2ff 100%);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.custprof-twin__card--orange {
  background: linear-gradient(165deg, #fffdfb 0%, #fff0e0 100%);
  border: 1px solid rgba(251, 146, 60, 0.18);
}

.custprof-twin__tit {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 10px;
  letter-spacing: 0.02em;
}

.custprof-twin__num {
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0;
  flex: 1;
  letter-spacing: -0.02em;
}

.custprof-twin__card--blue .custprof-twin__num {
  color: #2563eb;
}

.custprof-twin__card--orange .custprof-twin__num {
  color: #ea580c;
}

.custprof-twin__unit {
  font-size: 15px;
  font-weight: 800;
  margin-left: 3px;
}

.custprof-twin__foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.custprof-twin__btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border: none;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.custprof-twin__btn--blue {
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  color: #fff;
}

.custprof-twin__btn--orange {
  background: linear-gradient(180deg, #fb923c, #ea580c);
  color: #fff;
}

.custprof-twin__btn:active {
  opacity: 0.93;
}

.custprof-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: linear-gradient(180deg, #fafbfc 0%, #f4f7fb 100%);
  border-radius: 18px;
  padding: 16px 10px 18px;
  margin-bottom: 4px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.custprof-grid__row {
  display: grid;
  gap: 10px;
}

.custprof-grid__row--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.custprof-grid__row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 100%;
  padding: 0 2px;
}

.custprof-grid__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 4px;
  border: none;
  border-radius: 16px;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(241, 245, 249, 0.9);
}

.custprof-grid__item:active {
  background: #f8fafc;
  transform: scale(0.98);
}

.custprof-grid__ic {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(145deg, #f8fafc, #eef2f7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1d4ed8;
}

.custprof-grid__ic svg {
  display: block;
}

.custprof-phone-note--sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.custprof-fab {
  position: absolute;
  right: 14px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 5;
  width: 56px;
  height: 56px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.4);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.custprof-fab__line {
  display: block;
  line-height: 1.05;
}

.custprof-fab:active {
  transform: scale(0.97);
}

/* 客户概况 — 营销话术 / 智能营销配置 */
.custprof-mkt {
  margin-top: 18px;
  margin-bottom: 16px;
}

.custprof-mkt-seg {
  display: flex;
  gap: 0;
  padding: 4px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 2px 12px rgba(30, 60, 120, 0.06);
}

.custprof-mkt-seg__btn {
  flex: 1;
  min-height: 44px;
  padding: 10px 12px;
  border: none;
  border-radius: 11px;
  background: transparent;
  font-size: 14px;
  font-weight: 700;
  color: #64748b;
  cursor: pointer;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease;
}

.custprof-mkt-seg__btn--on {
  background: #fff;
  color: #0f172a;
  box-shadow:
    0 2px 10px rgba(30, 60, 120, 0.1),
    0 0 0 1px rgba(226, 232, 240, 0.9);
}

.custprof-mkt-seg__btn:active {
  opacity: 0.92;
}

.custprof-mkt-panel[hidden] {
  display: none !important;
}

.custprof-script-card,
.custprof-cfg-card {
  background: #fff;
  border-radius: 18px;
  padding: 16px 14px 14px;
  box-shadow:
    0 6px 28px rgba(15, 23, 42, 0.08),
    0 0 0 1px rgba(226, 232, 240, 0.85) inset;
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.custprof-script-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.custprof-script-head__left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
}

.custprof-script-head__title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  width: 100%;
}

@media (min-width: 340px) {
  .custprof-script-head__title {
    width: auto;
  }
}

.custprof-script-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
  border: 1px solid rgba(59, 130, 246, 0.22);
}

.custprof-script-guide {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 6px;
  min-height: 44px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  cursor: pointer;
}

.custprof-script-guide:active {
  opacity: 0.75;
}

.custprof-script-scenes {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.custprof-script-scene {
  flex: 1;
  min-height: 44px;
  padding: 10px 8px;
  border-radius: 12px;
  border-width: 1.5px;
  border-style: solid;
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition:
    box-shadow 0.15s ease,
    background 0.15s ease;
}

.custprof-script-scene--hot {
  border-color: rgba(251, 146, 60, 0.55);
  color: #c2410c;
}

.custprof-script-scene--event {
  border-color: rgba(59, 130, 246, 0.45);
  color: #1d4ed8;
}

.custprof-script-scene--on.custprof-script-scene--hot {
  background: linear-gradient(180deg, #fff7ed, #ffedd5);
  box-shadow: 0 0 0 2px #fb923c;
  border-color: #fb923c;
}

.custprof-script-scene--on.custprof-script-scene--event {
  background: linear-gradient(180deg, #eff6ff, #dbeafe);
  box-shadow: 0 0 0 2px #3b82f6;
  border-color: #3b82f6;
}

.custprof-script-body-wrap {
  padding: 12px 12px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
  margin-bottom: 14px;
}

.custprof-script-keys {
  margin-bottom: 14px;
  padding: 12px 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fffbeb 0%, #fff7ed 100%);
  border: 1px solid rgba(251, 191, 36, 0.38);
}

.custprof-script-keys__tit {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 800;
  color: #b45309;
  letter-spacing: 0.04em;
}

.custprof-script-keys__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 10px;
  row-gap: 8px;
  margin-bottom: 8px;
}

.custprof-script-keys__head .custprof-script-keys__tit {
  margin: 0;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  line-height: 1.45;
}

.custprof-script-keys__head .custprof-script-seg__actions--keys {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

@media (max-width: 360px) {
  .custprof-script-keys__head {
    grid-template-columns: 1fr;
  }

  .custprof-script-keys__head .custprof-script-keys__tit {
    grid-column: 1;
    grid-row: 1;
  }

  .custprof-script-keys__head .custprof-script-seg__actions--keys {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }
}

.custprof-script-keys__list {
  margin: 0;
  padding: 0 0 0 18px;
  font-size: 13px;
  line-height: 1.55;
  color: #78350f;
  font-weight: 500;
}

.custprof-script-keys__list li {
  margin-bottom: 6px;
}

.custprof-script-keys__list li:last-child {
  margin-bottom: 0;
}

.custprof-script-phases {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custprof-script-phase {
  padding: 12px 12px 12px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.custprof-script-phase__tit {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: #1d4ed8;
  display: flex;
  align-items: center;
  gap: 8px;
}

.custprof-script-phase__step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.custprof-script-phase__body {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 500;
  color: #1e293b;
}

.custprof-script-phase__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  column-gap: 10px;
  row-gap: 6px;
  margin-bottom: 8px;
}

.custprof-script-phase__head .custprof-script-phase__tit {
  margin: 0;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.custprof-script-phase__head .custprof-script-seg__actions {
  grid-column: 2;
  grid-row: 1;
  align-self: start;
}

.custprof-script-seg__actions {
  flex-shrink: 0;
  display: inline-flex;
  gap: 6px;
}

.custprof-script-seg__btn {
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid rgba(59, 130, 246, 0.45);
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  color: #2563eb;
  cursor: pointer;
  white-space: nowrap;
}

.custprof-script-seg__btn:active {
  transform: scale(0.98);
  opacity: 0.92;
}

.custprof-script-kicker {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
}

.custprof-script-disclaimer {
  margin: 12px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #94a3b8;
}

.custprof-script-actions {
  display: flex;
  gap: 10px;
}

.custprof-script-btn {
  flex: 1;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  border: none;
}

.custprof-script-btn--outline {
  background: #fff;
  color: #2563eb;
  border: 1.5px solid #3b82f6;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08);
}

.custprof-script-btn--solid {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}

.custprof-script-btn:active {
  transform: scale(0.99);
}

/* 智能营销配置卡片 */
.custprof-cfg-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.custprof-cfg-head__left {
  flex: 1;
  min-width: 0;
}

.custprof-cfg-head__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.custprof-cfg-head__tag {
  font-size: 12px;
  font-weight: 600;
  color: #3b82f6;
}

.custprof-cfg-guide {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  padding: 8px 6px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  cursor: pointer;
}

.custprof-cfg-guide:active {
  opacity: 0.75;
}

.custprof-cfg-compare {
  margin-bottom: 14px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.custprof-cfg-compare__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6px 8px;
  padding: 12px 12px 10px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.custprof-cfg-compare__tit {
  font-size: 13px;
  font-weight: 800;
  color: #334155;
}

.custprof-cfg-compare__tit--cur {
  text-align: left;
}

.custprof-cfg-compare__tit--sug {
  text-align: right;
}

.custprof-cfg-vs {
  display: inline-flex;
  align-items: baseline;
  font-size: 12px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -0.04em;
}

.custprof-cfg-vs__l {
  color: #ea580c;
}

.custprof-cfg-vs__r {
  color: #2563eb;
}

.custprof-cfg-compare__detail {
  grid-column: 4;
  padding: 6px 4px;
  min-height: 36px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  color: #b45309;
  cursor: pointer;
  white-space: nowrap;
}

.custprof-cfg-compare__detail:active {
  opacity: 0.75;
}

.custprof-cfg-compare__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 0;
}

.custprof-cfg-col {
  padding: 12px 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.custprof-cfg-col--cur {
  background: linear-gradient(180deg, #fffbf5 0%, #fff5eb 100%);
  border-right: 1px solid rgba(251, 146, 60, 0.15);
}

.custprof-cfg-col--sug {
  background: linear-gradient(180deg, #f8fbff 0%, #ebf2ff 100%);
}

.custprof-cfg-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 52px;
}

.custprof-cfg-col--cur .custprof-cfg-name {
  text-align: right;
  align-self: flex-end;
  max-width: 100%;
}

.custprof-cfg-col--sug .custprof-cfg-name {
  text-align: left;
  align-self: flex-start;
}

.custprof-cfg-name {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  line-height: 1.3;
}

.custprof-cfg-warn {
  flex-shrink: 0;
  display: block;
}

.custprof-cfg-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  overflow: hidden;
}

.custprof-cfg-track--cur {
  background: rgba(148, 163, 184, 0.28);
}

.custprof-cfg-track--sug {
  background: rgba(148, 163, 184, 0.2);
}

.custprof-cfg-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  min-width: 0;
  transition: width 0.35s ease;
}

.custprof-cfg-fill--cur {
  background: linear-gradient(90deg, #fdba74, #f97316);
  box-shadow: 0 1px 4px rgba(249, 115, 22, 0.35);
}

.custprof-cfg-fill--thick {
  height: 100%;
  min-height: 8px;
}

.custprof-cfg-fill--sug {
  background: linear-gradient(90deg, #60a5fa, #3b82f6);
  box-shadow: 0 1px 4px rgba(59, 130, 246, 0.35);
}

.custprof-cfg-pct {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
}

.custprof-cfg-col--cur .custprof-cfg-pct {
  text-align: right;
}

.custprof-cfg-col--sug .custprof-cfg-pct {
  text-align: left;
}

.custprof-cfg-pct--muted {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
}

.custprof-cfg-pct--tag {
  font-size: 11px;
  font-weight: 800;
  color: #1d4ed8;
}

.custprof-cfg-segbar {
  display: flex;
  gap: 3px;
  height: 8px;
  align-items: stretch;
}

.custprof-cfg-segbar__seg {
  flex: 1;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.28);
}

.custprof-cfg-segbar__seg--on {
  background: linear-gradient(180deg, #60a5fa, #2563eb);
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25);
}

.custprof-cfg-ai {
  padding: 14px 12px 12px;
  border-radius: 16px;
  background: linear-gradient(165deg, #eff6ff 0%, #e0edff 55%, #dbeafe 100%);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.custprof-cfg-ai__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.custprof-cfg-ai__av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(145deg, #dbeafe, #bfdbfe);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.15);
}

.custprof-cfg-ai__tit {
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
}

.custprof-cfg-ai__txt {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.65;
  font-weight: 500;
  color: #334155;
}

.custprof-cfg-ai__cta {
  width: 100%;
  min-height: 48px;
  padding: 14px 16px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(37, 99, 235, 0.28);
}

.custprof-cfg-ai__cta:active {
  transform: scale(0.99);
}

.custprof-cfg-plan {
  margin-top: 12px;
  padding: 12px 12px 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(59, 130, 246, 0.22);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

.custprof-cfg-plan__intro {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.55;
  font-weight: 500;
  color: #475569;
}

.custprof-cfg-plan__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.custprof-cfg-plan__cat {
  padding: 10px 10px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.custprof-cfg-plan__cat-tit {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: #0f172a;
}

.custprof-cfg-plan__ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.55;
  font-weight: 500;
  color: #334155;
}

.custprof-cfg-plan__ul li {
  margin-bottom: 6px;
}

.custprof-cfg-plan__ul li:last-child {
  margin-bottom: 0;
}

.custprof-cfg-plan__ul strong {
  font-weight: 800;
  color: #1e40af;
}

.custprof-cfg-ai__disclaimer {
  margin: 12px 0 0;
  text-align: center;
  font-size: 10px;
  line-height: 1.45;
  color: #64748b;
}

/* 智能妙想选客 — 浅蓝白对话（与首页同系） */
.wand-overlay {
  position: fixed;
  inset: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 110;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fbfdff 0%, #f0f7ff 38%, #e8f2ff 100%);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.wand-overlay[hidden] {
  display: none !important;
}

.wand-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 12px;
  gap: 8px;
  background: linear-gradient(180deg, #ffffff 0%, rgba(255, 255, 255, 0.92) 100%);
  border-bottom: 1px solid rgba(47, 123, 255, 0.1);
  box-shadow: 0 4px 18px rgba(47, 123, 255, 0.06);
}

.wand-head__back {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 12px;
  background: #f0f6ff;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1px solid rgba(47, 123, 255, 0.12);
}

.wand-head__back:active {
  background: #e0edff;
}

.wand-head__title-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 0;
}

.wand-head__logo {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(145deg, #e8f1ff, #d4e8ff);
  color: #1e5ad4;
  font-size: 15px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(47, 123, 255, 0.18);
  box-shadow: 0 2px 8px rgba(47, 123, 255, 0.12);
}

.wand-head__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #0d2b66;
  letter-spacing: 0.02em;
}

.wand-head__new {
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: #fff;
  color: #2f7bff;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(47, 123, 255, 0.22);
  box-shadow: 0 2px 10px rgba(47, 123, 255, 0.1);
}

.wand-head__new:active {
  background: #f0f7ff;
}

.wand-body {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
  padding: 14px 14px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, #f0f7ff 24%, #e8f2ff 100%);
  background-image: repeating-linear-gradient(
    -28deg,
    transparent,
    transparent 16px,
    rgba(47, 123, 255, 0.025) 16px,
    rgba(47, 123, 255, 0.025) 17px
  );
  border-radius: 0;
  box-shadow: none;
}

.wand-watermark {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: rgba(100, 116, 139, 0.38);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

.wand-watermark--hide {
  opacity: 0;
  visibility: hidden;
}

.wand-thread {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 120px;
  padding-bottom: 8px;
}

.wand-bubble--user {
  align-self: flex-end;
  max-width: 92%;
}

.wand-bubble__txt {
  background: #fff;
  border-radius: 16px 16px 4px 16px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.55;
  color: #1e293b;
  box-shadow: 0 4px 18px rgba(47, 123, 255, 0.1);
  border: 1px solid rgba(47, 123, 255, 0.1);
}

.wand-bubble--user .wand-bubble__txt {
  background: linear-gradient(145deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid rgba(47, 123, 255, 0.14);
}

.wand-bubble__who {
  display: block;
  text-align: right;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 6px;
  padding-right: 4px;
}

.wand-bubble--ai {
  align-self: stretch;
}

.wand-ai-card {
  background: rgba(255, 255, 255, 0.97);
  border-radius: 16px;
  padding: 14px 12px 12px;
  border: 1px solid rgba(47, 123, 255, 0.12);
  box-shadow: 0 6px 24px rgba(47, 123, 255, 0.08);
}

.wand-ai-intro {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #475569;
}

.wand-ai-list {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e8eef5;
}

.wand-ai-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  text-align: left;
  width: 100%;
  border-left: none;
  border-right: none;
  border-top: none;
  font: inherit;
}

.wand-ai-row:last-child {
  border-bottom: none;
}

.wand-ai-row:active {
  background: #f8fafc;
}

.wand-ai-row__av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wand-ai-row__body {
  flex: 1;
  min-width: 0;
}

.wand-ai-row__name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.wand-ai-row__phone {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.wand-ai-row__hint {
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
  line-height: 1.4;
}

.wand-ai-foot {
  margin: 10px 0 0;
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
}

.wand-ai-chev {
  color: #cbd5e1;
  font-size: 18px;
  flex-shrink: 0;
}

.wand-composer {
  flex-shrink: 0;
  padding: 12px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, #f5f9ff 100%);
  border-top: 1px solid rgba(47, 123, 255, 0.1);
  box-shadow: 0 -6px 24px rgba(47, 123, 255, 0.06);
}

.wand-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.wand-chips::-webkit-scrollbar {
  display: none;
}

.wand-chip {
  flex-shrink: 0;
  border: 1px solid rgba(47, 123, 255, 0.22);
  background: #fff;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(47, 123, 255, 0.06);
}

.wand-chip:active {
  background: #e8f1ff;
  color: #1d4ed8;
}

.wand-inputbar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  background: #fff;
  border-radius: 16px;
  padding: 8px 8px 8px 10px;
  border: 1px solid rgba(47, 123, 255, 0.16);
  box-shadow: 0 4px 16px rgba(47, 123, 255, 0.08);
}

.wand-inputbar__kbd {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  background: #f0f7ff;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-bottom: 2px;
}

.wand-inputbar__kbd:active {
  background: #e0edff;
}

.wand-inputbar__field {
  flex: 1;
  min-height: 108px;
  max-height: 220px;
  border: none;
  resize: none;
  font-size: 14px;
  line-height: 1.5;
  color: #1e293b;
  background: transparent;
  outline: none;
  font-family: inherit;
  padding: 6px 2px 8px 0;
  box-sizing: border-box;
  overflow-y: auto;
}

.wand-inputbar__field::placeholder {
  color: #94a3b8;
  font-size: 13px;
}

.wand-inputbar__send {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(145deg, #6eb0ff, #2f7bff);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(47, 123, 255, 0.35);
  margin-bottom: 2px;
}

.wand-inputbar__send:active {
  transform: scale(0.96);
}

.wand-inputbar__send svg {
  display: block;
}

.perf-overlay {
  --perf-blue: #2f7bff;
  --perf-blue-mid: #3b7cff;
  --perf-blue-soft: #e8f1ff;
  --perf-blue-page: #eef4ff;
  --perf-ink: #0d2b66;
  --perf-ink-soft: #4a6082;
  --perf-line: rgba(47, 123, 255, 0.14);
  --perf-card: rgba(255, 255, 255, 0.94);
  position: fixed;
  inset: 0;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  z-index: 100;
  background: linear-gradient(180deg, #e8f1ff 0%, #f2f7ff 38%, #eef4ff 100%);
  display: flex;
  flex-direction: column;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}

.perf-overlay[hidden] {
  display: none !important;
}

.perf-overlay__top {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 6px 0 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(245, 249, 255, 0.98) 100%);
  border-bottom: 1px solid var(--perf-line);
  box-shadow: 0 6px 20px rgba(47, 123, 255, 0.06);
}

.perf-overlay__back {
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--perf-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 12px;
}

.perf-overlay__back:active {
  background: rgba(47, 123, 255, 0.08);
}

.perf-overlay__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: var(--perf-ink);
  letter-spacing: 0.02em;
}

.perf-overlay__top-spacer {
  width: 44px;
}

.perf-overlay__scroll {
  flex: 1;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  padding: 14px 14px 28px;
}

.perf-overlay__scroll::before {
  content: "";
  pointer-events: none;
  position: fixed;
  max-width: 430px;
  width: 100%;
  left: 50%;
  transform: translateX(-50%);
  top: 50px;
  height: 120px;
  background: radial-gradient(ellipse 90% 80% at 50% 0%, rgba(90, 160, 255, 0.2), transparent 70%);
  z-index: 0;
}

.perf-overlay__scroll > * {
  position: relative;
  z-index: 1;
}

.perf-card {
  background: var(--perf-card);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 16px 16px 14px;
  margin-bottom: 14px;
  border: 1px solid var(--perf-line);
  box-shadow: 0 10px 36px rgba(37, 104, 245, 0.08), 0 1px 0 rgba(255, 255, 255, 0.85) inset;
}

.perf-link {
  border: none;
  background: none;
  padding: 0;
  font-size: 13px;
  color: var(--perf-blue);
  font-weight: 600;
  cursor: pointer;
}

.perf-link--muted {
  color: var(--perf-ink-soft);
  font-size: 12px;
  font-weight: 500;
}

.perf-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.perf-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--perf-ink);
}

.perf-card__title-sub {
  font-weight: 600;
  color: var(--perf-ink-soft);
  font-size: 13px;
}

.perf-card__title--solo {
  margin-bottom: 10px;
}

.perf-card--summary {
  padding: 18px 16px 16px;
  background: linear-gradient(165deg, #ffffff 0%, #f7faff 40%, #edf3ff 100%);
  border: 1px solid rgba(47, 123, 255, 0.16);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.75) inset,
    0 14px 42px rgba(15, 42, 102, 0.09);
}

.perf-ov-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.perf-ov-hero__main {
  flex: 1;
  min-width: 0;
}

.perf-ov-eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #5f7299;
}

.perf-ov-hero__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.perf-ov-hero__title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #082456;
  line-height: 1.2;
}

.perf-ov-hero__pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  color: #1a4fad;
  background: rgba(47, 123, 255, 0.11);
  border: 1px solid rgba(47, 123, 255, 0.22);
}

.perf-ov-hero__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
  font-size: 12px;
  font-weight: 600;
  color: #5a6f96;
}

.perf-ov-hero__date {
  font-variant-numeric: tabular-nums;
  color: var(--perf-ink);
}

.perf-ov-hero__dot {
  color: #94a3b8;
  font-weight: 500;
}

.perf-ov-hero__hint {
  font-weight: 500;
  color: var(--perf-ink-soft);
}

.perf-ov-hero__info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 2px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  font-style: italic;
  color: #fff;
  background: linear-gradient(145deg, #5a9fff, var(--perf-blue));
  box-shadow: 0 2px 6px rgba(47, 123, 255, 0.35);
  cursor: default;
}

.perf-ov-goal-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 10px 8px;
  max-width: 48%;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  background: linear-gradient(180deg, #fff 0%, #f2f7ff 100%);
  box-shadow:
    0 0 0 1px rgba(47, 123, 255, 0.28),
    0 6px 18px rgba(47, 123, 255, 0.14);
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}

.perf-ov-goal-btn:active {
  transform: scale(0.99);
  box-shadow:
    0 0 0 1px rgba(47, 123, 255, 0.22),
    0 3px 10px rgba(47, 123, 255, 0.1);
}

.perf-ov-goal-btn__ico {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(145deg, #4d8fff, var(--perf-blue));
  box-shadow: 0 4px 12px rgba(47, 123, 255, 0.38);
}

.perf-ov-goal-btn__txt {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.perf-ov-goal-btn__k {
  font-size: 14px;
  font-weight: 800;
  color: #082456;
  letter-spacing: -0.02em;
}

.perf-ov-goal-btn__v {
  font-size: 11px;
  font-weight: 600;
  color: #5a6f96;
}

.perf-ov-goal-btn__chev {
  flex-shrink: 0;
  font-size: 22px;
  font-weight: 300;
  color: #8ba4d9;
  line-height: 1;
}

@media (max-width: 360px) {
  .perf-ov-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .perf-ov-goal-btn {
    max-width: none;
    justify-content: flex-start;
  }

  .perf-ov-table {
    font-size: 11px;
  }

  .perf-ov-curr {
    font-size: 17px;
  }

  .perf-ov-td {
    padding: 10px 6px;
  }
}

.perf-ov-table-wrap {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 42, 102, 0.08);
  background: #fff;
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.perf-ov-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12px;
}

.perf-ov-table thead th {
  padding: 11px 10px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #e8eefc;
  text-transform: none;
  background: linear-gradient(180deg, #1a4a9e 0%, #0f2f66 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.perf-ov-table thead th:nth-child(2),
.perf-ov-table thead th:nth-child(3),
.perf-ov-table thead th:nth-child(4) {
  text-align: left;
}

.perf-ov-table tbody tr {
  border-bottom: 1px solid #eef2f7;
  background: #fff;
}

.perf-ov-table tbody tr:nth-child(even) {
  background: #fafbfd;
}

.perf-ov-table tbody tr:last-child {
  border-bottom: none;
}

.perf-ov-td {
  padding: 13px 10px;
  vertical-align: top;
}

.perf-ov-td--name {
  font-size: 12px;
  font-weight: 700;
  color: var(--perf-ink);
  width: 26%;
  line-height: 1.35;
}

.perf-ov-td--val {
  width: 26%;
}

.perf-ov-curr {
  display: inline-block;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--perf-blue);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.perf-ov-tgtline {
  margin-top: 4px;
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
}

.perf-ov-td--done {
  width: 26%;
}

.perf-ov-pct {
  font-size: 13px;
  font-weight: 800;
  color: var(--perf-blue);
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}

.perf-ov-bartrack {
  height: 6px;
  border-radius: 999px;
  background: rgba(47, 123, 255, 0.12);
  overflow: hidden;
}

.perf-ov-barfill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #5aa0ff, var(--perf-blue));
  min-width: 0;
  transition: width 0.25s ease;
}

.perf-ov-td--rank {
  width: 22%;
  text-align: left;
}

.perf-ov-rankline {
  font-size: 15px;
  font-weight: 800;
  color: var(--perf-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.perf-ov-ranknum {
  color: var(--perf-ink);
}

.perf-ov-rankslash {
  font-weight: 600;
  color: #94a3b8;
  margin: 0 1px;
}

.perf-ov-ranktotal {
  font-weight: 700;
  color: var(--perf-ink-soft);
  font-size: 13px;
}

.perf-ov-rankdelta {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.perf-ov-rankdelta--up {
  color: #0d9b72;
}

.perf-ov-rankdelta--flat {
  color: #94a3b8;
  font-weight: 600;
}

.perf-ov-foot {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 11px;
  line-height: 1.5;
  color: #64748b;
  font-weight: 500;
  background: rgba(47, 123, 255, 0.06);
  border: 1px solid rgba(47, 123, 255, 0.1);
}

/* AI 置顶卡片 — 视觉强化 */
.perf-card--ai-first {
  position: relative;
  overflow: hidden;
  padding: 22px 18px 18px;
  margin-bottom: 18px;
  background: linear-gradient(165deg, #ffffff 0%, #f0f7ff 55%, #e8f2ff 100%);
  border: 1px solid rgba(47, 123, 255, 0.22);
  box-shadow:
    0 0 0 3px rgba(47, 123, 255, 0.06),
    0 18px 48px rgba(37, 104, 245, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.9) inset;
}

.perf-card--ai-first::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #5aa0ff 0%, #2f7bff 50%, #5aa0ff 100%);
  box-shadow: 0 2px 12px rgba(47, 123, 255, 0.45);
}

.perf-ai-hero {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.perf-ai-hero__visual {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #fff 0%, var(--perf-blue-soft) 100%);
  border: 2px solid rgba(47, 123, 255, 0.2);
  box-shadow: 0 8px 24px rgba(47, 123, 255, 0.22), 0 0 0 1px rgba(255, 255, 255, 0.8) inset;
}

.perf-ai-hero__bot {
  display: block;
}

.perf-ai-hero__text {
  min-width: 0;
}

.perf-ai-hero__kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
}

.perf-ai-chip {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  padding: 5px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4d8fff 0%, var(--perf-blue) 55%, #1e62f0 100%);
  box-shadow: 0 4px 14px rgba(47, 123, 255, 0.45);
}

.perf-ai-chip--ghost {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--perf-blue);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(47, 123, 255, 0.2);
  box-shadow: 0 2px 8px rgba(47, 123, 255, 0.08);
}

.perf-ai__headline {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: var(--perf-ink);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.perf-ai__para {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--perf-ink-soft);
  font-weight: 500;
}

.perf-ai-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

@media (max-width: 360px) {
  .perf-ai-split {
    grid-template-columns: 1fr;
  }
}

.perf-ai-panel {
  border-radius: 14px;
  padding: 13px 12px 11px;
  min-height: 0;
  box-shadow: 0 2px 10px rgba(47, 123, 255, 0.06);
}

.perf-ai-panel--focus {
  background: linear-gradient(180deg, #f5f9ff 0%, rgba(255, 255, 255, 0.92) 100%);
  border: 1px solid rgba(47, 123, 255, 0.22);
}

.perf-ai-panel--gap {
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.98) 0%, rgba(255, 255, 255, 0.92) 100%);
  border: 1px solid rgba(201, 162, 39, 0.28);
}

.perf-ai-panel__title {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 800;
  color: var(--perf-ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.perf-ai-panel__mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.perf-ai-panel__mark--focus {
  background: var(--perf-blue);
  box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.28);
}

.perf-ai-panel__mark--gap {
  background: #c9a227;
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.25);
}

.perf-ai-list {
  margin: 0;
  padding: 0 0 0 13px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--perf-ink-soft);
  font-weight: 500;
}

.perf-ai-list li {
  margin-bottom: 6px;
}

.perf-ai-list li:last-child {
  margin-bottom: 0;
}

.perf-ai-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.perf-ai-actions__btn {
  flex: 1;
  min-width: calc(33.33% - 8px);
  border: 1px solid rgba(47, 123, 255, 0.28);
  border-radius: 12px;
  padding: 11px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--perf-blue);
  background: linear-gradient(180deg, #fff 0%, rgba(232, 241, 255, 0.65) 100%);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 3px 12px rgba(47, 123, 255, 0.1);
}

.perf-ai-actions__btn:active {
  background: var(--perf-blue-soft);
  transform: scale(0.99);
}

.perf-ai-actions__svg {
  flex-shrink: 0;
  opacity: 0.9;
}

/* 智绩览 — 亮点 / 关注点 */
.perf-ai-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 0;
}

.perf-ai-panel--highlight {
  background: linear-gradient(180deg, #ecfdf5 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.perf-ai-panel--concern {
  background: linear-gradient(180deg, #fffbeb 0%, rgba(255, 255, 255, 0.96) 100%);
  border: 1px solid rgba(245, 158, 11, 0.38);
}

.perf-ai-panel__mark--hl {
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.28);
}

.perf-ai-panel__mark--concern {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.28);
}

.perf-ai-list--hl {
  list-style: none;
  padding-left: 0;
}

.perf-ai-list--hl li {
  position: relative;
  padding-left: 14px;
  margin-bottom: 8px;
}

.perf-ai-list--hl li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
}

.perf-concern-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.perf-concern-list__item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px dashed rgba(245, 158, 11, 0.35);
}

.perf-concern-list__item:first-child {
  border-top: none;
  padding-top: 0;
}

.perf-concern-list__txt {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--perf-ink-soft);
  font-weight: 500;
}

.perf-concern-list__txt strong {
  color: #b45309;
  font-weight: 800;
}

.perf-concern-follow {
  flex-shrink: 0;
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #4d8fff, var(--perf-blue));
  box-shadow: 0 4px 12px rgba(47, 123, 255, 0.35);
}

.perf-concern-follow:active {
  transform: scale(0.97);
}

/* 关注点 — 摘要列表 */
.perf-concern-brief-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.perf-concern-brief {
  padding: 12px 0;
  border-top: 1px dashed rgba(245, 158, 11, 0.35);
}

.perf-concern-brief:first-child {
  padding-top: 0;
  border-top: none;
}

.perf-concern-brief__head {
  margin-bottom: 8px;
}

.perf-concern-brief__title {
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 800;
  color: var(--perf-ink);
  line-height: 1.35;
}

.perf-concern-brief__points {
  margin: 0 0 10px;
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--perf-ink-soft);
  font-weight: 500;
}

.perf-concern-brief__points li {
  margin-bottom: 4px;
}

.perf-concern-brief__points li:last-child {
  margin-bottom: 0;
}

.perf-concern-brief__points strong {
  color: #b45309;
  font-weight: 800;
}

.perf-concern-brief__more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: none;
  padding: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--perf-blue);
  background: none;
  cursor: pointer;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.perf-concern-brief__more:active {
  opacity: 0.75;
}

.perf-concern-brief__chev {
  font-size: 16px;
  line-height: 1;
  opacity: 0.85;
}

/* 关注点 — 详情全屏层 */
.perf-concern-detail {
  position: absolute;
  inset: 0;
  z-index: 75;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #e8f1ff 0%, #f2f7ff 38%, #eef4ff 100%);
}

.perf-concern-detail[hidden] {
  display: none !important;
}

.perf-concern-detail__top {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 8px 12px 8px 8px;
  border-bottom: 1px solid var(--perf-line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
}

.perf-concern-detail__back {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--perf-ink);
  background: rgba(47, 123, 255, 0.08);
  cursor: pointer;
}

.perf-concern-detail__back:active {
  background: var(--perf-blue-soft);
}

.perf-concern-detail__title {
  flex: 1;
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--perf-ink);
  text-align: center;
}

.perf-concern-detail__spacer {
  flex-shrink: 0;
  width: 40px;
}

.perf-concern-detail__scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.perf-concern-list--in-detail {
  list-style: none;
  margin: 0;
  padding: 14px 14px 28px;
}

.perf-concern-list--in-detail .perf-concern-list__item--rich {
  border-top: none;
  padding: 0;
}

.perf-concern-list--in-detail [data-perf-concern-panel][hidden] {
  display: none !important;
}

/* 关注点 — 归因 / 客户 / 方案卡片 */
.perf-concern-list__item--rich {
  display: block;
  padding: 0;
  border-top: none;
}

.perf-concern-list__item--rich + .perf-concern-list__item--rich {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed rgba(245, 158, 11, 0.35);
}

.perf-concern-card {
  margin: 0;
}

.perf-concern-card__head {
  margin-bottom: 10px;
}

.perf-concern-card__tag {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.perf-concern-card__tag--down {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.28);
}

.perf-concern-card__tag--warn {
  color: #b45309;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.perf-concern-card__title {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--perf-ink);
  line-height: 1.35;
}

.perf-concern-card__sum {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: var(--perf-ink-soft);
  font-weight: 500;
}

.perf-concern-card__sum strong {
  color: #b45309;
  font-weight: 800;
}

.perf-concern-block {
  margin-bottom: 10px;
  padding: 10px 10px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.perf-concern-block--plan {
  background: linear-gradient(180deg, rgba(232, 241, 255, 0.85) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-color: rgba(47, 123, 255, 0.22);
}

.perf-concern-block__label {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  color: var(--perf-ink);
  letter-spacing: 0.06em;
  text-transform: none;
}

.perf-concern-attr {
  list-style: none;
  margin: 0;
  padding: 0;
}

.perf-concern-attr__row {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 2px 8px;
  align-items: center;
  margin-bottom: 8px;
}

.perf-concern-attr__row:last-child {
  margin-bottom: 0;
}

.perf-concern-attr__name {
  grid-column: 1;
  grid-row: 1;
  font-size: 11px;
  font-weight: 600;
  color: var(--perf-ink-soft);
  line-height: 1.35;
}

.perf-concern-attr__pct {
  grid-column: 2;
  grid-row: 1;
  font-size: 11px;
  font-weight: 800;
  color: #b45309;
}

.perf-concern-attr__bar {
  grid-column: 1 / -1;
  grid-row: 2;
  display: block;
  height: 5px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.18);
  overflow: hidden;
}

.perf-concern-attr__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.perf-concern-cust {
  list-style: none;
  margin: 0;
  padding: 0;
}

.perf-concern-cust__row {
  padding: 8px 0;
  border-top: 1px dashed rgba(245, 158, 11, 0.22);
}

.perf-concern-cust__row:first-child {
  padding-top: 0;
  border-top: none;
}

.perf-concern-cust__who {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.perf-concern-cust__name {
  font-size: 12px;
  font-weight: 800;
  color: var(--perf-ink);
}

.perf-concern-cust__amt {
  font-size: 11px;
  font-weight: 700;
  color: #dc2626;
  white-space: nowrap;
}

.perf-concern-cust__why {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--perf-ink-soft);
  font-weight: 500;
}

.perf-concern-cust__tag {
  display: inline-block;
  margin-right: 4px;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #92400e;
  background: rgba(251, 191, 36, 0.25);
  vertical-align: 0.05em;
}

.perf-concern-plan {
  margin: 0;
  padding-left: 18px;
  font-size: 11px;
  line-height: 1.55;
  color: var(--perf-ink-soft);
  font-weight: 500;
}

.perf-concern-plan li {
  margin-bottom: 6px;
}

.perf-concern-plan li:last-child {
  margin-bottom: 0;
}

.perf-concern-plan strong {
  color: var(--perf-blue);
  font-weight: 800;
}

.perf-concern-card__foot {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
  padding-top: 2px;
}

.perf-concern-card__foot .perf-concern-follow {
  padding: 8px 18px;
  font-size: 12px;
}

.perf-goal-sheet {
  position: absolute;
  inset: 0;
  z-index: 80;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.perf-goal-sheet[hidden] {
  display: none !important;
}

.perf-goal-sheet__backdrop {
  flex: 1;
  min-height: 72px;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  background: rgba(15, 23, 42, 0.48);
}

.perf-goal-sheet__panel {
  flex-shrink: 0;
  max-height: 82vh;
  display: flex;
  flex-direction: column;
  border-radius: 20px 20px 0 0;
  background: #fff;
  box-shadow: 0 -12px 40px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.perf-goal-sheet__grab {
  width: 36px;
  height: 4px;
  border-radius: 999px;
  background: #e2e8f0;
  margin: 10px auto 0;
}

.perf-goal-sheet__head {
  position: relative;
  padding: 8px 44px 12px 18px;
  border-bottom: 1px solid rgba(47, 123, 255, 0.1);
}

.perf-goal-sheet__title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 800;
  color: var(--perf-ink);
}

.perf-goal-sheet__hint {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--perf-ink-soft);
  font-weight: 500;
}

.perf-goal-sheet__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(241, 245, 249, 0.95);
  color: var(--perf-ink-soft);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.perf-goal-sheet__close:active {
  background: #e2e8f0;
}

.perf-goal-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.perf-goal-form__scroll {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px 8px;
  max-height: 52vh;
}

.perf-goal-metric {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(47, 123, 255, 0.08);
}

.perf-goal-metric:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.perf-goal-metric__name {
  font-size: 13px;
  font-weight: 700;
  color: var(--perf-ink);
  margin-bottom: 10px;
}

.perf-goal-metric__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

@media (max-width: 360px) {
  .perf-goal-metric__grid {
    grid-template-columns: 1fr;
  }
}

.perf-goal-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--perf-ink-soft);
}

.perf-goal-field input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(47, 123, 255, 0.2);
  border-radius: 10px;
  padding: 9px 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--perf-ink);
  background: #fafcff;
}

.perf-goal-field input:focus {
  outline: none;
  border-color: var(--perf-blue);
  box-shadow: 0 0 0 3px rgba(47, 123, 255, 0.15);
}

.perf-goal-form__foot {
  padding: 12px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(47, 123, 255, 0.1);
  background: linear-gradient(180deg, #fafcff 0%, #fff 100%);
}

.perf-goal-form__note {
  margin: 0 0 10px;
  font-size: 11px;
  color: var(--perf-ink-soft);
}

.perf-goal-form__submit {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 13px;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #4d8fff, var(--perf-blue));
  box-shadow: 0 6px 18px rgba(47, 123, 255, 0.35);
}

.perf-goal-form__submit:active {
  transform: scale(0.99);
}
