:root {
  --ink: #16324A;
  --muted: #5B7186;
  --line: #D7E3EC;
  --canvas: #F4F8FB;
  --surface: #FAFCFE;
  --teal: #3B82A6;
  --teal-deep: #1F4E79;
  --teal-soft: rgba(59, 130, 166, 0.10);
  --blue: #3B82A6;
  --blue-soft: rgba(59, 130, 166, 0.10);
  --amber: #bd7914;
  --amber-soft: #fbf1db;
  --green: #248451;
  --green-soft: #e7f5eb;
  --danger: #b84b47;
  --shadow: 0 12px 28px rgba(31, 78, 121, 0.08);
  /* Unified enterprise layout tokens shared by all five workspace pages. */
  --topbar-h: 60px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --radius-card: 10px;
  --radius-control: 6px;
  --radius-modal: 12px;
  --card-line: var(--line);
  --card-shadow: 0 1px 2px rgba(31, 78, 121, 0.04), 0 4px 14px rgba(31, 78, 121, 0.05);
  --elev-2: 0 2px 4px rgba(31, 78, 121, 0.06), 0 8px 20px rgba(31, 78, 121, 0.08);
  --elev-3: 0 16px 44px rgba(31, 78, 121, 0.14);
  --focus-ring: 0 0 0 3px rgba(59, 130, 166, 0.16);
  --transition: 140ms ease;
  --control-h: 34px;
}

.global-progress {
  position: fixed;
  top: 62px;
  left: 50%;
  z-index: 1200;
  display: none;
  width: min(520px, calc(100vw - 28px));
  margin: 0;
  padding: 12px 14px 11px;
  border: 1px solid #c9ddd7;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 32px rgba(27, 61, 55, 0.18);
  pointer-events: none;
  transform: translateX(-50%);
}

.global-progress.is-visible {
  display: block;
}

.global-progress.is-error {
  border-color: #e6b9b3;
}

.global-progress-head,
.global-progress-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.global-progress-head strong {
  overflow: hidden;
  color: #284744;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.global-progress-head span {
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
}

.global-progress-track {
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 3px;
  background: #e5efec;
}

.global-progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: repeating-linear-gradient(115deg, #08776b 0, #08776b 12px, #2e9a8d 12px, #2e9a8d 22px);
  background-size: 34px 100%;
  transition: width 0.32s ease;
  animation: global-progress-stripes 0.8s linear infinite;
}

.global-progress.is-error .global-progress-track span {
  background: #c95d50;
  animation: none;
}

.global-progress-detail {
  margin-top: 7px;
  color: #71817f;
  font-size: 10px;
}

@keyframes global-progress-stripes {
  to { background-position: 34px 0; }
}

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif;
}

.header.workspace-topbar {
  position: sticky;
  top: 0;
  z-index: 120;
  height: var(--topbar-h);
  padding: 0 20px;
  gap: 16px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
}

.topbar-brand,
.topbar-nav,
.topbar-actions,
.topbar-project {
  display: flex;
  align-items: center;
}

.topbar-brand {
  min-width: 194px;
  gap: 10px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--teal-deep);
  color: #fff;
}

.brand-mark svg {
  width: 18px;
  height: 18px;
}

.brand-title {
  display: grid;
  gap: 1px;
  line-height: 1.1;
}

.brand-title strong {
  font-size: 15px;
  letter-spacing: 0;
}

.brand-title span {
  color: var(--muted);
  font-size: 11px;
}

.topbar-nav {
  gap: 2px;
  height: 100%;
}

.top-nav {
  position: relative;
  height: var(--topbar-h);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  color: #657076;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
}

.top-nav:hover,
.top-nav.is-active {
  color: var(--teal);
}

.top-nav.is-active {
  border-bottom-color: var(--teal);
  font-weight: 700;
}

.top-nav svg {
  width: 15px;
  height: 15px;
}

.topbar-project {
  min-width: 0;
  height: 32px;
  max-width: 220px;
  gap: 7px;
  padding: 0 10px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--brand-bg, #FAFCFE);
  color: #4a5658;
  font-size: 12px;
}

.topbar-project span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-project svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  color: var(--teal);
}

.topbar-actions {
  gap: 8px;
}

.header.workspace-topbar .message-button {
  width: 32px;
  height: 32px;
  display: inline-flex;
  border-radius: 6px;
  color: #536164;
}

.header.workspace-topbar .message-button[style*="display: none"] {
  display: none !important;
}

.header.workspace-topbar #btnAuth,
.header.workspace-topbar #btnRegister {
  height: 34px;
  border-radius: 6px;
  padding: 0 12px;
}

.header.workspace-topbar #btnRegister {
  background: var(--teal);
  color: #fff;
}

.header.workspace-topbar #btnAuth.btn.ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: #354447;
}

.workspace-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: calc(100vh - var(--topbar-h));
}

.app-sidebar {
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
  display: flex;
  flex-direction: column;
  padding: 14px 10px;
  overflow-y: auto;
  border-right: 1px solid #213c39;
  background: #153431;
  color: #d8ebe7;
}

.sidebar-label {
  padding: 0 10px;
  margin: 4px 0 8px;
  color: #91aaa5;
  font-size: 11px;
  font-weight: 700;
}

.sidebar-link {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: #d8ebe7;
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
}

.sidebar-link:hover {
  background: #1d4945;
}

.sidebar-link.is-active {
  color: #fff;
  background: #0a7568;
  font-weight: 700;
}

.sidebar-link svg {
  width: 17px;
  height: 17px;
}

.sidebar-step {
  min-width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  border: 1px solid #47716a;
  border-radius: 50%;
  color: #a8c7c0;
  font-size: 10px;
}

.sidebar-link.is-active .sidebar-step {
  border-color: #a9ddd1;
  color: #fff;
}

.sidebar-footer {
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding: 12px 6px 4px;
}

.sidebar-status {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #315550;
  color: #a5c0bb;
  font-size: 11px;
  line-height: 1.55;
}

.sidebar-status svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 1px;
  color: #72c8b8;
}

.workspace-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--topbar-h));
  padding: 20px 24px 28px;
}

.workspace-page {
  width: 100%;
}

.workspace-main button:focus-visible,
.workspace-main input:focus-visible,
.workspace-main select:focus-visible,
.workspace-main textarea:focus-visible {
  outline: 3px solid rgba(8, 119, 107, 0.22);
  outline-offset: 2px;
}

.workspace-page {
  display: none;
  max-width: 1420px;
  margin: 0 auto;
}

.workspace-page.is-active {
  display: block;
}

.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.page-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700;
}

.page-eyebrow svg {
  width: 14px;
  height: 14px;
}

.page-heading h1 {
  margin-top: 4px;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: 0;
}

.page-heading p {
  max-width: 660px;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.page-heading-actions {
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 12px;
}

.page-home-button {
  white-space: nowrap;
}

.workspace-page .btn,
.workspace-main .btn {
  height: var(--control-h);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  font-size: 13px;
  font-weight: 700;
}

.workspace-main .btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  box-shadow: none;
}

.workspace-main .btn:focus-visible,
.workspace-empty-state .btn:focus-visible {
  outline: 3px solid rgba(8, 119, 107, 0.18);
  outline-offset: 2px;
}

.workspace-main .btn.primary {
  background: var(--teal);
  color: #fff;
}

.workspace-main .btn.primary:hover {
  background: #05685e;
}

.workspace-main .btn.ghost {
  border-color: var(--line);
  background: #fff;
  color: #374548;
}

.workspace-main .btn svg {
  width: 16px;
  height: 16px;
}

.home-hero {
  position: relative;
  min-height: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 14px 24px;
  border-radius: var(--radius-card);
  background: #133a36;
  color: #fff;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 42, 39, 0.42);
  pointer-events: none;
}

.home-hero-image {
  position: absolute;
  top: 0;
  right: 0;
  width: 38%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  opacity: 0.22;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 16%);
  mask-image: linear-gradient(to right, transparent 0, #000 16%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  max-width: none;
  width: 100%;
}

.hero-kicker {
  order: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a9ddd1;
  font-size: 11px;
  font-weight: 700;
}

.hero-kicker svg {
  width: 15px;
  height: 15px;
}

.hero-copy h1 {
  order: 1;
  max-width: none;
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: 0;
}

.hero-copy p {
  order: 3;
  flex-basis: 100%;
  max-width: none;
  color: #d4e6e2;
  font-size: 12px;
  line-height: 1.55;
}

.hero-project-form {
  order: 2;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 620px;
  margin-top: 0;
  margin-left: auto;
}

.hero-project-form input {
  flex: 1;
  min-width: 0;
  height: 32px;
  padding: 0 12px;
  border: 1px solid #628d86;
  border-radius: var(--radius-control);
  outline: 0;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  font-size: 13px;
}

.hero-project-form .btn {
  height: 32px;
  flex: 0 0 auto;
  background: #f4c75f;
  color: #2e2917;
}

.hero-project-form .btn.secondary {
  border: 1px solid #8bbab1;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.hero-project-form .btn.secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.hero-subnote {
  order: 4;
  flex-basis: 100%;
  margin-top: 0;
  color: #afcdc7;
  font-size: 11px;
}

.home-section {
  margin-top: 18px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 10px;
}

.section-heading h2 {
  color: var(--ink);
  font-size: 15px;
}

.section-heading p {
  color: var(--muted);
  font-size: 12px;
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.workflow-item {
  position: relative;
  min-height: 0;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.workflow-item:last-child {
  border-right: 0;
}

/* Lightweight connector between consecutive workflow steps. */
.workflow-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -6px;
  z-index: 2;
  width: 10px;
  height: 10px;
  border-top: 1.5px solid #b9c9d8;
  border-right: 1.5px solid #b9c9d8;
  background: #fff;
  transform: translateY(-50%) rotate(45deg);
}

.workflow-index {
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
}

.workflow-item h3 {
  margin-top: 8px;
  color: var(--ink);
  font-size: 14px;
}

.workflow-item p {
  min-height: 0;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.workflow-item button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  color: var(--teal);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.workflow-item button svg {
  width: 14px;
  height: 14px;
}

.home-proof {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.proof-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 38px;
  background: #fbfcfa;
}

.proof-copy h2 {
  font-size: 22px;
  line-height: 1.35;
}

.proof-copy p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.proof-points {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.proof-point {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #405054;
  font-size: 13px;
}

.proof-point svg {
  width: 17px;
  height: 17px;
  color: var(--teal);
}

.proof-flow {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 330px;
  padding: 38px;
  border-left: 1px solid var(--line);
  background: #f0f7f5;
}

.proof-flow-title {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #15574f;
  font-size: 13px;
  font-weight: 800;
}

.proof-flow-title svg {
  width: 18px;
  height: 18px;
}

.proof-flow ol {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.proof-flow li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-height: 43px;
  padding-bottom: 10px;
  border-bottom: 1px solid #cfe0db;
  color: #34514d;
  font-size: 13px;
  font-weight: 700;
}

.proof-flow li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.proof-flow li b {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
}

.proof-flow p {
  margin-top: 20px;
  color: #64807b;
  font-size: 12px;
  line-height: 1.65;
}

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

.home-project-panel .panel-head h2 {
  margin-top: 3px;
  font-size: 15px;
}

.project-context-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.project-context-item {
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-right: 1px solid var(--line);
}

.project-context-item:last-child {
  border-right: 0;
}

.project-context-item > svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--teal);
}

.project-context-item span {
  min-width: 0;
}

.project-context-item label,
.project-context-item strong {
  display: block;
}

.project-context-item label {
  color: var(--muted);
  font-size: 11px;
}

.project-context-item strong {
  overflow: hidden;
  margin-top: 2px;
  color: #344344;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: 16px;
  align-items: stretch;
}

.home-dashboard-grid > .workspace-panel {
  display: flex;
  flex-direction: column;
}

.home-dashboard-grid .panel-head {
  flex: 0 0 auto;
}

.home-dashboard-grid .panel-body,
.home-dashboard-grid .todo-list {
  flex: 1 1 auto;
}

.home-dashboard-grid .panel-body {
  padding: 14px 16px;
}

.home-metric-grid {
  gap: 10px;
}

.home-metric-grid .metric {
  min-height: 0;
  padding: 12px 14px;
}

.home-world-map-panel .panel-head {
  align-items: flex-start;
}

.home-world-map-note,
.send-scheduled-note {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #cfe0ef;
  border-radius: 999px;
  background: #f4f8fc;
  color: #54708b;
  font-size: 11px;
  font-weight: 700;
}

.home-world-map-layout {
  display: block;
}

.home-world-map-stage {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 2.05 / 1;
  overflow: hidden;
  border: 1px solid var(--card-line, #D7E3EC);
  border-radius: 7px;
  background: #fff;
}

.home-world-map-vector,
.home-world-map-points {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-world-map-vector svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.home-world-map-vector svg path {
  fill: #C3D2DE;
  stroke: #fff;
  stroke-width: .9;
  vector-effect: non-scaling-stroke;
  cursor: crosshair;
  pointer-events: all;
  transition: fill .16s ease, stroke .16s ease, filter .16s ease;
}

.home-world-map-vector svg path:hover,
.home-world-map-vector svg path:focus-visible,
.home-world-map-vector svg path.is-hover-country {
  fill: var(--brand-primary, #3B82A6);
  stroke: #fff;
  filter: drop-shadow(0 2px 4px rgba(31, 78, 121, .18));
  outline: 0;
}

.home-world-map-points {
  z-index: 2;
  pointer-events: none;
}

.home-world-map-vector {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: auto;
}

.home-world-map-hover {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 5;
  display: none;
  width: min(210px, calc(100% - 20px));
  padding: 10px 12px;
  border: 1px solid rgba(59, 130, 166, .30);
  border-radius: 6px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 8px 20px rgba(31, 78, 121, .14);
  color: #3b536d;
  pointer-events: none;
}

.home-world-map-hover.is-visible {
  display: grid;
  gap: 4px;
}

.home-world-map-hover strong {
  color: #0b1f3a;
  font-size: 13px;
}

.home-world-map-hover span,
.home-world-map-hover small {
  font-size: 10px;
}

.home-world-map-hover span b {
  color: var(--brand-primary-dark, #1F4E79);
}

.home-world-map-hover small {
  color: #71849a;
}

.home-world-map-point {
  position: absolute;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  background: var(--brand-primary, #3B82A6);
  box-shadow: 0 3px 12px rgba(31, 78, 121, 0.24);
  color: #fff;
  cursor: pointer;
  pointer-events: auto;
  transform: translate(-50%, -50%);
  transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
  z-index: 2;
}

.home-world-map-point:hover,
.home-world-map-point:focus-visible,
.home-world-map-point.is-selected {
  background: var(--brand-primary-dark, #1F4E79);
  box-shadow: 0 0 0 4px rgba(59, 130, 166, .18), 0 5px 16px rgba(31, 78, 121, .30);
  outline: 0;
  transform: translate(-50%, -50%) scale(1.1);
}

.home-world-map-point::after {
  position: absolute;
  width: 7px;
  height: 7px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--brand-secondary, #5FA8D3);
  content: "";
  transform: translate(11px, -11px);
}

.home-world-map-point b {
  font-size: 10px;
  line-height: 1;
}

.home-world-map-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}

.home-world-map-legend {
  position: absolute;
  left: 14px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid rgba(185, 201, 217, .9);
  border-radius: 5px;
  background: rgba(255, 255, 255, .9);
  color: #52677d;
  font-size: 10px;
  font-weight: 700;
  backdrop-filter: blur(5px);
}

.home-world-map-legend span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-primary, #3B82A6);
}

.home-world-map-detail {
  position: absolute;
  top: 14px;
  right: 14px;
  width: min(260px, calc(100% - 28px));
  display: none;
  padding: 14px;
  border: 1px solid var(--brand-silver, #B8C7D6);
  border-radius: 7px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 12px 28px rgba(31, 78, 121, .14);
  color: var(--ink);
  backdrop-filter: blur(7px);
  z-index: 4;
}

.home-world-map-detail.is-visible {
  display: block;
}

.home-world-map-detail > strong,
.home-world-map-detail > small {
  display: block;
}

.home-world-map-detail > strong {
  padding-right: 24px;
  font-size: 15px;
}

.home-world-map-detail > small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.home-world-map-detail > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.home-world-map-detail > div span {
  padding: 9px;
  border: 1px solid var(--card-line, #D7E3EC);
  border-radius: 5px;
  background: var(--brand-bg-soft, #F4F8FB);
}

.home-world-map-detail b,
.home-world-map-detail em {
  display: block;
}

.home-world-map-detail b {
  color: var(--brand-primary-dark, #1F4E79);
  font-size: 18px;
}

.home-world-map-detail em {
  margin-top: 2px;
  color: #687c90;
  font-size: 10px;
  font-style: normal;
}

.home-world-map-detail-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: #71869a;
  cursor: pointer;
}

.home-world-map-detail-close:hover {
  background: #edf5fc;
  color: var(--brand-primary-dark, #1F4E79);
}

.home-world-map-detail-close svg {
  width: 14px;
  height: 14px;
}

.home-world-map-empty,
.home-world-map-list-empty,
.send-scheduled-empty {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 22px 16px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.home-world-map-stage > .home-world-map-empty {
  position: absolute;
  inset: 0;
  min-height: 0;
  background: transparent;
  pointer-events: none;
}

.home-world-map-list {
  min-width: 0;
  max-height: 330px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
}

.home-world-map-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 9px 0 9px 16px;
  border-bottom: 1px solid #edf2f6;
}

.home-world-map-list-row:last-child {
  border-bottom: 0;
}

.home-world-map-list-row > div,
.home-world-map-list-row > span {
  min-width: 0;
}

.home-world-map-list-row strong,
.home-world-map-list-row small {
  display: block;
}

.home-world-map-list-row strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-world-map-list-row small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.home-world-map-list-row > span {
  flex: 0 0 54px;
  text-align: right;
}

.home-world-map-list-row > span b {
  color: var(--blue);
  font-size: 16px;
}

.send-scheduled-panel {
  margin-top: 14px;
}

.send-scheduled-list {
  display: grid;
}

.send-scheduled-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.85fr) auto auto;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 12px 18px;
  border-top: 1px solid #edf2f0;
}

.send-scheduled-row:first-child {
  border-top: 0;
}

.send-scheduled-main,
.send-scheduled-time {
  min-width: 0;
}

.send-scheduled-main strong,
.send-scheduled-main span,
.send-scheduled-main small,
.send-scheduled-time b,
.send-scheduled-time small {
  display: block;
}

.send-scheduled-main strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.send-scheduled-main span,
.send-scheduled-time small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.send-scheduled-time b {
  color: #3b536a;
  font-size: 12px;
  font-weight: 700;
}

.send-scheduled-status {
  padding: 5px 8px;
  border-radius: 5px;
  background: rgba(59, 130, 166, .10);
  color: #52718d;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.send-scheduled-status.is-sent {
  background: #eaf7ee;
  color: #237443;
}

.send-scheduled-status.is-failed {
  background: #fceeee;
  color: #a33d3d;
}

.send-scheduled-status.is-cancelled {
  background: #f1f3f5;
  color: #7a858d;
}

.send-scheduled-cancel {
  min-height: 31px;
  padding: 0 9px;
  white-space: nowrap;
}

.send-scheduled-cancel svg {
  width: 13px;
  height: 13px;
}

.send-scheduled-error {
  overflow: hidden;
  margin-top: 4px;
  color: #ae4c46 !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.todo-list {
  display: grid;
  align-content: start;
}

.todo-item {
  width: 100%;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 11px;
  padding: 11px 16px;
  border: 0;
  border-bottom: 1px solid #edf0ee;
  background: #fff;
  color: #3a494b;
  cursor: pointer;
  text-align: left;
}

.todo-item:last-child {
  border-bottom: 0;
}

.todo-item:hover {
  background: var(--brand-bg-soft, #F4F8FB);
}

.todo-item > svg {
  width: 16px;
  height: 16px;
  color: #7c8b8d;
}

.todo-icon {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--teal-soft);
  color: var(--teal);
}

.todo-icon svg {
  width: 16px;
  height: 16px;
}

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

.todo-copy strong,
.todo-copy small {
  display: block;
}

.todo-copy strong {
  color: #344344;
  font-size: 12px;
}

.todo-copy small {
  overflow: hidden;
  margin-top: 3px;
  color: #7a888a;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.metric {
  min-height: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.metric-label {
  color: var(--muted);
  font-size: 11px;
}

.metric-value {
  margin-top: 6px;
  color: var(--ink);
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.metric-detail {
  margin-top: 6px;
  color: #718083;
  font-size: 11px;
}

.scenario-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.scenario-list div {
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px;
  border-right: 1px solid var(--line);
  color: #3f4e50;
  font-size: 13px;
  font-weight: 700;
}

.scenario-list div:last-child {
  border-right: 0;
}

.scenario-list svg {
  width: 19px;
  height: 19px;
  color: var(--teal);
}

.home-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 30px 34px;
  background: var(--teal-deep);
  color: #fff;
}

.home-cta > div > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #a9ddd1;
  font-size: 12px;
  font-weight: 800;
}

.home-cta > div > span svg {
  width: 15px;
  height: 15px;
}

.home-cta h2 {
  margin-top: 8px;
  color: #fff;
  font-size: 22px;
  line-height: 1.35;
}

.home-cta p {
  max-width: 720px;
  margin-top: 7px;
  color: #c1d9d4;
  font-size: 13px;
  line-height: 1.65;
}

.home-cta .btn.primary {
  flex: 0 0 auto;
  height: 42px;
  background: #f4c75f;
  color: #2e2917;
}

.project-stepper {
  min-width: 0;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 0;
  overflow-x: auto;
  padding: 0 0 1px;
}

.stepper-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #849093;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}

.stepper-item svg {
  width: 12px;
  height: 12px;
}

.stepper-item::after {
  content: "";
  width: 22px;
  height: 1px;
  margin-left: 4px;
  background: #ccd5d2;
}

.stepper-item:last-child::after {
  display: none;
}

.stepper-number {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border: 1px solid #c8d0ce;
  border-radius: 50%;
  background: #fff;
  font-size: 11px;
}

.stepper-item.is-active {
  color: var(--teal);
  font-weight: 800;
}

.stepper-item.is-active .stepper-number {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.stepper-item.is-complete {
  color: #3d7c59;
}

.stepper-item.is-complete .stepper-number {
  border-color: #69ad82;
  color: #26714a;
}

.workspace-panel {
  border: 1px solid var(--card-line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--card-shadow);
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  color: var(--ink);
  font-size: 14px;
}

.panel-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.panel-body {
  padding: 16px;
}

.analysis-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.82fr);
  gap: 16px;
}

.analysis-project-context {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.analysis-context-item {
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-right: 1px solid var(--line);
}

.analysis-context-item:last-child {
  border-right: 0;
}

.analysis-context-item > svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--teal);
}

.analysis-context-item span {
  min-width: 0;
}

.analysis-context-item label,
.analysis-context-item strong {
  display: block;
}

.analysis-context-item label {
  color: var(--muted);
  font-size: 11px;
}

.analysis-context-item strong {
  overflow: hidden;
  margin-top: 2px;
  color: #344344;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analysis-inputs {
  display: grid;
  gap: 13px;
}

.field-label {
  display: block;
  margin-bottom: 7px;
  color: #495759;
  font-size: 12px;
  font-weight: 800;
}

.analysis-inputs .filter-search {
  width: 100%;
  height: 36px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid #bdc9c5;
  border-radius: var(--radius-control);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}

.analysis-inputs .hs-code-display {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  border-color: #bdc9c5;
  box-shadow: none;
}

.analysis-hs-hint {
  margin-top: 7px;
  color: #768486;
  font-size: 11px;
  line-height: 1.55;
}

.analysis-inputs .market-research-button,
.analysis-inputs .search-demand-button {
  width: 38px;
  height: 38px;
  border-radius: 6px;
}

.analysis-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.analysis-research-section {
  margin-top: 16px;
}

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

.analysis-research-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 0;
  gap: 14px;
  padding: 13px 16px;
}

.analysis-research-copy {
  min-width: 0;
}

.analysis-research-copy .page-eyebrow {
  margin-bottom: 8px;
}

.analysis-research-copy h3 {
  color: #273b38;
  font-size: 15px;
}

.analysis-research-copy p {
  margin-top: 5px;
  color: #72817d;
  font-size: 12px;
  line-height: 1.55;
}

.analysis-research-action {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.analysis-research-action .market-research-button,
.analysis-research-action .search-demand-button {
  width: 42px;
  height: 42px;
  border-color: var(--brand-silver, #B8C7D6);
  color: var(--brand-primary, #3B82A6);
}

.analysis-decision-section {
  margin-top: 16px;
}

.analysis-decision-section .panel-head {
  align-items: flex-start;
}

.analysis-decision-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.analysis-decision-summary > div {
  min-width: 0;
  padding: 12px 16px;
  border-right: 1px solid var(--line);
}

.analysis-decision-summary > div:last-child {
  border-right: 0;
}

.analysis-decision-summary span,
.analysis-decision-summary strong,
.analysis-decision-summary p {
  display: block;
}

.analysis-decision-summary span {
  color: var(--muted);
  font-size: 11px;
}

.analysis-decision-summary strong {
  overflow: hidden;
  margin-top: 4px;
  color: #27584f;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analysis-decision-summary p {
  min-height: 0;
  margin-top: 4px;
  color: #72817d;
  font-size: 11px;
  line-height: 1.5;
}

.analysis-decision-empty {
  min-height: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 26px 20px;
  text-align: center;
}

.analysis-decision-empty > svg {
  width: 22px;
  height: 22px;
  color: #8aa19b;
}

.analysis-decision-empty strong,
.analysis-decision-empty p {
  display: block;
}

.analysis-decision-empty strong {
  color: #40514e;
  font-size: 13px;
}

.analysis-decision-empty p {
  max-width: 460px;
  margin-top: 2px;
  color: #788786;
  font-size: 12px;
  line-height: 1.6;
}

.trade-mcp-toolbar { display:flex; align-items:center; gap:10px; padding:10px 16px 0; }
.trade-mcp-toolbar label { flex:0 0 auto; color:#5b7186; font-size:12px; font-weight:700; }
.trade-mcp-toolbar select { min-width:0; flex:1 1 auto; height:30px; padding:0 8px; border:1px solid #d7e3ec; border-radius:6px; background:#fff; color:#5b7186; font-size:12px; outline:none; }
.trade-mcp-toolbar select:focus { border-color:#3b82a6; box-shadow:0 0 0 3px rgba(59,130,166,.12); }
.trade-mcp-messages { display:grid; gap:10px; flex:1 1 auto; min-height:120px; max-height:340px; overflow-y:auto; overscroll-behavior:contain; padding:10px 16px; border:0; border-radius:0; background:transparent; }
.trade-mcp-empty { display:flex; align-items:center; gap:10px; min-height:0; padding:12px 14px; border:1px dashed #d7e3ec; border-radius:8px; background:#f4f8fb; color:#5b7186; font-size:12px; text-align:left; }
.trade-mcp-empty svg { flex:0 0 auto; width:20px; height:20px; color:#3b82a6; }
.trade-mcp-empty strong { display:block; margin-bottom:2px; color:#16324a; font-size:12px; }
.trade-mcp-empty p { color:#5b7186; font-size:11px; line-height:1.55; }
.trade-mcp-message { max-width:92%; padding:10px 12px; border:1px solid #d7e3ec; border-radius:10px; background:#fff; }
.trade-mcp-message.user { justify-self:end; border-color:#3b82a6; background:#edf7fb; }
.trade-mcp-message-role { margin-bottom:4px; color:#5b7186; font-size:11px; font-weight:700; }
.trade-mcp-message.user .trade-mcp-message-role { color:#1f4e79; }
.trade-mcp-message-body { color:#16324a; font-size:13px; line-height:1.7; white-space:pre-wrap; overflow-wrap:anywhere; }
.trade-mcp-message-body strong { color:#1f4e79; font-weight:800; }
.trade-mcp-message-body code { padding:1px 5px; border-radius:4px; background:#f4f8fb; color:#1f4e79; font-family:ui-monospace,SFMono-Regular,Consolas,monospace; font-size:.92em; }
.trade-mcp-bullet { color:#3b82a6; font-weight:800; }
.trade-mcp-table-wrap { margin:8px 0; overflow-x:auto; border:1px solid #d7e3ec; border-radius:8px; background:#fff; }
.trade-mcp-table { width:100%; min-width:520px; border-collapse:collapse; font-size:12px; line-height:1.45; }
.trade-mcp-table th { padding:7px 9px; text-align:left; color:#1f4e79; background:#f4f8fb; border-bottom:1px solid #d7e3ec; white-space:nowrap; }
.trade-mcp-table td { padding:7px 9px; color:#16324a; border-bottom:1px solid #edf2f6; vertical-align:top; }
.trade-mcp-table tr:last-child td { border-bottom:0; }
.trade-mcp-country-badge { display:inline-flex; align-items:center; line-height:1; font-size:16px; cursor:help; vertical-align:middle; }
.trade-mcp-compose { display:flex; align-items:flex-end; gap:8px; flex:0 0 auto; margin-top:auto; padding:10px 16px; border-top:1px solid #d7e3ec; background:#f4f8fb; }
.trade-mcp-compose textarea { flex:1 1 auto; width:auto; min-height:38px; max-height:120px; resize:vertical; padding:8px 10px; border:1px solid #d7e3ec; border-radius:8px; background:#fff; color:#16324a; font:inherit; font-size:12px; line-height:1.5; outline:none; }
.trade-mcp-compose textarea:focus { border-color:#3b82a6; box-shadow:0 0 0 3px rgba(59,130,166,.12); }
.trade-mcp-submit { align-self:stretch; width:auto; height:38px; display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:0 14px; border:1px solid transparent; border-radius:6px; background:#3b82a6; color:#fff; cursor:pointer; font-size:13px; font-weight:700; }
.trade-mcp-submit:hover:not(:disabled) { background:#2f6e8c; border-color:transparent; }
.trade-mcp-submit:disabled { opacity:.6; cursor:not-allowed; }
.trade-mcp-submit svg { width:15px; height:15px; }
.trade-mcp-status { min-height:20px; margin-top:7px; color:#5b7186; font-size:12px; line-height:1.5; }
.trade-mcp-followup-hint { display:block; margin-top:12px; padding:10px 12px; border:1px solid #d7e3ec; border-radius:8px; background:#f4f8fb; color:#5b7186; font-size:12px; }
.trade-mcp-followup-hint strong { display:block; margin-bottom:8px; color:#1f4e79; font-size:12px; }
.trade-mcp-followup-hint code { color:#1f4e79; }
.trade-mcp-followup-list { display:flex; flex-wrap:wrap; gap:6px; }
.trade-mcp-followup-option { display:inline-flex; align-items:center; gap:5px; max-width:100%; padding:5px 8px; border:1px solid #c6d9e7; border-radius:6px; background:#fff; color:#1f4e79; font:inherit; font-size:11px; line-height:1.35; cursor:pointer; }
.trade-mcp-followup-option:hover { border-color:#3b82a6; background:#eef7fb; }
.trade-mcp-next-page { min-width:92px; justify-content:center; }
.trade-mcp-followup-option.is-default { border-color:#3b82a6; background:#e8f3f8; font-weight:600; }
.trade-mcp-followup-option svg { width:12px; height:12px; flex:none; }
.trade-mcp-copy-followup { padding:4px 8px; font-size:11px; }
@media (max-width:700px) {
  .trade-mcp-toolbar { display:grid; grid-template-columns:1fr; gap:6px; }
  .trade-mcp-message { max-width:100%; }
}

.analysis-country-list {
  display: grid;
  gap: 8px;
  padding: 12px 14px 14px;
}

.analysis-country-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  border: 1px solid #e0e7e4;
  border-radius: 6px;
  background: #fff;
}

.analysis-country-card.is-selected {
  border-color: var(--brand-secondary, #5FA8D3);
  background: rgba(59, 130, 166, .06);
}

.analysis-country-card > div:first-child {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.analysis-country-rank {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(59, 130, 166, .10);
  color: var(--brand-primary-dark, #1F4E79);
  font-size: 10px;
  font-weight: 800;
}

.analysis-country-card h3 {
  color: #334847;
  font-size: 13px;
}

.analysis-country-card p {
  margin-top: 3px;
  color: #74827f;
  font-size: 11px;
  line-height: 1.5;
}

.analysis-country-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
}

.analysis-country-actions b {
  color: #295f55;
  font-size: 12px;
}

.analysis-country-actions .btn {
  min-width: 78px;
  min-height: 29px;
  justify-content: center;
  padding: 0 9px;
  font-size: 11px;
}

.analysis-conditions {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
  border-left: 3px solid var(--amber);
  background: #fdfaf4;
}

.condition-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #5f635e;
  font-size: 12px;
}

.condition-row strong {
  color: #313d3b;
}

.analysis-result-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.analysis-result {
  min-height: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--brand-bg, #FAFCFE);
}

.analysis-result label {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.analysis-result strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
}

.analysis-summary-section {
  margin-top: 4px;
  padding: 16px 16px 16px;
  border-top: 1px solid var(--line);
}

.analysis-ai-insight {
  margin-top: 14px;
  border: 1px solid #dbe5e1;
  border-left: 3px solid var(--teal);
  border-radius: 7px;
  background: var(--brand-bg, #FAFCFE);
  color: #40514e;
}

.analysis-ai-insight-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 11px;
  align-items: flex-start;
  padding: 16px 17px;
}

.analysis-ai-insight-inner > svg {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  color: var(--teal);
}

.analysis-ai-insight h3 {
  color: #2d4741;
  font-size: 13px;
}

.analysis-ai-insight p {
  margin-top: 5px;
  color: #60736e;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-line;
}

.analysis-ai-insight.is-loading {
  border-left-color: var(--blue);
}

.analysis-ai-insight.is-loading .analysis-ai-insight-inner > svg {
  color: var(--blue);
}

.analysis-ai-insight.is-fallback {
  border-left-color: var(--amber);
  background: #fffcf5;
}

.analysis-ai-insight.is-fallback .analysis-ai-insight-inner > svg {
  color: var(--amber);
}

.analysis-data-state {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid #d6dfdc;
  border-radius: 5px;
  background: #fff;
  color: #687779;
  font-size: 11px;
  font-weight: 800;
}

.analysis-data-state.is-ready {
  border-color: #9fd1c4;
  background: #edf9f5;
  color: #176e5e;
}

.analysis-data-state.is-pending {
  border-color: #e8d8b4;
  background: #fff9ed;
  color: #8a671e;
}

.analysis-chart-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
}

.analysis-chart-card {
  position: relative;
  min-height: 342px;
  overflow: hidden;
}

.chart-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 18px 0;
}

.chart-card-head h3 {
  color: #344344;
  font-size: 14px;
}

.chart-card-head span {
  color: #7a888a;
  font-size: 11px;
  text-align: right;
}

.analysis-chart-card canvas {
  width: 100%;
  height: 278px;
  padding: 0 12px 12px;
}

.analysis-chart-empty {
  position: absolute;
  inset: 58px 12px 12px;
  display: grid;
  place-items: center;
  margin: 0;
  border-top: 1px dashed #d9e1de;
  color: #8a9899;
  font-size: 12px;
  text-align: center;
}

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

.analysis-note {
  min-height: 98px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 16px;
}

.analysis-note > svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  color: var(--teal);
}

.analysis-note:nth-child(2) > svg {
  color: var(--blue);
}

.analysis-note:nth-child(3) > svg {
  color: var(--amber);
}

.analysis-note h3 {
  color: #3a494b;
  font-size: 12px;
}

.analysis-note p {
  margin-top: 5px;
  color: #738184;
  font-size: 11px;
  line-height: 1.6;
}

.analysis-recommendation-list {
  display: grid;
}

.recommendation-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 15px 20px;
  border-bottom: 1px solid #edf0ee;
}

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

.recommendation-row.is-selected {
  background: rgba(59, 130, 166, .06);
}

.recommendation-rank {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(59, 130, 166, .10);
  color: var(--brand-primary-dark, #1F4E79);
  font-size: 11px;
  font-weight: 800;
}

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

.recommendation-copy > div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.recommendation-copy strong {
  color: #334243;
  font-size: 13px;
}

.recommendation-copy p {
  margin-top: 4px;
  color: #728082;
  font-size: 11px;
}

.recommendation-tag {
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  border-radius: 4px;
  background: #e9f5f1;
  color: #176e5e;
  font-size: 10px;
  font-weight: 800;
}

.recommendation-row:nth-child(n + 4) .recommendation-tag {
  background: #fff4de;
  color: #996319;
}

.analysis-next-step {
  position: sticky;
  bottom: 16px;
  z-index: 8;
  margin: 0;
  border-radius: 0 0 7px 7px;
}

.next-step-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 11px 16px;
  border: 1px solid #b9ddd5;
  border-radius: 7px;
  background: rgba(59, 130, 166, .06);
}

.next-step-bar strong {
  color: #15574f;
  font-size: 13px;
}

.next-step-bar p {
  margin-top: 3px;
  color: #528078;
  font-size: 12px;
}

.prospect-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 18px;
}

.prospect-filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--brand-bg, #FAFCFE);
}

.prospect-filter-bar input,
.prospect-filter-bar select {
  height: 36px;
  padding: 0 10px;
  border: 1px solid #c7d0cd;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  outline: 0;
  font-size: 12px;
}

.prospect-filter-bar input {
  width: min(250px, 100%);
}

.prospect-filter-bar #typeFilter {
  display: flex;
  overflow: hidden;
  border: 1px solid #c7d0cd;
  border-radius: 6px;
}

.prospect-filter-bar #typeFilter button {
  height: 34px;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid #d9dfdd;
  border-radius: 0;
  background: #fff;
  color: #657173;
  cursor: pointer;
  font-size: 12px;
}

.prospect-filter-bar #typeFilter button:last-child {
  border-right: 0;
}

.prospect-filter-bar #typeFilter button.active {
  background: var(--teal);
  color: #fff;
}

.prospect-table-panel #stats {
  padding: 12px 20px 0;
  color: var(--muted);
  font-size: 12px;
}

.prospect-table-panel .table-wrap {
  margin: 12px 20px 20px;
  border-color: var(--line);
  border-radius: 7px;
}

.prospect-table-panel th {
  padding: 10px 12px;
  background: #f7f9f8;
  color: #667476;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.prospect-table-panel td {
  padding: 12px;
  color: #334042;
  font-size: 12px;
}

.prospect-table-panel tr:hover {
  background: var(--brand-bg-soft, #F4F8FB);
}

.prospect-table-panel .contact-list {
  min-width: 230px;
}

.prospect-table-panel .contact-card {
  border-color: #e2e8e5;
  border-radius: 6px;
  background: var(--brand-bg, #FAFCFE);
}

.lead-add {
  height: 28px;
  margin-top: 8px;
  padding: 0 9px;
  border: 1px solid var(--brand-silver, #B8C7D6);
  border-radius: 5px;
  background: rgba(59, 130, 166, .10);
  color: var(--brand-primary-dark, #1F4E79);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.lead-tray {
  position: sticky;
  top: 82px;
  align-self: start;
}

.lead-tray-head {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.lead-tray-head h2 {
  color: var(--ink);
  font-size: 15px;
}

.lead-tray-head p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.lead-tray-list {
  display: grid;
  gap: 0;
  max-height: 442px;
  overflow-y: auto;
}

.lead-row {
  padding: 14px 18px;
  border-bottom: 1px solid #edf0ee;
}

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

.lead-row strong {
  display: block;
  overflow: hidden;
  color: #334143;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-row span {
  display: block;
  margin-top: 4px;
  color: #738084;
  font-size: 11px;
}

.lead-contact-details {
  display: grid;
  gap: 3px;
  margin-top: 8px;
}

.lead-contact-details span {
  margin-top: 0;
  overflow: hidden;
  color: #3f5153;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-contact-details b {
  margin-right: 6px;
  color: #7b8989;
  font-weight: 600;
}

.lead-contact-details.is-empty {
  margin-top: 8px;
  color: #8a9697;
  font-size: 11px;
}

.lead-actions {
  display: flex;
  gap: 7px;
  margin-top: 10px;
}

.icon-text-button {
  height: 29px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  border: 1px solid #d7dfdc;
  border-radius: 5px;
  background: #fff;
  color: #526164;
  cursor: pointer;
  font-size: 11px;
}

.icon-text-button svg {
  width: 13px;
  height: 13px;
}

.lead-tray-footer {
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
}

.empty-tray {
  padding: 28px 18px;
  color: #829092;
  font-size: 12px;
  line-height: 1.65;
}

.prospect-project-context {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.prospect-context-item {
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-right: 1px solid var(--line);
}

.prospect-context-item:last-child {
  border-right: 0;
}

.prospect-context-item > svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--teal);
}

.prospect-context-item span {
  min-width: 0;
}

.prospect-context-item label,
.prospect-context-item strong {
  display: block;
}

.prospect-context-item label {
  color: var(--muted);
  font-size: 11px;
}

.prospect-context-item strong {
  overflow: hidden;
  margin-top: 2px;
  color: #334244;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prospect-workbench {
  position: relative;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 380px;
  align-items: stretch;
  gap: 14px;
}

.prospect-collect-column {
  display: grid;
  gap: 14px;
  align-content: start;
  min-width: 0;
}

.prospect-collect-card {
  border-color: rgba(59, 130, 166, .28);
  background: rgba(59, 130, 166, .06);
}

.prospect-collect-body {
  display: grid;
  gap: 10px;
  padding: 14px 16px;
}

.prospect-collect-body #country,
.prospect-collect-body input[type="text"] {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}

.prospect-collect-body .btn {
  width: 100%;
  justify-content: center;
}

.prospect-country-recents {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.prospect-country-recents button {
  padding: 3px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--teal-deep);
  cursor: pointer;
  font-size: 11px;
}

.prospect-country-recents button:hover {
  border-color: var(--teal);
  background: rgba(59, 130, 166, .08);
}

.prospect-country-empty {
  color: var(--muted);
  font-size: 11px;
}

.prospect-collect-progress {
  display: grid;
  gap: 3px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
}

.prospect-collect-progress[hidden] {
  display: none;
}

.prospect-results-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.prospect-link-button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  font-size: 12px;
}

.prospect-link-button:hover {
  text-decoration: underline;
}

.prospect-summary-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}

.prospect-metric {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-height: 0;
  padding: 0;
  border-right: 0;
}

.prospect-metric span,
.prospect-metric strong {
  flex: 0 0 auto;
  overflow: visible;
  white-space: nowrap;
}

.prospect-metric small {
  display: none;
}

.prospect-card.prospect-row {
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: stretch;
}

.prospect-toolbar .prospect-sort-control span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.prospect-metric strong {
  margin: 0;
  font-size: 15px;
}

.prospect-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}

.prospect-toolbar-check {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

.prospect-toolbar #typeFilter {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
}

.prospect-toolbar #typeFilter button {
  min-width: 0;
  height: 30px;
  padding: 0 9px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
}

.prospect-toolbar #typeFilter button:last-child {
  border-right: 0;
}

.prospect-toolbar #typeFilter button.active {
  background: var(--teal);
  color: #fff;
}

.prospect-toolbar input[type="text"] {
  width: 150px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}

.prospect-toolbar select {
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}

.prospect-toolbar .prospect-sort-control {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}

.prospect-toolbar .prospect-sort-control span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.prospect-more-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.prospect-more-filters[hidden] {
  display: none;
}

.prospect-more-field {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.prospect-more-field input {
  width: 150px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}

.prospect-more-check {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-size: 11px;
}

.prospect-active-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}

.prospect-active-filters[hidden] {
  display: none;
}

.prospect-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 4px 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
}

.prospect-filter-tag button {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.prospect-filter-tag button:hover {
  background: rgba(59, 130, 166, .12);
  color: var(--teal-deep);
}

.prospect-filter-tag svg {
  width: 11px;
  height: 11px;
}

.prospect-filter-clear {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  font-size: 11px;
}

.prospect-filter-clear:hover {
  text-decoration: underline;
}

.prospect-card-list {
  gap: 8px;
  padding: 12px 16px;
  background: #fff;
}

.prospect-row {
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: stretch;
}

.prospect-row-check {
  display: flex;
  align-items: center;
  justify-content: center;
}

.prospect-row-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--teal);
}

.prospect-row-channels {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  color: var(--teal);
}

.prospect-row-channels svg {
  width: 13px;
  height: 13px;
}

.prospect-row-channels em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.prospect-tag.leadnone {
  background: #f1f3f2;
  color: #7b8789;
}

.prospect-empty-compact {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 6px;
  min-height: 220px;
  max-height: 300px;
  margin: 14px 16px;
  padding: 22px 18px;
  border: 1px dashed var(--line);
  border-radius: 10px;
  background: var(--canvas);
  text-align: center;
}

.prospect-empty-compact > svg {
  width: 26px;
  height: 26px;
  color: var(--teal);
}

.prospect-empty-compact strong {
  color: var(--ink);
  font-size: 14px;
}

.prospect-empty-compact p {
  color: var(--muted);
  font-size: 12px;
}

.prospect-empty-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
}

.prospect-list-more {
  display: flex;
  justify-content: center;
  padding: 0 16px 12px;
}

.prospect-list-more[hidden] {
  display: none;
}

.prospect-selection-bar {
  position: static;
  margin-top: auto;
  padding: 10px 16px;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: var(--canvas);
  box-shadow: none;
}

.prospect-selection-bar .prospect-lead-mini-list {
  display: none;
}

.prospect-selection-bar.is-expanded .prospect-lead-mini-list {
  display: flex;
  flex-basis: 100%;
}

.prospect-selection-copy > div:first-child strong,
.prospect-selection-copy > div:nth-child(2) strong {
  font-size: 14px;
}

.prospect-detail-panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--topbar-h) - 40px);
  overflow: hidden;
}

.prospect-detail-panel .panel-head {
  flex: 0 0 auto;
}

.prospect-detail-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.prospect-detail-footer {
  flex: 0 0 auto;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  background: var(--canvas);
}

.prospect-detail-add {
  width: 100%;
  justify-content: center;
}

.prospect-detail-close {
  display: none;
}

.prospect-copy-button {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  margin-left: 5px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  vertical-align: middle;
}

.prospect-copy-button:hover {
  background: rgba(59, 130, 166, .12);
  color: var(--teal-deep);
}

.prospect-copy-button svg {
  width: 12px;
  height: 12px;
}

.prospect-filter-panel,
.prospect-detail-panel {
  position: static;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.prospect-filter-panel {
  max-height: none;
  overflow: visible;
}

.prospect-filter-panel .panel-head {
  position: static;
  align-items: flex-start;
  gap: 8px;
  background: #fff;
}

.prospect-filter-panel .panel-head .icon-text-button {
  width: 30px;
  min-width: 30px;
  height: 30px;
  padding: 0;
  justify-content: center;
}

.specified-company-collector {
  display: grid;
  gap: 7px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--brand-border, #D7E3EC);
}

.specified-company-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
}

.specified-company-row input {
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--brand-border, #D7E3EC);
  border-radius: 7px;
  background: var(--brand-bg, #FAFCFE);
  color: var(--brand-text, #16324A);
  font-size: 11px;
  outline: 0;
}

.specified-company-row input:focus {
  border-color: var(--brand-primary, #3B82A6);
  box-shadow: 0 0 0 3px rgba(59, 130, 166, .12);
}

.specified-company-row .btn {
  min-height: 32px;
  justify-content: center;
}

.specified-company-status {
  margin: 0;
  color: var(--muted, #5B7186);
  font-size: 10px;
  line-height: 1.5;
}

.prospect-sort-control {
  display: grid;
  gap: 6px;
}

.prospect-sort-control span {
  color: #617073;
  font-size: 11px;
  font-weight: 800;
}

.prospect-sort-control select {
  width: 100%;
  height: 36px;
  padding: 0 9px;
  border: 1px solid #c7d0cd;
  border-radius: 6px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}

.prospect-sort-control select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(8, 119, 107, 0.12);
}

.prospect-filter-panel .panel-head .icon-text-button svg {
  width: 15px;
  height: 15px;
}

.prospect-panel-actions {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 4px;
}

.workspace-main .prospect-add-button {
  box-sizing: border-box;
  flex: 0 0 30px;
  width: 30px;
  min-width: 30px;
  max-width: 30px;
  height: 30px;
  padding: 0;
  overflow: hidden;
  justify-content: center;
  white-space: nowrap;
  font-size: 0;
  line-height: 1;
}

.workspace-main .prospect-add-button svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

@media (max-width: 1440px) {
  .prospect-filter-panel .panel-head > div:first-child {
    min-width: 0;
  }

}

.prospect-card-actions .btn.danger {
  color: #b5473b;
  border-color: #f0c4be;
  background: #fff8f7;
}

.prospect-card-actions .btn.danger:hover {
  background: #fff1ef;
  border-color: #dfa49b;
}

.prospect-card-actions .prospect-delete-button {
  min-width: 92px;
  justify-content: center;
  gap: 5px;
}

.prospect-card-actions .prospect-delete-button svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.prospect-filter-body {
  display: grid;
  gap: 10px;
  padding: 13px 14px;
}

.prospect-filter-group {
  display: grid;
  gap: 7px;
  padding-bottom: 11px;
  border-bottom: 1px solid #e7ece9;
}

.prospect-filter-group:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.prospect-filter-body > .prospect-sort-group:last-child {
  /* Keep the final sorting controls clear of the sticky outreach tray. */
  padding-bottom: 12px;
}

.prospect-sort-hint {
  margin: 0;
  color: #71817e;
  font-size: 11px;
  line-height: 1.55;
}

.prospect-collect-button {
  width: 100%;
  justify-content: center;
  min-height: 36px;
}

.prospect-collect-status {
  margin: 0;
  color: #62716d;
  font-size: 11px;
  line-height: 1.55;
}

.prospect-filter-group h3 {
  color: #31534e;
  font-size: 11px;
  font-weight: 800;
}

.prospect-filter-label {
  margin-top: 2px;
  color: #617073;
  font-size: 11px;
  font-weight: 800;
}

.prospect-filter-body input[type="text"],
.prospect-filter-body select,
.prospect-filter-body #country {
  width: 100%;
  height: 36px;
  padding: 0 10px;
  border: 1px solid #c7d0cd;
  border-radius: 6px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}

.prospect-filter-body input[type="text"]:focus,
.prospect-filter-body select:focus,
.prospect-filter-body #country:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(8, 119, 107, 0.12);
}

.prospect-filter-body #typeFilter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid #c7d0cd;
  border-radius: 6px;
}

.prospect-filter-body #typeFilter button {
  min-width: 0;
  height: 33px;
  padding: 0 7px;
  border: 0;
  border-right: 1px solid #d9dfdd;
  border-bottom: 1px solid #d9dfdd;
  border-radius: 0;
  background: #fff;
  color: #657173;
  cursor: pointer;
  font-size: 11px;
}

.prospect-filter-body #typeFilter button:nth-child(2n) {
  border-right: 0;
}

.prospect-filter-body #typeFilter button:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.prospect-filter-body #typeFilter button.active {
  background: var(--teal);
  color: #fff;
}

.prospect-check-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 8px;
}

.prospect-check-list label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #526164;
  font-size: 12px;
}

.prospect-check-list input {
  accent-color: var(--teal);
}

.prospect-results {
  min-width: 0;
}

.prospect-results-head .btn {
  flex: 0 0 auto;
}

.prospect-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.prospect-metric {
  min-width: 0;
  min-height: 0;
  padding: 10px 12px;
  border-right: 1px solid var(--line);
}

.prospect-metric:last-child {
  border-right: 0;
}

.prospect-metric span,
.prospect-metric strong,
.prospect-metric small {
  display: block;
}

.prospect-metric span,
.prospect-metric small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prospect-metric strong {
  margin: 3px 0;
  color: #23413d;
  font-size: 18px;
  line-height: 1.1;
}

.prospect-card-list {
  display: grid;
  gap: 8px;
  padding: 12px;
  background: #f8faf9;
}

.prospect-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid #dfe6e3;
  border-radius: 7px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.prospect-card:hover,
.prospect-card.is-selected {
  border-color: #67b7a8;
}

.prospect-card.is-selected {
  border-color: var(--teal);
  background: rgba(59, 130, 166, .05);
  box-shadow: 0 0 0 2px rgba(8, 119, 107, 0.15), inset 4px 0 0 var(--teal);
}

.prospect-card.is-selected::after {
  position: absolute;
  top: 0;
  right: 0;
  width: 0;
  height: 0;
  border-top: 18px solid var(--teal);
  border-left: 18px solid transparent;
  content: "";
}

.prospect-card-main {
  position: relative;
  min-width: 0;
  display: block;
  padding: 14px 15px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.prospect-selected-marker {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 8px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
}

.prospect-selected-marker svg {
  width: 12px;
  height: 12px;
}

.prospect-card-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.prospect-card-title strong {
  min-width: 0;
  flex: 1 1 180px;
  overflow: hidden;
  color: #263638;
  font-size: 14px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prospect-website {
  display: inline-block;
  overflow: hidden;
  min-width: 0;
  color: #628078;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prospect-website:hover,
.prospect-website:focus-visible {
  color: #628078;
  font-weight: 500;
  text-decoration: underline;
}

.prospect-card-hint {
  margin-left: auto;
  color: #7b8a8c;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
}

.prospect-card.is-selected .prospect-card-hint {
  color: var(--teal);
}

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

.prospect-tag {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #eef2f0;
  color: #526164;
  font-size: 10px;
  font-weight: 800;
}

.prospect-tag.country {
  background: var(--blue-soft);
  color: var(--brand-primary-dark, #1F4E79);
}

.prospect-tag.type {
  background: var(--teal-soft);
  color: var(--brand-primary-dark, #1F4E79);
}

.prospect-tag.owner {
  background: rgba(184, 199, 214, .22);
  color: #4A6B8C;
}

.prospect-tag.complete {
  background: var(--green-soft);
  color: #237047;
}

.prospect-tag.partial {
  background: var(--amber-soft);
  color: #986317;
}

.prospect-tag.empty {
  background: #f1f3f2;
  color: #7b8789;
}

.prospect-tag.information.high {
  background: var(--green-soft);
  color: #237047;
}

.prospect-tag.information.medium {
  background: var(--amber-soft);
  color: #986317;
}

.prospect-tag.information.low {
  background: #f1f3f2;
  color: #7b8789;
}

.prospect-tag.industry.high {
  background: #eaf6f0;
  color: #237047;
}

.prospect-tag.industry.medium {
  background: #fff4dc;
  color: #8d6117;
}

.prospect-tag.industry.low {
  background: #f2f4f3;
  color: #6f7d7f;
}

.prospect-advice-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  max-width: 100%;
  padding: 3px 7px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.35;
  white-space: nowrap;
}

.prospect-advice-badge.priority {
  border-color: #8cc9b8;
  background: #e9f8f1;
  color: #176e5e;
}

.prospect-advice-badge.observe {
  border-color: #ebcc89;
  background: #fff8e7;
  color: #8b651b;
}

.prospect-advice-badge.deprioritize {
  border-color: #dce3e1;
  background: #f5f7f6;
  color: #748184;
}

.prospect-products {
  overflow: hidden;
  margin-top: 9px;
  color: #526164;
  font-size: 12px;
  line-height: 1.55;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prospect-signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.prospect-signal {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 19px;
  max-width: 160px;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prospect-signal svg {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
}

.prospect-signal.is-on {
  background: #edf7f4;
  color: #287367;
}

.prospect-signal.is-off {
  background: #f3f5f4;
  color: #889496;
}

.contact-social-status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid var(--brand-border, #d8e3f0);
  border-radius: 999px;
  color: var(--brand-text, #0b1f3a);
  background: var(--brand-bg-soft, #f4f8fc);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.contact-social-status.is-available {
  border-color: rgba(59, 130, 166, .32);
  color: var(--brand-primary-dark, #1F4E79);
  background: rgba(59, 130, 166, .10);
}

.contact-social-status.is-unavailable,
.contact-social-status.is-pending {
  color: #64748b;
  background: #f8fafc;
}

.prospect-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.prospect-card-meta > span {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  color: #748184;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prospect-card-meta svg {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.match-score {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 800;
}

.match-score.high {
  background: var(--green-soft);
  color: #237047;
}

.match-score.medium {
  background: var(--amber-soft);
  color: #946014;
}

.match-score.base {
  background: #eff2f1;
  color: #667477;
}

.prospect-card-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 12px;
  border-left: 1px solid #edf0ee;
  background: #fcfdfc;
}

.prospect-card-actions .icon-text-button {
  display: none;
}

.prospect-card-actions .btn {
  min-width: 92px;
  justify-content: center;
}

.prospect-card-actions .btn.primary {
  height: 29px;
  padding: 0 8px;
  font-size: 11px;
}

.legacy-prospect-results {
  display: none;
}

.prospect-empty {
  margin: 14px;
  border: 1px dashed #cdd8d5;
  border-radius: 7px;
  background: #fff;
}

.prospect-detail-panel {
  display: flex;
  flex-direction: column;
  max-height: none;
  overflow: visible;
}

.prospect-detail-panel .panel-head {
  flex: 0 0 auto;
  padding-bottom: 12px;
}

.prospect-detail-body {
  display: grid;
  flex: 1 1 auto;
  gap: 12px;
  min-height: 0;
  overflow-y: visible;
  padding: 0 14px 14px;
}

.prospect-company-summary {
  padding-bottom: 13px;
  border-bottom: 1px solid var(--line);
}

.prospect-value-panel {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--card-line, #D7E3EC);
  border-radius: 6px;
  background: var(--brand-bg-soft, #F4F8FB);
}

.prospect-ai-advice-panel {
  border-left: 3px solid var(--teal);
}

.prospect-ai-reasons {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 17px;
  color: #45645e;
  font-size: 11px;
  line-height: 1.55;
}

.prospect-ai-reasons li::marker {
  color: var(--teal);
}

.prospect-ai-summary {
  display: grid;
  gap: 0;
  margin: 14px 16px 18px;
  border: 1px solid var(--card-line, #D7E3EC);
  border-radius: 6px;
  background: var(--brand-bg, #FAFCFE);
  overflow: hidden;
}

.prospect-ai-summary-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  border-bottom: 1px solid #dceae5;
}

.prospect-ai-summary-head > div {
  min-width: 0;
}

.prospect-ai-summary-head span:first-child {
  display: block;
  color: #517069;
  font-size: 11px;
  font-weight: 800;
}

.prospect-ai-summary-head h3 {
  margin-top: 4px;
  color: #21473f;
  font-size: 14px;
}

.prospect-ai-summary-head p {
  margin-top: 5px;
  color: #657c76;
  font-size: 11px;
  line-height: 1.55;
}

.prospect-ai-summary-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #dceae5;
}

.prospect-ai-summary-metrics > div {
  min-width: 0;
  padding: 11px 12px;
  border-right: 1px solid #dceae5;
}

.prospect-ai-summary-metrics > div:last-child {
  border-right: 0;
}

.prospect-ai-summary-metrics span,
.prospect-ai-summary-metrics strong {
  display: block;
}

.prospect-ai-summary-metrics span {
  overflow: hidden;
  color: #6c7d79;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prospect-ai-summary-metrics strong {
  margin-top: 4px;
  color: #295c50;
  font-size: 18px;
  line-height: 1;
}

.prospect-ai-summary-reasons {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 12px 15px 12px 31px;
  color: #4f6862;
  font-size: 11px;
  line-height: 1.55;
}

.prospect-ai-summary-reasons li::marker {
  color: var(--teal);
}

.prospect-ai-summary-empty {
  min-height: 88px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 15px;
  color: #6b7e79;
}

.prospect-ai-summary-empty > svg {
  width: 18px;
  height: 18px;
  color: #8aa69d;
}

.prospect-ai-summary-empty strong,
.prospect-ai-summary-empty p {
  display: block;
}

.prospect-ai-summary-empty strong {
  color: #3f5852;
  font-size: 12px;
}

.prospect-ai-summary-empty p {
  margin-top: 3px;
  font-size: 11px;
  line-height: 1.55;
}

.prospect-value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.prospect-value-grid > div {
  min-width: 0;
  padding: 8px;
  border: 1px solid #dbece7;
  border-radius: 5px;
  background: #fff;
}

.prospect-value-grid span,
.prospect-value-grid strong {
  display: block;
}

.prospect-value-grid span {
  color: #6e8581;
  font-size: 10px;
}

.prospect-value-grid strong {
  overflow: hidden;
  margin-top: 4px;
  color: #27564e;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prospect-detail-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.prospect-detail-title h3 {
  color: #263638;
  font-size: 15px;
  line-height: 1.45;
}

.prospect-company-summary > p {
  margin-top: 9px;
  color: #647376;
  font-size: 12px;
  line-height: 1.65;
}

.prospect-detail-link {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  margin-top: 8px;
  color: #536164;
  font-size: 11px;
}

.prospect-detail-link > span {
  color: #7a8789;
}

.prospect-detail-link .link,
.prospect-detail-link b {
  overflow: hidden;
  color: #45655f;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prospect-detail-section {
  display: grid;
  gap: 8px;
}

.detail-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.detail-section-head h3 {
  color: #3b4b4c;
  font-size: 12px;
}

.detail-section-head span {
  color: var(--muted);
  font-size: 11px;
}

.detail-section-head svg {
  width: 15px;
  height: 15px;
  color: var(--teal);
}

.prospect-contact-card {
  padding: 10px;
  border: 1px solid #e0e6e3;
  border-radius: 6px;
  background: var(--brand-bg, #FAFCFE);
}

.prospect-contact-card > div {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.prospect-contact-card strong {
  color: #354547;
  font-size: 12px;
}

.prospect-contact-card > div span {
  color: #788587;
  font-size: 10px;
}

.prospect-contact-card dl {
  display: grid;
  gap: 5px;
  margin-top: 8px;
}

.prospect-contact-card dl > div {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 6px;
}

.prospect-contact-card dt {
  color: #839092;
  font-size: 10px;
}

.prospect-contact-card dd {
  min-width: 0;
  overflow: hidden;
  margin: 0;
  color: #526164;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prospect-contact-card .link {
  color: var(--teal);
}

.prospect-angle {
  padding: 11px;
  border-left: 3px solid var(--teal);
  background: var(--brand-bg-soft, #F4F8FB);
}

.prospect-angle p {
  color: #365650;
  font-size: 12px;
  line-height: 1.65;
}

.prospect-angle small {
  margin-top: 5px;
  color: #66817c;
  font-size: 11px;
  line-height: 1.55;
}

.prospect-detail-add {
  width: 100%;
  justify-content: center;
}

.prospect-detail-empty {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  flex: 1 1 auto;
  min-height: 180px;
  padding: 24px 20px;
  color: #899698;
  font-size: 12px;
  text-align: center;
}

.prospect-detail-empty svg {
  width: 26px;
  height: 26px;
  color: #9aaba7;
}

.prospect-selection-bar {
  position: sticky;
  bottom: 10px;
  z-index: 15;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
  padding: 9px 14px;
  border: 1px solid #b8dad3;
  border-radius: 7px;
  background: rgba(59, 130, 166, .06);
  box-shadow: 0 4px 14px rgba(27, 74, 67, 0.08);
}

.prospect-selection-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.prospect-selection-copy > div:first-child {
  min-width: 76px;
}

.prospect-selection-copy span,
.prospect-selection-copy strong {
  display: block;
}

.prospect-selection-copy > div:first-child span {
  color: #4d736c;
  font-size: 11px;
}

.prospect-selection-copy > div:first-child strong {
  margin-top: 1px;
  color: #15574f;
  font-size: 15px;
}

.prospect-selection-copy > div:first-child small {
  display: block;
  max-width: 230px;
  overflow: hidden;
  margin-top: 3px;
  color: #66817c;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prospect-lead-mini-list {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.prospect-lead-chip {
  max-width: 160px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 25px;
  padding: 2px 5px 2px 8px;
  border: 1px solid #c9e2dc;
  border-radius: 5px;
  background: #fff;
  color: #3b625b;
  font-size: 11px;
}

.prospect-lead-chip b {
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prospect-lead-chip button {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #718c86;
  cursor: pointer;
}

.prospect-lead-chip button svg {
  width: 12px;
  height: 12px;
}

.prospect-lead-empty,
.prospect-lead-more {
  color: #64807a;
  font-size: 11px;
}

.prospect-selection-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

.prospect-selection-actions .btn {
  justify-content: center;
}

.send-project-context {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 14px;
}

.send-context-item {
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-right: 1px solid var(--line);
}

.send-context-item:last-child {
  border-right: 0;
}

.send-context-item > svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--teal);
}

.send-context-item span {
  min-width: 0;
}

.send-context-item label,
.send-context-item strong {
  display: block;
}

.send-context-item label {
  color: var(--muted);
  font-size: 11px;
}

.send-context-item strong {
  overflow: hidden;
  margin-top: 2px;
  color: #334244;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.send-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.send-channel-panel {
  margin-top: 14px;
}

.send-channel-panel .send-channel-tabs {
  padding: 2px 16px 14px;
}

.send-selected-panel {
  position: sticky;
  top: calc(var(--topbar-h) + 12px);
  align-self: start;
}

.send-country-group + .send-country-group {
  border-top: 8px solid #f4f7f6;
}

.send-country-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 34px;
  padding: 7px 14px;
  border: 0;
  border-bottom: 1px solid #e4ebe8;
  background: #f8faf9;
  color: #526966;
  cursor: pointer;
  text-align: left;
}

.send-country-group-head:hover {
  background: var(--brand-bg-soft, #F4F8FB);
}

.send-country-group-head span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
}

.send-country-group-head span svg {
  width: 13px;
  height: 13px;
  color: var(--teal);
}

.send-country-group-head b {
  color: #73827f;
  font-size: 10px;
}

.followup-country-group-head {
  width: 100%;
  min-height: 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 13px;
  border: 0;
  border-bottom: 1px solid #e4ebe8;
  background: #f8faf9;
  color: #526966;
  cursor: pointer;
  text-align: left;
}

.followup-country-group-head:hover {
  background: var(--brand-bg-soft, #F4F8FB);
}

.followup-country-group-head span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
}

.followup-country-group-head svg {
  width: 13px;
  height: 13px;
  color: var(--teal);
}

.followup-country-group-head b {
  color: #73827f;
  font-size: 10px;
}

.send-lead-count,
.send-draft-state {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid #d8e4ef;
  border-radius: 999px;
  background: #f2f7fb;
  color: #4a6b8c;
  font-size: 10px;
  font-weight: 800;
}

.send-lead-row {
  width: 100%;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 13px 15px;
  border: 0;
  border-bottom: 1px solid #edf0ee;
  background: #fff;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.send-lead-row:hover {
  background: var(--brand-bg-soft, #F4F8FB);
}

.send-lead-row.is-selected {
  background: rgba(59, 130, 166, .06);
  box-shadow: inset 3px 0 0 var(--teal);
}

.send-lead-check {
  color: #91a19e;
}

.send-lead-row.is-selected .send-lead-check {
  color: var(--teal);
}

.send-lead-check svg {
  width: 17px;
  height: 17px;
}

.send-lead-copy {
  min-width: 0;
}

.send-lead-copy strong,
.send-lead-copy small,
.send-lead-copy em {
  display: block;
}

.send-lead-copy strong {
  overflow: hidden;
  color: #334244;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.send-lead-copy small {
  overflow: hidden;
  margin-top: 3px;
  color: #748285;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.send-lead-company-meta {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: #5B7186;
  font-size: 10px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.send-lead-copy em {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 7px;
  color: #5d7772;
  font-size: 10px;
  font-style: normal;
}

.send-lead-copy em span {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.send-lead-copy em svg {
  width: 11px;
  height: 11px;
}

.send-social-results {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.send-social-result {
  display: inline-flex;
  align-items: center;
  padding: 2px 6px;
  border: 1px solid #d8e3e1;
  border-radius: 999px;
  color: #71807f;
  font-size: 10px;
  font-style: normal;
  line-height: 1.2;
}

.send-social-result.is-ready {
  border-color: #9bcfc1;
  color: #18775e;
  background: #eefaf5;
}

.send-social-result.is-unavailable {
  color: #889292;
  background: #f5f7f7;
}

.send-social-result.is-pending {
  border-color: #e6d6a9;
  color: #98751d;
  background: #fffaf0;
}

.send-lead-status {
  color: #6a8580;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.send-lead-row.is-selected .send-lead-status {
  color: var(--teal);
}

.send-compose-panel {
  min-width: 0;
}

.send-channel-tabs {
  display: flex;
  gap: 6px;
  padding: 14px 18px 0;
}

.send-channel-tabs button {
  height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 10px;
  border: 1px solid #d5dfdc;
  border-radius: 5px;
  background: #fff;
  color: #5c6c6d;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.send-channel-tabs button:hover,
.send-channel-tabs button.is-active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.send-channel-tabs svg {
  width: 13px;
  height: 13px;
}

.send-template-section,
.send-generate-section {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}

.send-section-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.send-section-label > span {
  color: #3d5051;
  font-size: 12px;
  font-weight: 800;
}

.send-section-label small {
  color: #788688;
  font-size: 10px;
}

.translate-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.translate-language-select {
  min-width: 132px;
  height: 34px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 11px;
}

.translate-language-select:focus {
  outline: 2px solid rgba(59, 130, 166, .22);
  border-color: #3b82a6;
}

.send-template-controls {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}

.send-template-controls select,
.send-settings-grid select,
.send-editor input,
.send-editor textarea {
  width: 100%;
  border: 1px solid #c9d3d0;
  border-radius: 6px;
  outline: 0;
  background: #fff;
  color: #324346;
  font-size: 12px;
}

.send-template-controls select,
.send-settings-grid select,
.send-editor input {
  height: var(--control-h);
  padding: 0 9px;
}

.send-template-controls select:focus,
.send-settings-grid select:focus,
.send-editor input:focus,
.send-editor textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(8, 119, 107, 0.12);
}

.send-template-controls .btn {
  flex: 0 0 auto;
  white-space: nowrap;
}

.send-generate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.send-generate-actions .btn {
  height: 30px;
  padding: 0 9px;
  font-size: 11px;
}

.send-editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(250px, 0.9fr);
  min-width: 0;
}

.send-editor,
.send-preview {
  min-width: 0;
  padding: 16px 18px 18px;
}

.send-editor {
  border-right: 1px solid var(--line);
}

.send-editor input {
  margin-top: 10px;
}

.send-editor textarea {
  min-height: 188px;
  margin-top: 8px;
  padding: 10px;
  line-height: 1.65;
  resize: vertical;
}

.send-variable-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
}

.send-variable-row > span {
  margin-right: 2px;
  color: #708083;
  font-size: 10px;
}

.send-variable-row button {
  height: 25px;
  padding: 0 7px;
  border: 1px solid #d5e3df;
  border-radius: 4px;
  background: var(--brand-bg-soft, #F4F8FB);
  color: var(--brand-primary-dark, #1F4E79);
  cursor: pointer;
  font-size: 10px;
}

.send-preview {
  background: #f8fbfa;
}

.send-preview > strong {
  display: block;
  overflow: hidden;
  margin-top: 15px;
  color: #38524e;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.send-preview > p {
  min-height: 150px;
  margin-top: 9px;
  color: #5d6e70;
  font-size: 12px;
  line-height: 1.75;
  white-space: pre-wrap;
}

.send-preview-meta {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px dashed #d6e0dd;
  color: #6a827d;
  font-size: 10px;
  line-height: 1.55;
}

.send-preview-meta svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--teal);
}

.send-review-modal {
  width: min(1040px, calc(100vw - 32px));
  height: min(820px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  gap: 0;
  padding: 0;
  border: 1px solid var(--card-line, #D7E3EC);
  border-radius: 8px;
  overflow: hidden;
}

.send-review-header {
  display: flex;
  flex: 0 0 auto;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px 16px;
  border-bottom: 1px solid var(--line);
}

.send-review-kicker {
  margin-bottom: 4px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
}

.send-review-header h3 {
  color: #314547;
  font-size: 17px;
}

.send-review-header p {
  margin-top: 4px;
  color: #718083;
  font-size: 11px;
}

.send-review-context {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: #f8fbfa;
}

/* 每个发送字段为「标签 + 控件」左右两列的小网格，行内垂直居中；
   宽度不足时整块字段按顺序换行，不横向挤压、不重叠。 */
.send-review-context > div {
  display: grid;
  flex: 1 1 340px;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 8px;
  min-width: 0;
}

.send-review-context span {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  color: #5B7186;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.send-review-context select {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--brand-silver, #B8C7D6);
  border-radius: 7px;
  background: #fff;
  color: var(--brand-text, #16324A);
  /* 建联发送的国家/联系人选择项需要清晰可读。 */
  font-size: 14px;
  font-weight: 600;
}

.send-review-context .btn {
  grid-column: 3;
  grid-row: 1;
  flex: 0 0 auto;
  height: 36px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
}

/* 收件邮箱与公司信息共用一条次行，过长时省略，不与选择行重叠。 */
.send-context-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  grid-column: 2;
  grid-row: 2;
  min-width: 0;
}

.send-context-meta strong,
.send-context-meta small {
  flex: 0 1 auto;
  min-width: 0;
}

.send-review-context strong,
.send-review-context small {
  overflow: hidden;
  color: #3b5150;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.send-review-context small {
  color: #758486;
  font-size: 10px;
}

.send-review-context > div > small {
  grid-column: 2;
  grid-row: 2;
}

.send-review-records {
  flex: 0 0 auto;
  height: 36px;
  margin-left: auto;
  border-radius: 6px;
  white-space: nowrap;
}

.send-review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.send-review-editor,
.send-review-preview {
  min-width: 0;
  padding: 18px 20px 20px;
}

.send-review-editor {
  border-right: 1px solid var(--line);
}

.send-review-preview {
  display: flex;
  flex-direction: column;
  background: #f8fbfa;
}

.send-review-template {
  margin: 0 0 16px;
  border-color: #dbe7e3;
  background: var(--brand-bg, #FAFCFE);
}

.send-review-editor .modal-input,
.send-review-preview .modal-input,
.send-review-editor .modal-textarea,
.send-review-preview .modal-textarea {
  border-color: #c9d5d1;
  color: #3b5051;
  font-size: 12px;
}

.send-review-editor .modal-input {
  height: 35px;
  margin-top: 0;
}

.send-review-preview .modal-input {
  height: 35px;
  margin-top: 0;
  background: #fff;
}

.send-review-editor .modal-textarea,
.send-review-preview .modal-textarea {
  min-height: 196px;
  margin-top: 10px;
  line-height: 1.65;
}

.send-review-preview .modal-textarea {
  flex: 1 1 auto;
  min-height: 260px;
  background: #fff;
}

.send-review-attachments {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.send-review-attachments > span {
  color: #657775;
  font-size: 10px;
  font-weight: 800;
}

.send-review-attachments small {
  color: #7b8b8d;
  font-size: 10px;
}

.attachment-translate-button {
  min-height: 28px;
  padding: 0 9px;
  font-size: 10px;
}

.attachment-translate-button:disabled {
  cursor: not-allowed;
  opacity: .5;
}

.send-review-attachment-button {
  height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  border: 1px solid #cddfd9;
  border-radius: 5px;
  background: rgba(59, 130, 166, .08);
  color: var(--brand-primary-dark, #1F4E79);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.send-review-attachment-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.send-schedule-panel {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  background: #f7faff;
}

.send-schedule-panel > div:first-child {
  min-width: 0;
}

.send-schedule-panel strong,
.send-schedule-panel small {
  display: block;
}

.send-schedule-panel strong {
  color: var(--ink);
  font-size: 12px;
}

.send-schedule-panel small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.send-schedule-panel .send-schedule-timezone {
  color: var(--brand-primary-dark, #1F4E79);
  font-weight: 700;
}

.send-schedule-fields {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
}

.send-schedule-fields select,
.send-schedule-fields input {
  height: 34px;
  border: 1px solid var(--brand-silver, #B8C7D6);
  border-radius: 5px;
  background: #fff;
  color: #29415a;
  font-size: 11px;
}

.send-schedule-fields select {
  min-width: 112px;
  padding: 0 26px 0 9px;
}

.send-schedule-fields input {
  min-width: 186px;
  padding: 0 9px;
}

.send-schedule-fields select:focus,
.send-schedule-fields input:focus {
  border-color: var(--brand-primary, #3B82A6);
  box-shadow: 0 0 0 3px rgba(59, 130, 166, .14);
  outline: 0;
}

.send-schedule-fields input:disabled {
  background: #eef3f8;
  color: #8a9aaa;
}

.send-review-actions {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: #fff;
}

/* 标题与内容、控件之间、区块之间的统一间距梯度：12 / 10 / 16。 */
.send-review-editor .send-section-label,
.send-review-preview .send-section-label {
  margin-bottom: 12px;
}

/* 主操作按钮区：固定右下角、同排不换行，尺寸与层级统一。 */
.send-review-modal .send-review-actions {
  flex-wrap: nowrap;
  gap: 10px;
}

.send-review-modal .send-review-actions .btn {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
}

.send-review-modal .send-review-actions .btn.primary {
  background: var(--brand-primary-dark, #1F4E79);
  border-color: var(--brand-primary-dark, #1F4E79);
  color: #fff;
}

.send-review-modal .send-review-actions .btn.ghost {
  background: #fff;
  border: 1px solid var(--brand-silver, #B8C7D6);
  color: var(--brand-text, #16324A);
}

.send-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 14px;
  align-items: stretch;
}

.send-lower-grid > .workspace-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.send-settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 16px 16px;
}

.send-settings-grid label {
  display: grid;
  gap: 6px;
  color: #5f6f71;
  font-size: 11px;
  font-weight: 800;
}

.send-followup-setting {
  display: flex !important;
  align-items: center;
  gap: 7px;
  min-height: 35px;
  padding: 0 10px;
  border: 1px solid #dbe5e2;
  border-radius: 6px;
  background: var(--brand-bg, #FAFCFE);
  color: #536466 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

.send-followup-setting input {
  accent-color: var(--teal);
}

.send-result-panel .panel-head {
  flex: 0 0 auto;
  padding-bottom: 12px;
}

.send-result-panel .send-stats {
  padding-top: 0;
}

.send-result-empty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 14px;
  padding: 10px 12px;
  border-left: 3px solid var(--teal);
  background: rgba(59, 130, 166, .08);
  color: #5d7973;
  font-size: 11px;
  line-height: 1.55;
}

.send-result-empty svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.send-primary-bar {
  position: sticky;
  bottom: 10px;
  z-index: 12;
  box-shadow: 0 4px 14px rgba(27, 74, 67, 0.08);
}

.send-primary-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.send-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.95fr);
  gap: 18px;
}

.channel-grid {
  display: grid;
  gap: 0;
}

.channel-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 15px 20px;
  border-bottom: 1px solid #edf0ee;
}

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

.channel-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
}

.channel-icon.email {
  background: var(--blue-soft);
  color: var(--blue);
}

.channel-icon.tg {
  background: var(--teal-soft);
  color: var(--teal);
}

.channel-icon.whatsapp {
  background: #ecfdf3;
  color: #16834a;
}

.channel-icon svg {
  width: 17px;
  height: 17px;
}

.channel-row h3 {
  color: var(--ink);
  font-size: 13px;
}

.channel-row p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.lead-send-list {
  display: grid;
  align-content: start;
}

.send-lead-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 15px 20px;
  border-bottom: 1px solid #edf0ee;
}

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

.send-lead-row strong {
  color: #344244;
  font-size: 13px;
}

.send-lead-row p {
  margin-top: 4px;
  color: #718083;
  font-size: 11px;
}

.send-lead-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.send-lead-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 0;
  padding: 0;
}

.send-lead-row.has-contact-picker {
  grid-template-columns: minmax(0, 1fr) minmax(142px, 190px) auto;
}

.send-lead-select {
  min-width: 0;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 13px 15px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.send-lead-remove {
  min-width: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 10px;
  border: 0;
  border-left: 1px solid #e1e9e6;
  background: #fff;
  color: #72817e;
  cursor: pointer;
  font-size: 11px;
}

.send-lead-remove:hover {
  background: #fff4f2;
  color: #b4483b;
}

.send-lead-remove svg {
  width: 14px;
  height: 14px;
}

.send-contact-picker {
  display: grid;
  align-content: center;
  gap: 4px;
  min-width: 0;
  padding: 8px 10px;
  border-left: 1px solid #e1e9e6;
  background: var(--brand-bg, #FAFCFE);
  color: #617571;
  font-size: 10px;
  font-weight: 800;
}

.send-contact-picker select {
  width: 100%;
  min-width: 0;
  height: 27px;
  padding: 0 23px 0 7px;
  border: 1px solid #dbe6e1;
  border-radius: 4px;
  background: #fff;
  color: #344244;
  font-size: 11px;
}

.lead-profile-modal {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(11, 31, 58, .34);
}

.lead-profile-dialog {
  width: min(720px, 100%);
  max-height: min(680px, calc(100vh - 32px));
  overflow: auto;
  padding: 18px;
  border: 1px solid var(--brand-border, #D7E3EC);
  border-radius: 14px;
  background: var(--brand-bg, #fff);
  box-shadow: 0 20px 60px rgba(15, 79, 175, .2);
}

.lead-profile-head,
.lead-profile-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.lead-profile-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--brand-border, #D7E3EC);
}

.lead-profile-head span,
.lead-profile-summary span,
.lead-profile-contact dt,
.lead-profile-foot span {
  color: var(--muted, #5B7186);
  font-size: 11px;
}

.lead-profile-head h2 {
  margin: 5px 0 0;
  max-width: 100%;
  overflow: hidden;
  color: var(--brand-text, #16324A);
  font-size: 20px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-profile-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  padding: 16px 0;
}

.lead-profile-summary div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.lead-profile-summary strong,
.lead-profile-summary a {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: var(--brand-text, #16324A);
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-profile-section {
  display: grid;
  gap: 9px;
  padding-top: 14px;
  border-top: 1px solid var(--brand-border, #D7E3EC);
}

.lead-profile-contact {
  display: grid;
  gap: 8px;
  padding: 11px 12px;
  border: 1px solid var(--brand-border, #D7E3EC);
  border-radius: 9px;
  background: var(--brand-bg-soft, #F4F8FB);
}

.lead-profile-contact > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.lead-profile-contact > div:first-child strong {
  color: var(--brand-text, #16324A);
  font-size: 12px;
}

.lead-profile-contact > div:first-child span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted, #5B7186);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-profile-contact dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.lead-profile-social,
.lead-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.lead-profile-actions .icon-text-button {
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--brand-border, #D7E3EC);
  border-radius: 8px;
  color: var(--brand-primary-dark, #1F4E79);
  background: #fff;
  cursor: pointer;
}

.lead-profile-actions .icon-text-button:hover {
  border-color: var(--brand-primary, #3B82A6);
  background: var(--brand-bg-soft, #F4F8FB);
}

.lead-profile-contact dl div {
  display: grid;
  gap: 2px;
}

.lead-profile-contact dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: var(--brand-text, #16324A);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lead-profile-gaps {
  margin: 12px 0 0;
  max-height: 42px;
  overflow: hidden;
  color: #8a5a00;
  font-size: 11px;
  line-height: 1.5;
  text-overflow: ellipsis;
}

.lead-profile-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--brand-border, #D7E3EC);
}

.send-contact-picker select:focus {
  outline: 2px solid rgba(31, 128, 112, .2);
  border-color: var(--teal);
}

.send-attachment-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px solid #e7ece9;
}

.send-attachment-row > span:first-child {
  color: #617073;
  font-size: 11px;
  font-weight: 800;
}

.send-attachment-button {
  height: 29px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid #cfdad6;
  border-radius: 5px;
  background: #fff;
  color: #16324A;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.send-attachment-button:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.send-attachment-button input {
  display: none;
}

.send-attachment-button svg,
.send-attachment-name svg {
  width: 13px;
  height: 13px;
}

.send-attachment-row small {
  color: #71817e;
  font-size: 10px;
}

.send-attachment-name {
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  border-radius: 4px;
  background: rgba(59, 130, 166, .06);
  color: var(--brand-primary-dark, #1F4E79);
  font-size: 10px;
  font-weight: 700;
}

.send-attachment-name button {
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.send-attachment-name button svg {
  width: 12px;
  height: 12px;
}

.send-telegram-login {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 16px 10px;
  padding: 9px 12px;
  border: 1px solid #d9e4e0;
  border-radius: 6px;
  background: #f8fbfa;
}

.send-telegram-login:last-of-type {
  margin-bottom: 14px;
}

.send-login-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.send-login-copy > div {
  min-width: 0;
}

.send-login-copy strong,
.send-login-copy small {
  display: block;
}

.send-login-copy strong {
  color: #16324A;
  font-size: 12px;
}

.send-login-copy small {
  margin-top: 2px;
  color: #71817e;
  font-size: 10px;
  line-height: 1.45;
}

.send-login-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  margin-top: 0;
  border-radius: 50%;
  background: #98a8a5;
}

.send-login-dot.is-ready {
  background: #16836f;
}

.send-login-dot.is-warning {
  background: #cf8b20;
}

.send-login-dot.is-error {
  background: #c14f45;
}

.send-login-dot.is-checking {
  background: #3a78ab;
  animation: login-status-pulse 1.1s ease-in-out infinite;
}

.send-telegram-login .btn {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 0 9px;
  font-size: 11px;
}

.send-telegram-login .btn svg {
  width: 14px;
  height: 14px;
}

.send-social-check-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.send-social-check-actions .btn {
  white-space: nowrap;
}
.send-social-check-status {
  color: var(--brand-text-muted, #5b7186);
  font-size: 12px;
  min-height: 18px;
}

@keyframes login-status-pulse {
  50% { opacity: 0.35; }
}

.send-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 14px 16px;
}

.send-stat {
  padding: 10px 12px;
  border-left: 3px solid var(--brand-primary, #3B82A6);
  background: rgba(59, 130, 166, .08);
}

.send-stat:nth-child(2) {
  border-left-color: var(--brand-secondary, #5FA8D3);
  background: rgba(95, 168, 211, .10);
}

.send-stat:nth-child(3) {
  border-left-color: var(--amber);
  background: #fffaf0;
}

.send-stat:nth-child(4) {
  border-left-color: var(--green);
  background: var(--green-soft);
}

.send-stat label {
  color: #657376;
  font-size: 11px;
}

.send-stat strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 18px;
}

.followup-project-context {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 12px;
}

.followup-context-item {
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-right: 1px solid var(--line);
}

.followup-context-item:last-child {
  border-right: 0;
}

.followup-context-item > svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--teal);
}

.followup-context-item span {
  min-width: 0;
}

.followup-context-item label,
.followup-context-item strong {
  display: block;
}

.followup-context-item label {
  color: var(--muted);
  font-size: 11px;
}

.followup-context-item strong {
  overflow: hidden;
  margin-top: 2px;
  color: #334244;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.followup-overview-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.followup-metric {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #e3ebf2;
  border-left: 3px solid #93a3ad;
  border-radius: 7px;
  background: #f8fafc;
}

.followup-metric.is-teal {
  border-left-color: var(--teal);
  background: rgba(59, 130, 166, .07);
}

.followup-metric.is-blue {
  border-left-color: var(--blue);
  background: rgba(95, 168, 211, .10);
}

.followup-metric.is-amber {
  border-left-color: var(--amber);
  background: #fefaf3;
}

.followup-metric.is-danger {
  border-left-color: var(--danger);
  background: #fef7f6;
}

.followup-metric label,
.followup-metric small {
  display: block;
  overflow: hidden;
  color: #718083;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.followup-metric strong {
  display: block;
  margin: 4px 0 3px;
  color: #314447;
  font-size: 18px;
}

.followup-workbench {
  display: grid;
  grid-template-columns: minmax(220px, 27fr) minmax(0, 45fr) minmax(240px, 28fr);
  align-items: stretch;
  gap: 14px;
}

.followup-list-panel,
.followup-thread-panel,
.followup-judgment-panel {
  position: static;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.followup-list-panel .panel-head,
.followup-judgment-panel .panel-head {
  flex: 0 0 auto;
  padding-bottom: 12px;
}

.followup-tabs {
  padding: 12px 15px;
}

.followup-browse-controls {
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: var(--brand-bg, #FAFCFE);
}

.followup-country-field {
  display: grid;
  gap: 6px;
}

.followup-country-field span {
  color: #657673;
  font-size: 10px;
  font-weight: 800;
}

.followup-country-field select {
  width: 100%;
  height: 36px;
  padding: 0 32px 0 10px;
  border: 1px solid #cfdbd7;
  border-radius: 5px;
  background: #fff;
  color: #344744;
  font-size: 12px;
}

.followup-browse-controls .followup-tabs {
  padding: 10px 14px;
  border-bottom: 0;
  background: transparent;
}

.followup-conversation-row {
  width: 100%;
  align-items: start;
  padding: 13px 14px;
  border: 0;
  border-bottom: 1px solid #edf0ee;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.followup-conversation-row:hover {
  background: var(--brand-bg-soft, #F4F8FB);
}

.followup-conversation-row.is-selected {
  background: rgba(59, 130, 166, .06);
  box-shadow: inset 3px 0 0 var(--teal);
}

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

.followup-conversation-row .conversation-copy strong,
.followup-conversation-row .conversation-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.followup-unread-badge {
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 7px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--brand-primary, #3B82A6);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  vertical-align: middle;
}

.followup-conversation-row .conversation-copy small {
  margin-top: 3px;
  color: #718083;
  font-size: 10px;
}

.followup-conversation-row .conversation-copy p {
  -webkit-line-clamp: 2;
}

.followup-conversation-row .conversation-meta {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.followup-channel-badge,
.followup-intent-chip,
.followup-stage-chip {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.followup-channel-badge.email {
  background: var(--blue-soft);
  color: var(--brand-primary-dark, #1F4E79);
}

.followup-channel-badge.telegram {
  background: var(--teal-soft);
  color: var(--brand-primary-dark, #1F4E79);
}

.followup-channel-badge.whatsapp {
  background: #ecfdf3;
  color: #16834a;
}

.followup-intent-chip.is-high {
  background: #fff0dc;
  color: #9c5a05;
}

.followup-intent-chip.is-medium {
  background: #e7f5eb;
  color: #267348;
}

.followup-intent-chip.is-low {
  background: #eef1f2;
  color: #68777a;
}

.followup-intent-chip.is-pending {
  background: #f3eefb;
  color: #6c4e9e;
}

.followup-stage-chip {
  background: #eef1f2;
  color: #5f7072;
}

.followup-stage-chip.is-connected {
  background: #eef1f2;
  color: #5f7072;
}

.followup-stage-chip.is-read {
  background: rgba(59, 130, 166, .10);
  color: var(--brand-primary-dark, #1F4E79);
}

.followup-stage-chip.is-replied {
  background: #e7f5eb;
  color: #267348;
}

.followup-stage-chip.is-quote {
  background: #fff0dc;
  color: #9c5a05;
}

.followup-stage-chip.is-sample {
  background: #e9f5f2;
  color: #237367;
}

.followup-stage-chip.is-payment {
  background: #f3eefb;
  color: #6c4e9e;
}

.followup-stage-chip.is-won {
  background: #e4f6d9;
  color: #3d772d;
}

.followup-stage-chip.is-paused {
  background: #f1eeee;
  color: #806b6b;
}

.followup-conversation-row .conversation-meta > span {
  display: flex;
  align-items: center;
}

.followup-thread-head {
  align-items: flex-start;
}

.followup-thread-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
}

.followup-thread-kicker svg {
  width: 13px;
  height: 13px;
}

.followup-thread-list {
  display: grid;
  gap: 10px;
  align-content: start;
  flex: 1 1 auto;
  max-height: 520px;
  min-height: 240px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px 16px 16px;
  background: var(--brand-bg, #FAFCFE);
}

.followup-thread-message {
  max-width: 86%;
  padding: 11px 12px;
  border: 1px solid #dfe6e4;
  border-radius: 7px;
  background: #fff;
}

.followup-thread-message.sent {
  justify-self: end;
  border-color: rgba(59, 130, 166, .28);
  background: rgba(59, 130, 166, .08);
}

.followup-thread-message.reply {
  justify-self: start;
  border-color: #dbe4f1;
  background: rgba(59, 130, 166, .08);
}

.followup-message-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #708083;
  font-size: 10px;
  font-weight: 800;
}

.followup-message-meta span {
  color: #8b9799;
  font-weight: 500;
}

.followup-thread-message p {
  margin-top: 6px;
  color: #405255;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
}

.followup-attachment {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  margin-top: 9px;
  padding: 4px 6px;
  border: 1px solid #d8e3e0;
  border-radius: 4px;
  color: #4A6B8C;
  font-size: 10px;
}

.followup-attachment svg,
.followup-thread-footer svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

.followup-thread-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  color: #718083;
  font-size: 10px;
}

.followup-thread-footer span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.followup-decision {
  margin: 0 14px 12px;
  padding: 11px 12px;
  border: 1px solid var(--card-line, #D7E3EC);
  border-radius: 7px;
  background: var(--brand-bg-soft, #F4F8FB);
}

.followup-decision-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #4e6264;
  font-size: 11px;
  font-weight: 800;
}

.followup-decision > p {
  margin-top: 7px;
  color: #708083;
  font-size: 11px;
  line-height: 1.55;
}

.followup-intent-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px;
  margin-top: 10px;
}

.followup-intent-actions button {
  height: 28px;
  border: 1px solid #d7e2df;
  border-radius: 4px;
  background: #fff;
  color: #657578;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.followup-intent-actions button.is-active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.followup-stage-field {
  display: grid;
  gap: 6px;
  margin: 0 14px 12px;
  color: #5b6c6e;
  font-size: 11px;
  font-weight: 800;
}

.followup-stage-field select {
  width: 100%;
  height: 34px;
  padding: 0 8px;
  border: 1px solid #ccd8d5;
  border-radius: 5px;
  outline: 0;
  background: #fff;
  color: #3d5153;
  font-size: 12px;
}

.followup-stage-field select:focus,
.followup-ai-section textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(8, 119, 107, 0.12);
}

.followup-state-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 0 14px 12px;
}

.followup-state-grid span {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 0 7px;
  border: 1px solid #e0e6e4;
  border-radius: 5px;
  background: var(--brand-bg, #FAFCFE);
  color: #819093;
  font-size: 10px;
}

.followup-state-grid span.is-done {
  border-color: #b9dccc;
  background: #eff9f3;
  color: #2e7452;
}

.followup-state-grid svg {
  width: 13px;
  height: 13px;
}

.followup-ai-section,
.followup-action-section {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.followup-ai-section > p {
  margin-top: 8px;
  color: #708083;
  font-size: 11px;
  line-height: 1.6;
}

.followup-ai-section textarea {
  width: 100%;
  min-height: 136px;
  margin-top: 10px;
  padding: 9px;
  border: 1px solid #ccd8d5;
  border-radius: 5px;
  outline: 0;
  color: #3d5153;
  font: inherit;
  font-size: 12px;
  line-height: 1.65;
  resize: vertical;
}

.followup-ai-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 9px;
}

.followup-ai-actions .btn {
  justify-content: center;
  padding: 0 8px;
  font-size: 11px;
}

.followup-action-section {
  display: grid;
  gap: 7px;
}

.followup-action-section .send-section-label {
  margin-bottom: 3px;
}

.followup-action-section > button {
  height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid #d7e2df;
  border-radius: 5px;
  background: #fff;
  color: #16324A;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
}

.followup-action-section > button:hover {
  border-color: var(--teal);
  background: rgba(59, 130, 166, .08);
  color: var(--brand-primary-dark, #1F4E79);
}

.followup-action-section svg {
  width: 14px;
  height: 14px;
  color: var(--teal);
}

.followup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 18px;
}

.followup-tabs {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--brand-bg, #FAFCFE);
}

.followup-tabs button {
  height: 30px;
  padding: 0 11px;
  border: 1px solid #d5dfdc;
  border-radius: var(--radius-control);
  background: #fff;
  color: #5c6c6d;
  cursor: pointer;
  font-size: 12px;
}

.followup-tabs button.is-active {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.conversation-list {
  display: grid;
  align-content: start;
}

.followup-list-panel .conversation-list {
  flex: 1 1 auto;
  min-height: 200px;
  max-height: 480px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.followup-thread-panel > div,
.followup-judgment-panel > div {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.followup-thread-panel .workspace-empty,
.followup-judgment-panel .workspace-empty {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.conversation-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #edf0ee;
}

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

.conversation-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #eaf0ef;
  color: #275e57;
  font-size: 12px;
  font-weight: 800;
}

.conversation-row strong {
  display: block;
  overflow: hidden;
  color: #334243;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-row p {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 4px;
  color: #718082;
  font-size: 12px;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.conversation-meta {
  color: #819093;
  font-size: 11px;
  text-align: right;
}

.conversation-meta .new-dot {
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-left: 5px;
  border-radius: 50%;
  background: var(--teal);
}

.followup-side {
  align-self: start;
}

.followup-actions {
  display: grid;
  gap: 0;
}

.followup-action {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 15px 18px;
  border-bottom: 1px solid #edf0ee;
  color: #475658;
  font-size: 13px;
}

.followup-action:last-child {
  border-bottom: 0;
}

.followup-action svg {
  width: 17px;
  height: 17px;
  color: var(--teal);
}

.workspace-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  max-width: 1420px;
  margin: auto auto 0;
  padding: 10px 0 0;
  border-top: 1px solid var(--line);
  color: #778486;
  font-size: 11px;
}

.workspace-footer span:first-child {
  color: #445557;
  font-weight: 800;
}

/* 首页页脚仅居中保留公司名称。 */
.workspace-footer.is-home {
  justify-content: center;
}

.workspace-footer.is-home .workspace-footer-extra {
  display: none;
}

.workspace-empty {
  padding: 28px 20px;
  color: #819093;
  font-size: 13px;
  line-height: 1.7;
  text-align: center;
}

.workspace-empty-state {
  min-height: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  padding: 26px 20px;
  border: 1px dashed #cad8d4;
  border-radius: 7px;
  background: var(--brand-bg, #FAFCFE);
  text-align: center;
}

.workspace-empty-state > svg {
  width: 24px;
  height: 24px;
  color: var(--teal);
}

.workspace-empty-state > div {
  min-width: 0;
  max-width: 420px;
}

.workspace-empty-state strong {
  display: block;
  color: #435759;
  font-size: 13px;
}

.workspace-empty-state p {
  margin-top: 4px;
  color: #758487;
  font-size: 12px;
  line-height: 1.65;
}

.workspace-empty-state .btn {
  width: max-content;
  max-width: 100%;
  margin-top: 10px;
}

.workspace-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 300;
  display: none;
  max-width: 360px;
  padding: 13px 15px;
  border: 1px solid #9fcdbf;
  border-radius: 7px;
  background: #effaf4;
  box-shadow: var(--shadow);
  color: #1e6142;
  font-size: 13px;
}

.workspace-toast.is-visible {
  display: block;
}

.company-credit-layout{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.6fr);gap:18px}.company-credit-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:4px}.company-credit-buttons .btn{min-height:40px;justify-content:center}.company-credit-result-panel{min-width:0}.company-credit-history-panel{display:none;margin:0 0 14px;padding:10px;border:1px solid #d7e3ec;border-radius:10px;background:#fff;max-height:250px;overflow:auto}.company-credit-history-panel.is-open{display:grid;gap:8px}.company-credit-empty{display:grid;gap:6px;place-items:center;min-height:180px;padding:24px;border:1px dashed #cad8d4;border-radius:10px;background:#f8fbfc;color:#5b7186;text-align:center}.company-credit-empty strong{color:#16324a}.company-credit-company{display:grid;gap:3px;margin-bottom:12px;padding:12px;border:1px solid #d7e3ec;border-radius:10px;background:#f4f8fb}.company-credit-company span{color:#5b7186;font-size:12px}.company-credit-company strong{color:#16324a;font-size:15px}.company-credit-company small{color:#5b7186;font-size:11px}.company-credit-result-tabs{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:12px}.company-credit-result-tab{padding:7px 10px;border:1px solid #c6d9e7;border-radius:7px;background:#fff;color:#1f4e79;font:inherit;font-size:12px;cursor:pointer}.company-credit-result-tab:hover:not(:disabled),.company-credit-result-tab.is-active{border-color:#3b82a6;background:#e8f3f8}.company-credit-result-tab:disabled{color:#9aaab4;cursor:not-allowed;background:#f6f8f9}.company-credit-reply{padding:12px;border:1px solid #d7e3ec;border-radius:10px;background:#fff}.company-credit-reply-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.company-credit-reply-head h3{margin:0;color:#16324a;font-size:14px}.company-credit-reply-head span{color:#5b7186;font-size:11px}@media(max-width:900px){.company-credit-layout{grid-template-columns:1fr}.company-credit-buttons{grid-template-columns:1fr}}

.legacy-staging,
.footer {
  display: none !important;
}

.modal-box {
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: 0 20px 54px rgba(22, 41, 39, 0.2);
}

.modal-box h3,
.modal-box h4 {
  color: var(--ink);
}

.modal-box .btn.primary {
  background: var(--teal);
}

.modal-box .btn.ghost {
  border: 1px solid var(--line);
  background: #fff;
  color: #3d4d50;
}

.modal-box .modal-input:focus,
.modal-box .modal-textarea:focus,
.modal-box .template-select:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 119, 107, 0.12);
}

/* ===== 首页：项目管理栏 / 地图工具栏与概览 / 步骤条 / 顶栏与侧边栏增强 ===== */

.home-manage-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 20px;
}

.home-manage-fields {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1 1 480px;
}

.home-manage-identity {
  min-width: 0;
  padding: 0 18px 0 0;
}

.home-manage-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.home-manage-identity strong {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-manage-identity small {
  display: block;
  overflow: hidden;
  max-width: 320px;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-manage-field {
  min-width: 0;
  padding: 0 16px;
  border-left: 1px solid var(--line);
}

.home-manage-field label {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.home-manage-field strong {
  display: block;
  overflow: hidden;
  max-width: 180px;
  margin-top: 2px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-manage-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.home-manage-actions input {
  width: 200px;
  height: var(--control-h);
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}

.home-project-switcher {
  height: var(--control-h);
  max-width: 180px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}

.home-map-section .panel-head {
  flex-wrap: wrap;
}

.home-map-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.home-map-filter {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
}

.home-map-filter button {
  height: 30px;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.home-map-filter button:last-child {
  border-right: 0;
}

.home-map-filter button.is-active {
  background: var(--teal);
  color: #fff;
}

.home-map-search {
  width: 150px;
  height: 30px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
}

.home-map-zoom {
  display: flex;
  gap: 4px;
}

/* 地图为首页主体：无白色卡片包裹，舞台铺满顶栏以下剩余空间。 */
.home-map-hero {
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
  height: auto;
  min-height: 460px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-map-hero .home-world-map-stage {
  position: absolute;
  inset: 0;
  height: 100%;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.home-map-hero .home-world-map-empty {
  position: absolute;
  inset: auto 12px 44px;
  display: block;
  width: max-content;
  max-width: calc(100% - 24px);
  margin: 0 auto;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(250, 252, 254, .88);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

/* 安全留白：矢量与点位层铺满舞台，保证世界地图等比完整显示（contain）。 */
.home-map-hero .home-world-map-vector,
.home-map-hero .home-world-map-points {
  inset: 0;
  width: auto;
  height: auto;
}

.home-map-hero .home-world-map-vector svg {
  width: 100%;
  height: 100%;
}

/* 半透明浮层：仅浮层自身响应点击，其余区域事件穿透给地图。 */
.home-map-float {
  position: absolute;
  z-index: 6;
  border: 1px solid rgba(215, 227, 236, .92);
  border-radius: 10px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 2px 4px rgba(31, 78, 121, .06), 0 8px 20px rgba(31, 78, 121, .08);
}

.home-map-tools-float {
  top: 12px;
  right: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 999px;
}

.home-map-title h2 {
  color: var(--ink);
  font-size: 14px;
}

.home-map-title p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.home-workflow-slot {
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  overflow-x: auto;
  max-width: calc(100% - 28px);
  padding: 6px;
  border-radius: 999px;
  scrollbar-width: thin;
}

/* 点击国家后的详情小卡：半透明浮层，关闭后自动隐藏。 */
.home-map-detail-float {
  top: 14px;
  right: 14px;
  width: min(280px, calc(100% - 28px));
  padding: 10px;
}

.home-map-detail-float:empty {
  display: none;
}

.home-map-detail-float .home-world-map-detail {
  position: static;
  width: auto;
  padding: 4px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-workflow-slot .workflow-nav {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

/* 首页作为工作流入口：页面纵向弹性布局，地图吃满剩余高度与宽度。 */
.workspace-page[data-page="home"].is-active {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-width: none;
  padding: 0;
}

.workspace-page[data-page="home"] .home-manage-bar {
  flex: 0 0 auto;
  margin: 10px 12px 0;
}

.workspace-page[data-page="home"] .home-map-hero {
  margin-top: 4px;
}

.home-map-overview {
  top: 64px;
  right: 12px;
  bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 300px;
  min-width: 0;
  padding: 12px 14px;
  overflow-y: auto;
  background: rgba(255, 255, 255, .9);
  scrollbar-width: thin;
}

.home-map-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.home-map-metrics > div {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
}

.home-map-metrics span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.home-map-metrics strong {
  display: block;
  margin-top: 3px;
  color: var(--teal-deep);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.home-map-metrics .is-warn {
  border-color: rgba(245, 158, 11, .4);
  background: #FFF7E6;
}

.home-map-metrics .is-warn strong {
  color: #9a3412;
}

.home-map-rank-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.home-map-rank-head h3 {
  color: var(--ink);
  font-size: 12px;
}

.home-map-rank-head span {
  color: var(--muted);
  font-size: 11px;
}

.home-map-rank {
  display: grid;
  gap: 6px;
}

.home-map-rank button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
}

.home-map-rank button:hover {
  border-color: var(--teal);
  background: rgba(59, 130, 166, .06);
}

.home-map-rank b {
  color: var(--teal-deep);
  font-size: 11px;
  font-weight: 700;
}

.home-map-rank-empty {
  color: var(--muted);
  font-size: 12px;
}

.home-map-detail-slot .home-world-map-detail {
  position: static;
  display: grid;
  gap: 6px;
  width: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
  box-shadow: none;
  backdrop-filter: none;
}

.home-map-detail-slot .home-world-map-detail > div {
  margin-top: 2px;
}

.home-map-all {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

.home-world-map-hover {
  pointer-events: auto;
}

.home-map-tip-action {
  width: 100%;
  height: 24px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--teal-deep);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.home-map-tip-action:hover {
  border-color: var(--teal);
  background: rgba(59, 130, 166, .08);
}

/* 客户数量深浅：无数据浅灰蓝，1 位浅蓝，2-3 位品牌蓝，4 位以上深蓝 */
.home-world-map-vector svg path.has-customers-1 {
  fill: #8FBAD3;
}

.home-world-map-vector svg path.has-customers-2 {
  fill: #3B82A6;
}

.home-world-map-vector svg path.has-customers-3 {
  fill: #1F4E79;
}

.home-world-map-vector svg path[class*="has-customers"]:hover,
.home-world-map-vector svg path[class*="has-customers"].is-hover-country {
  fill: #16324A;
}

.home-manage-bar {
  position: relative;
  overflow: hidden;
}

.home-manage-bar > * {
  position: relative;
  z-index: 1;
}

.home-flow-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 12px 16px;
  list-style: none;
}

.home-flow-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
}

.home-flow-item + .home-flow-item::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -13px;
  width: 12px;
  height: 1px;
  background: var(--line);
}

.home-flow-number {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid var(--brand-silver, #B8C7D6);
  border-radius: 50%;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
}

.home-flow-number svg {
  width: 12px;
  height: 12px;
}

.home-flow-copy {
  min-width: 0;
}

.home-flow-copy strong {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-flow-copy small {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow: hidden;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-flow-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber, #F59E0B);
}

.home-flow-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  height: 26px;
  margin-left: auto;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--teal-deep);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.home-flow-action svg {
  width: 12px;
  height: 12px;
}

.home-flow-action:hover {
  border-color: var(--teal);
  background: rgba(59, 130, 166, .08);
}

.home-flow-item.is-done .home-flow-number {
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.home-flow-item.is-current {
  border-color: var(--teal);
  background: rgba(59, 130, 166, .08);
}

.home-flow-item.is-current .home-flow-number {
  border-color: var(--teal);
  color: var(--teal-deep);
}

.todo-item {
  grid-template-columns: 32px minmax(0, 1fr) auto;
}

.todo-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--teal-deep);
  font-size: 11px;
  font-weight: 700;
}

.todo-action svg {
  width: 12px;
  height: 12px;
}

.topbar-project-switcher {
  gap: 6px;
  cursor: pointer;
}

.topbar-project-switcher select {
  height: 28px;
  max-width: 160px;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 12px;
}

.topbar-project-switcher > svg:last-child {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.topbar-account {
  position: relative;
  display: none;
}

body.ws-logged .topbar-account {
  display: block;
}

.topbar-account-toggle {
  width: 34px;
  padding: 0;
}

.topbar-account-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 140;
  display: none;
  min-width: 168px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--elev-2);
}

.topbar-account-menu.is-open {
  display: grid;
  gap: 2px;
}

.topbar-account-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  text-align: left;
}

.topbar-account-menu button:hover {
  background: rgba(59, 130, 166, .08);
  color: var(--teal-deep);
}

.topbar-account-menu svg {
  width: 15px;
  height: 15px;
  color: var(--teal);
}

body.ws-logged .topbar-actions > #btnAgentUsage,
body.ws-logged .topbar-actions > #btnBillingBalance,
body.ws-logged .topbar-actions > #btnRegister {
  display: none !important;
}

.workspace-shell {
  grid-template-columns: minmax(0, 1fr);
}

/* 横向六步工作流导航：页面标题下方、主要内容上方的紧凑步骤条。 */
.workflow-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  margin: 12px 0 14px;
  padding: 8px;
  border: 1px solid var(--card-line, #D7E3EC);
  border-radius: var(--radius-card, 10px);
  background: var(--surface, #FAFCFE);
  scrollbar-width: thin;
}

.workflow-step {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--muted, #5B7186);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

/* 步骤之间的流程连接箭头。 */
.workflow-step + .workflow-step {
  margin-left: 18px;
}

.workflow-step + .workflow-step::before {
  content: "";
  position: absolute;
  left: -14px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-top: 1.5px solid #A9C2D4;
  border-right: 1.5px solid #A9C2D4;
  transform: translateY(-50%) rotate(45deg);
}

.workflow-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(59, 130, 166, .12);
  color: var(--brand-primary-dark, #1F4E79);
  font-size: 12px;
  font-weight: 800;
}

.workflow-step-number svg {
  width: 11px;
  height: 11px;
}

.workflow-step.is-done {
  color: var(--brand-primary-dark, #1F4E79);
}

.workflow-step.is-done .workflow-step-number {
  background: var(--brand-primary, #3B82A6);
  color: #fff;
}

.workflow-step.is-active {
  background: var(--brand-primary, #3B82A6);
  border-color: var(--brand-primary, #3B82A6);
  color: #fff;
  box-shadow: 0 2px 8px rgba(31, 78, 121, .28);
}

.workflow-step.is-active .workflow-step-number {
  background: rgba(255, 255, 255, .22);
  color: #fff;
}

.workflow-step:hover:not(.is-active) {
  background: rgba(59, 130, 166, .1);
  color: var(--brand-primary-dark, #1F4E79);
}

.workflow-nav-hint {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  margin-right: 6px;
  padding: 0 10px 0 6px;
  color: var(--muted, #5B7186);
  font-size: 12px;
  white-space: nowrap;
}

/* 面包屑按钮：项目首页 / 当前页，突出可点；统一置于顶栏品牌右侧。 */
.topbar-crumb {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-left: 6px;
}

.page-crumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
}

.page-crumb-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 1px solid var(--brand-silver, #B8C7D6);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-primary-dark, #1F4E79);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.page-crumb-btn svg {
  width: 14px;
  height: 14px;
}

.page-crumb-btn:hover {
  border-color: var(--brand-primary, #3B82A6);
  background: rgba(59, 130, 166, .08);
}

.page-crumb-btn.is-current {
  background: var(--brand-primary, #3B82A6);
  border-color: var(--brand-primary, #3B82A6);
  color: #fff;
}

.page-crumb-btn.is-current:hover {
  background: var(--brand-primary-dark, #1F4E79);
  border-color: var(--brand-primary-dark, #1F4E79);
}

.page-crumb-sep {
  color: var(--muted, #5B7186);
  font-size: 12px;
}

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

.sidebar-collapse {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: .7;
}

.sidebar-collapse:hover {
  opacity: 1;
  background: rgba(59, 130, 166, .12);
}

.sidebar-collapse svg {
  width: 14px;
  height: 14px;
}

.sidebar-step[hidden] {
  display: none;
}

/* ===== 客户背调 / 企业核验 ===== */

.ent-search {
  position: relative;
  display: flex;
  align-items: center;
}

.ent-search-icon {
  position: absolute;
  left: 12px;
  display: grid;
  place-items: center;
  color: var(--muted);
  pointer-events: none;
}

.ent-search-icon svg {
  width: 16px;
  height: 16px;
}

.ent-search input {
  width: 100%;
  height: 48px;
  padding: 0 38px 0 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  transition: border-color .14s ease, box-shadow .14s ease;
}

.ent-search input::placeholder {
  color: #9AA9B5;
}

.ent-search input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(59, 130, 166, .16);
}

.ent-search-clear {
  position: absolute;
  right: 8px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.ent-search-clear:hover {
  background: rgba(59, 130, 166, .12);
  color: var(--teal-deep);
}

.ent-search-clear svg {
  width: 13px;
  height: 13px;
}

.ent-search-clear[hidden] {
  display: none;
}

.ent-segmented {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ent-segmented button {
  flex: 1 1 0;
  height: 36px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}

.ent-segmented button:last-child {
  border-right: 0;
}

.ent-segmented button.is-active {
  background: var(--teal);
  color: #fff;
}

.ent-segmented button:hover:not(.is-active) {
  background: rgba(59, 130, 166, .08);
  color: var(--teal-deep);
}

.due-diligence-form {
  gap: 12px;
}

.due-diligence-field-hint {
  margin: -4px 0 2px;
  color: #6b7d8b;
  font-size: 12px;
  line-height: 1.5;
}

.dd-intake-panel .panel-body {
  padding: 16px 20px;
}

.dd-report-empty {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 8px;
  min-height: 200px;
  max-height: 300px;
  padding: 24px 20px;
  color: var(--muted);
  text-align: center;
}

.dd-report-empty > svg {
  width: 26px;
  height: 26px;
  color: var(--teal);
}

.dd-report-empty strong {
  color: var(--ink);
  font-size: 14px;
}

.dd-report-empty p {
  max-width: 360px;
  font-size: 12px;
}

.dd-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin-top: 4px;
}

.dd-preview-tags span {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--canvas);
  color: var(--muted);
  font-size: 11px;
}

.credit-cards-hint {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(245, 158, 11, .35);
  border-radius: 8px;
  background: rgba(245, 158, 11, .08);
  color: #9a3412;
  font-size: 11px;
}

.company-credit-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.credit-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color .14s ease, box-shadow .14s ease, background-color .14s ease;
}

.credit-card:hover:not(:disabled) {
  border-color: var(--teal);
  box-shadow: var(--elev-2);
}

.credit-card-icon {
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(59, 130, 166, .10);
  color: var(--teal-deep);
}

.credit-card-icon svg {
  width: 16px;
  height: 16px;
}

.credit-card-copy strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
}

.credit-card-copy small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.credit-card-state {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f3f2;
  color: #7b8789;
  font-size: 10px;
  font-weight: 800;
}

.credit-card-state svg {
  width: 11px;
  height: 11px;
}

.credit-card-action {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: max-content;
  height: 28px;
  margin-top: 8px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.credit-card-action svg {
  width: 12px;
  height: 12px;
}

.credit-card:hover:not(:disabled) .credit-card-action {
  background: #2f6e8c;
}

.credit-card.is-done .credit-card-action {
  border-color: rgba(22, 163, 74, .5);
  background: rgba(22, 163, 74, .10);
  color: #166534;
}

.credit-card.is-running .credit-card-action {
  border-color: var(--teal);
  background: rgba(59, 130, 166, .10);
  color: var(--teal-deep);
}

.credit-card.is-failed .credit-card-action {
  border-color: rgba(220, 38, 38, .5);
  background: rgba(220, 38, 38, .08);
  color: #991b1b;
}

.credit-card:disabled .credit-card-action {
  border-color: var(--brand-silver, #B8C7D6);
  background: #eef2f6;
  color: #5B7186;
}

.credit-card.is-done {
  border-color: rgba(22, 163, 74, .45);
  background: rgba(22, 163, 74, .05);
}

.credit-card.is-done .credit-card-state {
  background: rgba(22, 163, 74, .12);
  color: #166534;
}

.credit-card.is-running .credit-card-state {
  background: rgba(59, 130, 166, .14);
  color: var(--teal-deep);
}

.credit-card.is-failed {
  border-color: rgba(220, 38, 38, .45);
  background: rgba(220, 38, 38, .04);
}

.credit-card.is-failed .credit-card-state {
  background: rgba(220, 38, 38, .12);
  color: #991b1b;
}

.credit-card.is-locked {
  cursor: not-allowed;
}

.credit-card:disabled {
  cursor: not-allowed;
  box-shadow: none;
  background: var(--canvas);
}

.credit-card:disabled .credit-card-action {
  color: var(--muted);
}

.credit-card:disabled .credit-card-copy strong,
.credit-card:disabled .credit-card-copy small {
  opacity: .85;
}

.company-credit-result-tabs {
  gap: 6px;
}

.company-credit-result-tab {
  border-radius: 999px;
}

.company-credit-result-tab.is-done {
  border-color: rgba(22, 163, 74, .45);
  background: rgba(22, 163, 74, .08);
  color: #166534;
}

.company-credit-result-tab.is-running {
  border-color: var(--teal);
  background: rgba(59, 130, 166, .10);
  color: var(--teal-deep);
}

.company-credit-result-tab.is-failed {
  border-color: rgba(220, 38, 38, .45);
  background: rgba(220, 38, 38, .06);
  color: #991b1b;
}

.company-credit-result-tab[aria-current="true"] {
  box-shadow: 0 0 0 2px rgba(59, 130, 166, .18);
}

.company-credit-failed {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px solid rgba(220, 38, 38, .35);
  border-radius: 8px;
  background: rgba(220, 38, 38, .05);
  color: #991b1b;
  font-size: 12px;
}

.company-credit-failed > svg {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 1px;
}

.company-credit-failed strong {
  display: block;
  font-size: 12px;
}

.company-credit-failed p {
  margin: 2px 0 6px;
  color: #7f1d1d;
  font-size: 11px;
  line-height: 1.5;
}

.due-diligence-history-panel,
.company-credit-history-panel {
  position: static;
  max-height: 260px;
}

/* ===== 建联发送页四段式布局 ===== */

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

.send-section-index {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 7px;
  border-radius: 50%;
  background: rgba(59, 130, 166, .12);
  color: var(--teal-deep);
  font-size: 11px;
  font-weight: 800;
  vertical-align: 2px;
}

.send-section-head-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.send-setting {
  display: grid;
  gap: 6px;
  color: #5f6f71;
  font-size: 11px;
  font-weight: 800;
}

.send-setting-channel {
  display: none;
}

.send-setting-login {
  grid-column: 1 / -1;
}

.send-setting-login .send-telegram-login {
  margin: 0;
}

.send-pre-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px 16px;
}

.send-pre-item {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--canvas);
}

.send-pre-item span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.send-pre-item strong {
  display: block;
  margin-top: 3px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.send-stats-total {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.send-stats-channels {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
}

.send-collapse {
  border-top: 1px solid var(--line);
}

.send-collapse summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  list-style: none;
}

.send-collapse summary::-webkit-details-marker {
  display: none;
}

.send-collapse summary::before {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform .14s ease;
}

.send-collapse[open] summary::before {
  transform: rotate(45deg);
}

.send-collapse-note {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.send-collapse .send-scheduled-list,
.send-collapse .send-history-actions {
  padding: 4px 16px 14px;
}

.send-history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.send-primary-bar {
  align-items: center;
  gap: 14px;
}

.send-back-button {
  flex: 0 0 auto;
}

.send-primary-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.send-primary-copy strong {
  color: #15574f;
  font-size: 13px;
}

.send-primary-copy p {
  margin-top: 2px;
  color: #528078;
  font-size: 11px;
}

/* ===== 产品分析页工作台布局 ===== */

.analysis-page-head {
  margin-bottom: 14px;
}

.analysis-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.analysis-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.analysis-breadcrumb button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  font-size: 12px;
}

.analysis-breadcrumb button:hover {
  text-decoration: underline;
}

.analysis-breadcrumb strong {
  color: var(--ink);
  font-weight: 600;
}

.analysis-head-title {
  margin-top: 8px;
}

.analysis-head-title h1 {
  margin: 0;
  color: var(--ink);
  font-size: 20px;
  line-height: 1.25;
}

.analysis-head-title p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.analysis-context-bar {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  overflow: hidden;
}

.analysis-context-field {
  flex: 1 1 180px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 10px 16px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.analysis-context-field:last-child {
  border-right: 0;
}

.analysis-context-field:hover {
  background: rgba(59, 130, 166, .05);
}

.analysis-context-field label {
  color: var(--muted);
  font-size: 11px;
}

.analysis-context-field strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.analysis-context-field strong.is-warn,
.analysis-context-field.is-warn strong {
  color: #9a3412;
}

.analysis-context-field.is-warn {
  background: rgba(245, 158, 11, .06);
}

.analysis-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  margin-top: 16px;
}

.analysis-workbench-main {
  min-width: 0;
  display: grid;
  gap: 16px;
}

.analysis-workbench-side {
  position: sticky;
  top: calc(var(--topbar-h) + 12px);
  min-width: 0;
}

.analysis-layout {
  display: grid;
  grid-template-columns: minmax(0, 64fr) minmax(240px, 36fr);
  gap: 16px;
  align-items: start;
}

.analysis-check-body {
  display: grid;
  gap: 12px;
  align-content: start;
}

.analysis-config-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.analysis-config-main {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 16px 20px;
  border-right: 0;
  width: min(100%, 780px);
  margin: 0 auto;
}

.analysis-check-card > .panel-head {
  padding-top: 9px;
  padding-bottom: 9px;
}

.analysis-check-card .analysis-config-main {
  margin-left: 0;
  margin-right: 0;
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: left;
}

.analysis-market-action {
  display: flex;
  justify-content: flex-start;
  margin-top: 8px;
}


.analysis-config-side {
  display: grid;
  gap: 9px;
  align-content: start;
  padding: 14px 20px;
  background: var(--canvas);
}

.analysis-config-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
}

.analysis-check-card .analysis-config-footer {
  justify-content: flex-start;
  align-items: flex-start;
  padding-top: 8px;
  padding-bottom: 8px;
}

.analysis-config-footer .analysis-dev-status {
  flex: 1 1 320px;
}

.analysis-config-footer .analysis-config-actions {
  padding: 0;
  border-top: 0;
}

.analysis-config-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}

.analysis-check-card .analysis-config-actions {
  justify-content: flex-start;
  padding-top: 6px;
}

.analysis-config-next-step {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.analysis-dev-status {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.analysis-dev-dot {
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: #9aa9b5;
}

.analysis-dev-status strong {
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
}

.analysis-dev-status em {
  font-style: normal;
}

.analysis-dev-status.is-dev .analysis-dev-dot {
  background: var(--green, #16A34A);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .14);
}

.analysis-dev-status.is-dev strong {
  color: #166534;
}

.analysis-dev-status.is-view .analysis-dev-dot {
  background: var(--amber, #F59E0B);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, .14);
}

.analysis-dev-status.is-view strong {
  color: #9a3412;
}

.analysis-range-slot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.analysis-range-slot .research-date-field {
  display: flex;
  align-items: center;
  gap: 4px;
}

.analysis-range-slot .research-date-field > span:first-child {
  color: var(--muted);
  font-size: 10px;
}

.analysis-range-slot .research-date-field:first-child::after {
  content: "至";
  margin-left: 4px;
  color: var(--muted);
  font-size: 10px;
}

.analysis-range-slot .research-date-selects {
  display: flex;
  gap: 4px;
}

.analysis-range-slot select {
  height: 28px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font-size: 11px;
}

.analysis-hs-hint.is-ready {
  color: #166534;
}

.analysis-hs-hint.is-warn {
  color: #9a3412;
}

.analysis-range-slot .research-date-field > span:first-child {
  display: none;
}

.analysis-research-entry {
  align-items: stretch;
}

.analysis-research-copy {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.analysis-research-copy h3 {
  color: var(--ink);
  font-size: 14px;
}

.analysis-research-copy p {
  margin: 0;
}

.analysis-research-copy small {
  color: var(--muted);
  font-size: 11px;
}

.analysis-research-flag {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(59, 130, 166, .12);
  color: var(--teal-deep);
  font-size: 10px;
  font-weight: 800;
}

.analysis-research-action {
  align-items: flex-end;
}

/* 智能体面板结构 */
.analysis-agent-panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - var(--topbar-h) - 24px);
  overflow: hidden;
}

.analysis-agent-head {
  flex: 0 0 auto;
}

.trade-mcp-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.analysis-agent-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green, #16A34A);
  box-shadow: 0 0 0 3px rgba(22, 163, 74, .15);
}

.analysis-agent-menu-wrap {
  position: relative;
}

.analysis-agent-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 60;
  display: none;
  min-width: 132px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--elev-2);
}

.analysis-agent-menu.is-open {
  display: grid;
  gap: 2px;
}

.analysis-agent-menu button {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  padding: 7px 9px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  text-align: left;
}

.analysis-agent-menu button:hover {
  background: rgba(59, 130, 166, .08);
  color: var(--teal-deep);
}

.analysis-agent-menu svg {
  width: 14px;
  height: 14px;
  color: var(--teal);
}

.trade-mcp-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 16px 10px;
}

.trade-mcp-quick button {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--teal-deep);
  cursor: pointer;
  font-size: 11px;
}

.trade-mcp-quick button:hover {
  border-color: var(--teal);
  background: rgba(59, 130, 166, .08);
}

.trade-mcp-status {
  min-height: 14px;
  padding: 0 16px 10px;
  color: var(--muted);
  font-size: 11px;
}

.analysis-agent-panel.is-fullscreen {
  position: fixed;
  inset: calc(var(--topbar-h) + 12px) 24px 24px;
  z-index: 150;
  max-height: none;
}

.analysis-agent-panel.is-fullscreen .trade-mcp-messages {
  max-height: none;
}

/* Keep the data assistant embedded in the product-analysis page. */
.analysis-workbench > .analysis-agent-panel {
  grid-column: 1 / -1;
  min-width: 0;
}

/* ===== DESIGN.md 视觉升级：仅视觉令牌与装饰，不改结构与功能 ===== */

/* 面板/区块标题的公司色强调条 */
.panel-head h2,
.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-head h2::before,
.section-heading h2::before {
  content: "";
  flex: 0 0 auto;
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--teal, #3B82A6);
}

/* 数值排版：公司深色 + 等宽数字 */
.metric-value,
.prospect-metric strong,
.followup-metric strong,
.send-stat strong,
.analysis-result strong,
.prospect-ai-summary-metrics strong,
.home-world-map-list-row > span b,
.prospect-selection-copy > div:first-child strong {
  color: var(--teal-deep, #1F4E79);
  font-variant-numeric: tabular-nums;
}

/* 空状态图标芯片 */
.workspace-empty-state > svg,
.analysis-decision-empty > svg,
.prospect-detail-empty svg,
.prospect-ai-summary-empty > svg {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 10px;
  background: rgba(95, 168, 211, .16);
  color: var(--teal-deep, #1F4E79);
}

/* 交互过渡 */
.workspace-page .btn,
.workspace-main .btn,
.send-channel-tabs button,
.followup-tabs button,
.icon-text-button,
.sidebar-link,
.prospect-card,
.analysis-country-card {
  transition: background-color var(--transition), border-color var(--transition), color var(--transition), box-shadow var(--transition);
}

/* 交互卡片悬停抬升 */
.prospect-card:hover,
.analysis-country-card:hover {
  border-color: var(--brand-silver, #B8C7D6);
  box-shadow: var(--elev-2);
}

/* 标签页/分段控件悬停浅底，选中保持实色 */
.send-channel-tabs button:hover:not(.is-active),
.followup-tabs button:hover:not(.is-active),
.prospect-filter-body #typeFilter button:hover:not(.active),
.filter-type button:hover:not(.active),
.research-period button:hover:not(.active) {
  border-color: var(--teal, #3B82A6);
  background: rgba(59, 130, 166, .10);
  color: var(--teal-deep, #1F4E79);
}

/* 图标容器圆角统一 */
.todo-icon,
.channel-icon {
  border-radius: 8px;
}

/* 工作流序号芯片 */
.workflow-index {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(59, 130, 166, .12);
  color: var(--teal-deep, #1F4E79);
  font-size: 11px;
}

/* 首页横幅装饰光晕（公司辅助色） */
.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(620px 260px at 84% -10%, rgba(95, 168, 211, .38), transparent 70%);
  pointer-events: none;
}

.hero-copy {
  z-index: 2;
}

/* 弹窗圆角 */
.modal-box,
.send-review-modal {
  border-radius: var(--radius-modal);
}

/* 品牌化滚动条与选区 */
.workspace-main,
.workspace-panel,
.modal-box {
  scrollbar-width: thin;
  scrollbar-color: var(--brand-silver, #B8C7D6) transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background: var(--brand-silver, #B8C7D6);
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--teal, #3B82A6);
  background-clip: padding-box;
}

::selection {
  background: rgba(59, 130, 166, .22);
}

@media (max-width: 1120px) {
  .page-heading {
    display: block;
  }

  .page-heading > * {
    min-width: 0;
    max-width: 100%;
  }

  .page-heading-actions {
    width: 100%;
    margin-top: 14px;
  }

  .sidebar-label,
  .sidebar-link span,
  .sidebar-step,
  .sidebar-status span {
    display: none;
  }

  .sidebar-link {
    justify-content: center;
    padding: 0;
  }

  .sidebar-footer {
    padding: 16px 0 4px;
  }

  .sidebar-status {
    justify-content: center;
  }

  .topbar-brand {
    min-width: auto;
  }

  .topbar-nav span {
    display: none;
  }

  .top-nav {
    width: 40px;
    justify-content: center;
    padding: 0;
  }

  .topbar-project {
    max-width: 180px;
  }

  .analysis-layout,
  .analysis-research-grid,
  .analysis-chart-grid,
    .analysis-notes-grid,
    .analysis-decision-summary,
    .prospect-layout,
    .send-layout,
    .followup-layout,
    .home-dashboard-grid,
    .home-world-map-layout {
      grid-template-columns: 1fr;
    }

  .project-context-grid,
  .analysis-project-context,
  .prospect-project-context {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .send-project-context,
  .followup-project-context,
  .prospect-summary-grid,
  .followup-overview-grid,
  .send-stats {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .project-context-item,
  .analysis-context-item,
  .prospect-context-item,
  .send-context-item,
  .followup-context-item,
  .prospect-metric {
    border-bottom: 1px solid var(--line);
  }

  .workflow-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .workflow-item:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .workflow-item:nth-child(3n) {
    border-right: 0;
  }

  .workflow-item:nth-child(3n)::after {
    display: none;
  }

  .home-map-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
  }

  .home-map-layout .home-world-map-stage {
    height: 480px;
  }

  .home-map-layout .home-world-map-vector,
  .home-map-layout .home-world-map-points {
    inset: 20px;
  }

  .home-flow-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 0;
  }

  .home-flow-item + .home-flow-item::before {
    display: none;
  }

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

  .analysis-workbench-side {
    position: static;
  }

  .analysis-agent-panel {
    max-height: 520px;
  }

    .home-world-map-list {
      border-top: 1px solid var(--line);
      border-left: 0;
    }

  .send-workbench,
  .send-lower-grid {
    grid-template-columns: 1fr;
  }

  .send-selected-panel {
    position: static;
  }

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

  .followup-judgment-panel {
    position: static;
    grid-column: 1 / -1;
  }

  .lead-tray {
    position: static;
  }

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

  .prospect-detail-panel {
    position: fixed;
    top: var(--topbar-h);
    right: 0;
    bottom: 0;
    z-index: 140;
    width: min(420px, 94vw);
    max-height: none;
    transform: translateX(102%);
    transition: transform .18s ease;
    box-shadow: var(--elev-3);
  }

  .prospect-detail-panel.is-open {
    transform: none;
  }

  .prospect-detail-close {
    display: inline-flex;
  }

  .prospect-detail-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .prospect-detail-body .prospect-company-summary,
  .prospect-detail-body .prospect-detail-add,
  .prospect-detail-body .prospect-value-panel,
  .prospect-detail-body .prospect-angle {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .send-review-context > div,
  .send-review-context > div:first-child {
    flex: 1 1 100%;
    grid-template-columns: 60px minmax(0, 1fr);
  }

  .send-review-context > div > .btn {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }
}

@media (max-width: 760px) {
  .send-review-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .send-review-context {
    gap: 8px;
  }

  .send-review-context > div,
  .send-review-context > div:first-child {
    width: 100%;
  }

  .send-review-context select {
    width: 100%;
  }

  .send-review-grid {
    grid-template-columns: 1fr;
  }

  .send-review-editor {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .send-review-preview .modal-textarea {
    min-height: 200px;
  }

  .header.workspace-topbar {
    height: 52px;
    padding: 0 14px;
    gap: 10px;
  }

  .brand-title,
  .topbar-nav,
  .topbar-project,
  .header.workspace-topbar #phoneDisplay {
    display: none !important;
  }

  .workspace-shell {
    display: block;
    min-height: calc(100vh - 52px);
  }

  .app-sidebar {
    position: sticky;
    top: 52px;
    z-index: 100;
    width: 100%;
    height: 46px;
    flex-direction: row;
    justify-content: space-around;
    padding: 4px 8px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid #264842;
  }

  .app-sidebar .sidebar-label,
  .app-sidebar .sidebar-footer {
    display: none;
  }

  .app-sidebar nav {
    width: 100%;
    display: flex;
    justify-content: space-around;
  }

  .app-sidebar .sidebar-link {
    width: 44px;
    min-height: 40px;
  }

  .workspace-main {
    padding: 18px 14px 32px;
  }

  .page-heading {
    display: block;
    margin-bottom: 18px;
  }

  .page-heading-actions {
    margin-top: 14px;
  }

  .page-heading h1 {
    font-size: 19px;
  }

  .home-hero {
    min-height: 320px;
    padding: 24px 20px;
  }

  .home-manage-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .home-manage-fields {
    flex: 0 0 auto;
    gap: 10px 14px;
  }

  .home-manage-identity {
    flex-basis: 100%;
    padding: 0;
  }

  .home-manage-field {
    flex: 1 1 42%;
    border-left: 0;
    padding: 0;
  }

  .home-manage-actions {
    width: 100%;
  }

  .home-manage-actions input {
    flex: 1 1 160px;
    width: auto;
  }

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

  .home-map-layout .home-world-map-stage {
    height: 320px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .home-map-layout .home-world-map-vector,
  .home-map-layout .home-world-map-points {
    inset: 12px;
  }

  .home-map-tools {
    width: 100%;
  }

  .home-map-search {
    flex: 1 1 120px;
    width: auto;
  }

  .home-flow-strip {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .home-flow-item {
    flex-wrap: wrap;
  }

  .home-flow-item + .home-flow-item::before {
    display: none;
  }

  .analysis-head-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .analysis-config-grid {
    grid-template-columns: 1fr;
  }

  .analysis-config-main {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .analysis-context-field {
    flex: 1 1 45%;
    border-bottom: 1px solid var(--line);
  }

  .analysis-context-field:nth-child(2n) {
    border-right: 0;
  }

  .project-stepper .stepper-item {
    display: none;
  }

  .project-stepper .stepper-item.is-active,
  .project-stepper .stepper-item:has(+ .stepper-item.is-active),
  .project-stepper .stepper-item.is-active + .stepper-item {
    display: flex;
  }

  .home-hero-image {
    width: 100%;
    opacity: 0.16;
  }

  .hero-copy h1 {
    font-size: 24px;
  }

  .hero-project-form {
    display: grid;
    grid-template-columns: 1fr;
    flex-basis: 100%;
    margin-left: 0;
  }

  .hero-project-form .btn,
  .hero-project-form .btn.secondary {
    width: 100%;
  }

  .workflow-strip,
  .metric-grid,
  .analysis-result-grid,
  .analysis-project-context,
  .project-context-grid {
    grid-template-columns: 1fr;
  }

  .send-project-context {
    grid-template-columns: 1fr 1fr;
  }

  .followup-project-context {
    grid-template-columns: 1fr 1fr;
  }

  .followup-context-item {
    min-height: 74px;
    border-bottom: 1px solid var(--line);
  }

  .followup-context-item:nth-child(2n) {
    border-right: 0;
  }

  .followup-context-item:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .followup-overview-grid {
    grid-template-columns: 1fr 1fr;
  }

  .followup-metric:last-child {
    grid-column: 1 / -1;
  }

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

  .followup-list-panel,
  .followup-judgment-panel {
    position: static;
    grid-column: auto;
  }

  .followup-thread-list {
    min-height: 320px;
    max-height: 520px;
  }

  .followup-thread-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .send-context-item {
    min-height: 74px;
    border-bottom: 1px solid var(--line);
  }

  .send-context-item:nth-child(2n) {
    border-right: 0;
  }

  .send-context-item:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .send-channel-tabs {
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .send-channel-tabs button {
    flex: 0 0 auto;
  }

  .send-editor-grid,
  .send-settings-grid {
    grid-template-columns: 1fr;
  }

  .send-editor {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .send-primary-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .send-primary-bar .btn {
    width: 100%;
    justify-content: center;
  }

  .send-primary-actions {
    width: 100%;
    flex-direction: column;
  }

  .send-schedule-panel,
  .send-schedule-fields {
    align-items: stretch;
    flex-direction: column;
  }

  .send-schedule-fields,
  .send-schedule-fields select,
  .send-schedule-fields input {
    width: 100%;
    min-width: 0;
  }

  .home-world-map-stage {
    min-height: 0;
    aspect-ratio: 3 / 2;
  }

  .home-world-map-point {
    width: 27px;
    height: 27px;
  }

  .send-scheduled-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 12px;
  }

  .send-scheduled-status {
    justify-self: start;
  }

  .send-scheduled-cancel {
    justify-self: end;
  }

  .workspace-empty-state {
    min-height: 164px;
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .workspace-empty-state .btn {
    width: 100%;
  }

  .workflow-item {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .workflow-item:not(:last-child)::after {
    display: none;
  }

  .workflow-item:last-child {
    border-bottom: 0;
  }

  .project-context-item {
    min-height: 76px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-context-item:last-child {
    border-bottom: 0;
  }

  .analysis-context-item {
    min-height: 66px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .analysis-context-item:last-child {
    border-bottom: 0;
  }

  .chart-card-head {
    display: block;
  }

  .chart-card-head span {
    display: block;
    margin-top: 4px;
    text-align: left;
  }

  .recommendation-row {
    grid-template-columns: 32px minmax(0, 1fr);
    padding: 14px 16px;
  }

  .recommendation-row .icon-text-button {
    grid-column: 2;
    justify-self: start;
  }

  .analysis-next-step {
    position: static;
    border-radius: 7px;
  }

  .home-proof {
    grid-template-columns: 1fr;
  }

  .proof-copy {
    padding: 26px 22px;
  }

  .proof-flow {
    min-height: auto;
    padding: 26px 22px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .scenario-list {
    grid-template-columns: 1fr 1fr;
  }

  .scenario-list div:nth-child(2) {
    border-right: 0;
  }

  .scenario-list div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .home-cta {
    display: grid;
    padding: 26px 22px;
  }

  .home-cta .btn {
    width: 100%;
  }

  .panel-head,
  .panel-body {
    padding: 16px;
  }

  .analysis-conditions {
    border-left: 0;
    border-top: 3px solid var(--amber);
  }

  .next-step-bar {
    display: grid;
  }

  .prospect-filter-bar {
    align-items: stretch;
  }

  .prospect-filter-bar input,
  .prospect-filter-bar select {
    width: 100%;
  }

  .prospect-filter-bar #typeFilter {
    width: 100%;
    overflow-x: auto;
  }

  .prospect-filter-bar #typeFilter button {
    min-width: max-content;
  }

  .prospect-table-panel .table-wrap {
    margin: 12px 16px 16px;
  }

  .prospect-project-context {
    grid-template-columns: 1fr 1fr;
  }

  .analysis-country-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .analysis-country-actions {
    width: 100%;
    justify-content: space-between;
  }

  .prospect-context-item:nth-child(2n) {
    border-right: 0;
  }

  .prospect-context-item:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

  .prospect-detail-panel {
    width: 100vw;
    max-height: none;
  }

  .prospect-detail-body {
    overflow-y: auto;
  }

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

  .prospect-filter-label {
    grid-column: 1 / -1;
  }

  .prospect-filter-body #prospectTypeSlot,
  .prospect-filter-body #prospectCountrySlot,
  .prospect-filter-body #prospectCompanySearch,
  .prospect-filter-body #prospectProductKeyword,
  .prospect-filter-body .prospect-check-list,
  .prospect-filter-body select {
    grid-column: 1 / -1;
  }

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

  .prospect-ai-summary-head {
    align-items: flex-start;
  }

  .prospect-ai-summary-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prospect-ai-summary-metrics > div:nth-child(2n) {
    border-right: 0;
  }

  .prospect-ai-summary-metrics > div:nth-child(-n + 2) {
    border-bottom: 1px solid #dceae5;
  }

  .prospect-metric:nth-child(2n) {
    border-right: 0;
  }

  .prospect-metric:nth-child(-n + 4) {
    border-bottom: 1px solid var(--line);
  }

  .prospect-card {
    grid-template-columns: 1fr;
  }

  .prospect-card-actions {
    flex-direction: row;
    justify-content: flex-start;
    padding: 10px 14px;
    border-top: 1px solid #edf0ee;
    border-left: 0;
  }

  .prospect-card-actions .btn {
    min-width: 0;
  }

  .prospect-detail-body {
    grid-template-columns: 1fr;
  }

  .prospect-detail-body .prospect-company-summary,
  .prospect-detail-body .prospect-detail-add,
  .prospect-detail-body .prospect-value-panel,
  .prospect-detail-body .prospect-angle {
    grid-column: auto;
  }

  .prospect-selection-bar,
  .prospect-selection-copy {
    display: grid;
  }

  .prospect-selection-bar {
    position: static;
  }

  .prospect-selection-copy {
    gap: 10px;
  }

  .prospect-selection-actions {
    width: 100%;
    flex-wrap: wrap;
  }

  .prospect-selection-actions .btn {
    flex: 1;
    justify-content: center;
  }

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

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

  .send-primary-bar {
    flex-wrap: wrap;
  }

  .send-back-button {
    flex: 1 1 100%;
    order: 3;
  }

  .send-primary-copy {
    flex: 1 1 100%;
    order: 1;
  }

  .send-primary-actions {
    flex: 1 1 100%;
    order: 2;
  }

  .company-credit-cards {
    grid-template-columns: 1fr;
  }

  .ent-search input {
    height: 44px;
  }

  .channel-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .channel-row .btn {
    grid-column: 2;
    justify-self: start;
    margin-top: 3px;
  }

  .send-lead-row {
    grid-template-columns: 1fr;
  }

  .send-lead-row.has-contact-picker {
    grid-template-columns: 1fr;
  }

  .send-contact-picker {
    border-top: 1px solid #e1e9e6;
    border-left: 0;
  }

  .send-lead-remove {
    min-height: 38px;
    border-top: 1px solid #e1e9e6;
    border-left: 0;
  }

  .conversation-row {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .conversation-meta {
    grid-column: 2;
    text-align: left;
  }

  .workspace-footer {
    display: grid;
    gap: 5px;
    margin-top: 26px;
  }
}

.due-diligence-layout{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(0,1.6fr);gap:18px}.due-diligence-form{display:grid;gap:10px}.due-diligence-status{color:#5b7186;font-size:12px}.due-diligence-status:empty{display:none}.due-diligence-head-actions{display:inline-flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end}.due-diligence-history-panel{display:none;margin:0 0 14px;padding:10px;border:1px solid #d7e3ec;border-radius:10px;background:#fff;max-height:250px;overflow:auto}.due-diligence-history-panel.is-open{display:grid;gap:8px}.due-diligence-history-empty{color:#5b7186;font-size:12px;line-height:1.6}.due-diligence-history-item{display:grid;grid-template-columns:minmax(0,1fr) 28px;gap:6px;align-items:stretch}.due-diligence-history-item>button:first-child{min-width:0;padding:9px 10px;border:1px solid #d7e3ec;border-radius:8px;background:#f4f8fb;text-align:left;cursor:pointer}.due-diligence-history-item>button:first-child:hover{border-color:#5fa8d3;background:#edf7fb}.due-diligence-history-item strong,.due-diligence-history-item span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.due-diligence-history-item strong{color:#16324a;font-size:12px}.due-diligence-history-item span{margin-top:3px;color:#5b7186;font-size:11px}.due-diligence-history-delete{display:grid;place-items:center;width:28px;min-height:100%;border:1px solid #d7e3ec;border-radius:8px;background:#fff;color:#5b7186;cursor:pointer}.due-diligence-history-delete:hover{color:#dc2626;border-color:rgba(220,38,38,.35);background:#fff5f5}.due-diligence-history-delete svg{width:14px;height:14px}.due-diligence-history-delete svg{width:14px;height:14px}.due-diligence-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:16px}.due-diligence-summary div{padding:12px;border:1px solid var(--brand-border,#d7e3ec);border-radius:10px;background:var(--brand-bg-soft,#f4f8fb)}.due-diligence-summary span,.due-diligence-summary strong{display:block}.due-diligence-summary strong{margin-top:5px;color:#16324a}.due-diligence-summary span{color:#5b7186;font-size:12px}.due-diligence-table-section{margin-top:16px}.due-diligence-table-section h3{margin:0 0 8px;color:#16324a;font-size:14px}.due-diligence-table-section table{width:100%;border-collapse:collapse}.due-diligence-table-section th,.due-diligence-table-section td{padding:9px;border-bottom:1px solid var(--brand-border,#d7e3ec);text-align:left;font-size:12px}.due-diligence-footnote{margin-top:14px;color:#5b7186;font-size:12px}.due-diligence-country-badge{display:inline-flex;align-items:center;gap:4px;margin-left:6px;font-size:15px;line-height:1;cursor:help;vertical-align:middle}.country-name-visible,.due-diligence-country-name,.trade-mcp-country-name{font-size:12px;color:var(--brand-text,#16324a);font-weight:500;line-height:1.4}@media(max-width:900px){.due-diligence-layout{grid-template-columns:1fr}.due-diligence-summary{grid-template-columns:1fr}}

.trade-mcp-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.trade-mcp-history-panel {
  display: none;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid #d7e3ec;
  border-radius: 10px;
  background: #ffffff;
  max-height: 250px;
  overflow: auto;
}

.trade-mcp-history-panel.is-open {
  display: grid;
  gap: 8px;
}

.trade-mcp-history-empty {
  color: #5b7186;
  font-size: 12px;
  line-height: 1.6;
}

.trade-mcp-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 28px;
  gap: 6px;
  align-items: stretch;
}

.trade-mcp-history-item > button:first-child {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #d7e3ec;
  border-radius: 8px;
  background: #f4f8fb;
  text-align: left;
  cursor: pointer;
}

.trade-mcp-history-item > button:first-child:hover {
  border-color: #5fa8d3;
  background: #edf7fb;
}

.trade-mcp-history-item strong,
.trade-mcp-history-item span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trade-mcp-history-item strong {
  color: #16324a;
  font-size: 12px;
}

.trade-mcp-history-item span {
  margin-top: 3px;
  color: #5b7186;
  font-size: 11px;
}

.trade-mcp-history-delete {
  display: grid;
  place-items: center;
  width: 28px;
  min-height: 100%;
  border: 1px solid #d7e3ec;
  border-radius: 8px;
  background: #fff;
  color: #5b7186;
  cursor: pointer;
}

.trade-mcp-history-delete:hover {
  color: #dc2626;
  border-color: rgba(220,38,38,.35);
  background: #fff5f5;
}

.trade-mcp-history-delete svg {
  width: 14px;
  height: 14px;
}

.due-diligence-warnings {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.due-diligence-warnings p {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid rgba(245, 158, 11, .28);
  border-radius: 8px;
  background: #fff8eb;
  color: #8a5a08;
  font-size: 12px;
  line-height: 1.6;
}

.trade-mcp-country-badge{display:inline-flex;align-items:center;gap:4px;line-height:1;font-size:16px;cursor:help;vertical-align:middle}
.billing-balance-button{font-variant-numeric:tabular-nums}
.billing-plan-heading{margin:14px 0 8px;color:var(--brand-text,#16324a);font-size:13px;font-weight:700}
.billing-plan-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-bottom:12px}
.billing-plan{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:13px 14px;border:1px solid var(--brand-border,#d7e3ec);border-radius:10px;background:#fff;color:var(--brand-text,#16324a);cursor:pointer;text-align:left;transition:border-color .15s,box-shadow .15s,transform .15s}
.billing-plan:hover,.billing-plan:focus-visible{border-color:var(--brand-primary,#1e6fa8);box-shadow:0 3px 12px rgba(25,84,125,.12);transform:translateY(-1px);outline:none}
.billing-plan:disabled{cursor:wait;opacity:.65;transform:none}
.billing-plan strong{font-size:18px;line-height:1.1}
.billing-plan span{color:var(--brand-muted,#5b7186);font-size:12px;white-space:nowrap}
.billing-recharge-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:8px 0 14px}
.billing-recharge-summary>div{padding:10px;border:1px solid var(--brand-border,#d7e3ec);border-radius:8px;background:var(--brand-bg-soft,#f4f8fb)}
.billing-recharge-summary span,.billing-recharge-summary strong{display:block}
.billing-recharge-summary span{color:var(--brand-muted,#5b7186);font-size:11px}
.billing-recharge-summary strong{margin-top:4px;color:var(--brand-text,#16324a);font-size:15px;white-space:nowrap}
@media(max-width:700px){.billing-recharge-summary{grid-template-columns:1fr}.billing-plan-grid{grid-template-columns:1fr}}

/* Prospect screening layout: keep long cards inside their own work areas. */
@media (min-width: 1101px) {
  .prospect-workbench {
    grid-template-columns: 280px minmax(0, 1fr) 380px;
    align-items: start;
  }

  .prospect-results {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: calc(100vh - var(--topbar-h) - 110px);
    max-height: calc(100vh - var(--topbar-h) - 110px);
    overflow: hidden;
  }

  .prospect-card-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    grid-auto-rows: max-content;
    align-content: start;
  }

  .prospect-selection-bar {
    position: static;
    z-index: auto;
    flex: 0 0 auto;
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    margin-top: 0;
    border-radius: 0 0 8px 8px;
    box-shadow: none;
  }

  .prospect-selection-copy {
    min-width: 0;
    width: 100%;
    display: grid;
    grid-template-columns: minmax(86px, auto) minmax(86px, auto) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
  }

  .prospect-selection-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    width: 100%;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-top: 8px;
    border-top: 1px solid rgba(184, 218, 211, .7);
  }

  .prospect-lead-mini-list {
    min-width: 0;
    max-width: 100%;
    max-height: 58px;
    overflow-y: auto;
    align-items: center;
  }

  .prospect-selection-bar.is-expanded .prospect-lead-mini-list {
    grid-column: 1 / -1;
    flex-basis: auto;
  }

  .prospect-lead-chip {
    min-width: 0;
    max-width: 150px;
  }

  .prospect-lead-chip b {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .prospect-detail-panel {
    position: sticky;
    top: calc(var(--topbar-h) + 16px);
    align-self: start;
    height: calc(100vh - var(--topbar-h) - 32px);
    max-height: calc(100vh - var(--topbar-h) - 32px);
    min-height: 0;
    overflow: hidden;
  }

  .prospect-detail-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  /* Keep the result list useful at a glance: the first viewport should show
     several companies, while the full profile remains available in the
     detail drawer. */
  .prospect-results {
    height: calc(100vh - var(--topbar-h) - 32px);
    max-height: calc(100vh - var(--topbar-h) - 32px);
  }

  .prospect-results-head {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .prospect-summary-grid {
    min-height: 48px;
  }

  .prospect-metric {
    padding: 7px 9px;
  }

  .prospect-toolbar {
    gap: 5px;
    padding: 6px 10px;
  }

  .prospect-toolbar #typeFilter button {
    padding-left: 6px;
    padding-right: 6px;
  }

  .prospect-toolbar input[type="text"] {
    width: 120px;
  }

  .prospect-toolbar .prospect-sort-control {
    gap: 4px;
  }

  .prospect-toolbar .prospect-sort-control select {
    max-width: 118px;
  }

  .prospect-card-list {
    gap: 6px;
    padding: 8px 10px;
  }

  .prospect-card-main {
    padding: 7px 11px;
  }

  .prospect-selected-marker {
    display: none;
  }

  .prospect-card-title {
    gap: 4px;
  }

  .prospect-card-title strong {
    font-size: 13px;
    line-height: 1.25;
  }

  .prospect-card-hint {
    display: none;
  }

  .prospect-tag-row {
    gap: 4px;
    margin-top: 5px;
  }

  .prospect-products {
    display: none;
  }

  .prospect-signal-row {
    display: none;
  }

  .prospect-card-meta {
    gap: 7px;
    margin-top: 6px;
  }

  .prospect-selection-bar {
    padding: 6px 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .prospect-selection-copy {
    grid-template-columns: auto auto;
    gap: 7px;
  }

  .prospect-selection-copy > div {
    min-width: 0;
  }

  .prospect-selection-copy > div:first-child strong,
  .prospect-selection-copy > div:nth-child(2) strong {
    line-height: 1.05;
  }

  .prospect-selection-actions {
    flex-wrap: nowrap;
    padding-top: 0;
    border-top: 0;
  }

  .prospect-selection-copy > div:first-child strong,
  .prospect-selection-copy > div:nth-child(2) strong {
    font-size: 13px;
  }

  .prospect-selection-actions .btn,
  .prospect-selection-actions .icon-text-button {
    white-space: nowrap;
  }

  .prospect-list-more {
    min-height: 30px;
    padding-top: 0;
    padding-bottom: 0;
  }
}


/* 窄屏：地图浮层改为顺序堆叠，保持地图与导航可用且不横向溢出。 */
@media (max-width: 900px) {
  .home-map-hero {
    display: flex;
    flex-direction: column;
    gap: 10px;
    height: auto;
    min-height: 0;
    padding: 12px;
  }

  .home-map-hero .home-world-map-stage {
    position: relative;
    inset: auto;
    order: 2;
    height: 380px;
    border: 1px solid var(--line);
    border-radius: 10px;
  }

  .home-map-float {
    position: static;
    width: auto;
    transform: none;
  }

  .home-map-tools-float {
    order: 1;
    flex-wrap: wrap;
    border-radius: 12px;
  }

  .home-workflow-slot {
    order: 3;
    right: auto;
    bottom: auto;
    left: auto;
    transform: none;
    max-width: none;
  }

  .home-map-detail-float {
    order: 4;
  }
}

/* 窄屏顶栏面包屑：首页按钮压缩为图标，当前页省略号。 */
@media (max-width: 760px) {
  .topbar-crumb .page-crumb-btn {
    height: 28px;
    padding: 0 10px;
    font-size: 11px;
  }

  .topbar-crumb .page-crumb-btn:first-child span {
    display: none;
  }

  .topbar-crumb .page-crumb-btn:first-child {
    padding: 0 8px;
  }

  .topbar-crumb .page-crumb-btn.is-current {
    max-width: 34vw;
    min-width: 0;
  }

  .topbar-crumb .page-crumb-btn.is-current span {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* —— 建联发送页：状态条 / 列表工具栏 / 多选 / 结果反馈 / 审核弹窗增强 —— */
.send-status-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 10px 16px;
  margin: 0 0 12px;
}

.send-status-copy strong { font-size: 13px; }
.send-status-copy p { margin-top: 2px; color: var(--muted); font-size: 11px; }

.send-status-facts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.send-fact { color: var(--muted); font-size: 12px; }
.send-fact b { color: var(--ink); font-size: 13px; }

.send-channel-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--canvas, #F4F8FB);
  color: var(--muted);
  font-size: 11px;
}

.send-channel-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.send-channel-chip.is-ok { color: var(--green, #16A34A); border-color: currentColor; }
.send-channel-chip.is-wait { color: var(--amber, #F59E0B); border-color: currentColor; }

.send-list-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 16px 10px;
}

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

.send-list-search {
  width: 220px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  outline: 0;
}

.send-selected-count {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.send-lead-row { grid-template-columns: 22px minmax(0, 1fr) auto; }
.send-lead-row.has-contact-picker { grid-template-columns: 22px minmax(0, 1fr) minmax(142px, 190px) auto; }

.send-row-check {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 20px;
}

.send-row-check input {
  width: 15px;
  height: 15px;
  accent-color: var(--teal, #3B82A6);
}

.send-channel-missing {
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px dashed var(--brand-silver, #B8C7D6);
  border-radius: 4px;
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.send-login-guide {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.send-login-guide svg { width: 20px; height: 20px; color: var(--muted); flex: 0 0 auto; }
.send-login-guide strong { display: block; font-size: 13px; }
.send-login-guide p { margin-top: 2px; color: var(--muted); font-size: 11px; }
.send-login-guide .btn { margin-left: auto; flex: 0 0 auto; }

.send-outcome {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 12px;
  font-weight: 600;
}

.send-outcome svg { width: 15px; height: 15px; flex: 0 0 auto; }
.send-outcome-success { color: var(--green, #16A34A); }
.send-outcome-scheduled { color: var(--teal-deep, #1F4E79); }
.send-outcome-error { color: var(--danger, #DC2626); }

.send-template-manage { margin-left: 4px; }

.send-template-manage summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  list-style: none;
}

.send-template-manage summary::-webkit-details-marker { display: none; }
.send-template-manage summary::before { content: "⋯"; font-weight: 800; }

.send-template-admin {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 0 0;
}

.send-review-count {
  margin-left: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.send-translate-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: -4px 0 8px;
  color: var(--muted);
  font-size: 11px;
}

.send-translate-meta span:empty { display: none; }

.send-review-reason {
  flex: 1 1 auto;
  min-width: 0;
  align-self: center;
  color: var(--amber, #B4690E);
  font-size: 11px;
}

.send-review-reason:empty { display: none; }

#emailTo { cursor: pointer; }
#emailTo.is-expanded { white-space: normal; word-break: break-all; }

@media (max-width: 760px) {
  .send-review-modal {
    width: calc(100vw - 12px);
    height: calc(100dvh - 12px);
    max-height: calc(100dvh - 12px);
  }

  .send-status-facts { margin-left: 0; }
  .send-list-search { width: 100%; }
}

/* 行内选择按钮：复选框外置后，内部两列（内容 + 状态）。 */
.send-lead-select { grid-template-columns: minmax(0, 1fr) auto; }

/* —— 发送渠道卡片 / 跟进模板入口 / 发送对象主区域 —— */
.send-channel-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 0 16px;
}

.send-channel-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: left;
}

.send-channel-card:hover { border-color: var(--teal); }

.send-channel-card.is-active {
  border-color: var(--teal);
  background: var(--teal-soft, rgba(59, 130, 166, .08));
  box-shadow: 0 0 0 3px var(--teal-soft, rgba(59, 130, 166, .12));
}

.send-channel-card-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--teal-soft, rgba(59, 130, 166, .12));
  color: var(--teal-deep);
  flex: 0 0 auto;
}

.send-channel-card-icon svg { width: 18px; height: 18px; }

.send-channel-card-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
}

.send-channel-card-copy strong { font-size: 13px; }
.send-channel-card-copy small { font-size: 10.5px; color: var(--muted); }
.send-channel-card .send-channel-chip { flex: 0 0 auto; }

.send-followup-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  width: calc(100% - 32px);
  margin: 10px 16px 0;
  padding: 10px 12px;
  border: 1px dashed var(--brand-silver, #B8C7D6);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-align: left;
}

.send-followup-entry svg { width: 16px; height: 16px; flex: 0 0 auto; }
.send-followup-entry span { font-size: 12.5px; font-weight: 700; }
.send-followup-entry small { font-size: 11px; }
.send-followup-entry .send-channel-chip { margin-left: auto; }

.send-followup-entry.is-active {
  border-color: var(--teal);
  border-style: solid;
  background: var(--teal-soft, rgba(59, 130, 166, .08));
}

.send-channel-extra { padding: 10px 16px 14px; }

.send-channel-note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.send-channel-note svg { width: 14px; height: 14px; flex: 0 0 auto; }

.send-followup-editor textarea {
  width: 100%;
  min-height: 120px;
  margin-top: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.6;
}

/* 发送对象为页面主区域：列表保持最大可视高度。 */
.send-section-targets .lead-send-list { min-height: 460px; }

@media (max-width: 900px) {
  .send-channel-cards { grid-template-columns: 1fr; }
  .send-section-targets .lead-send-list { min-height: 320px; }
}
