
.um-page[data-v-060a8904] { max-width: 1100px; margin: 0 auto; padding: 32px 24px; font-family: inherit;
}
.um-header[data-v-060a8904] { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px;
}
.um-header-left[data-v-060a8904] { display: flex; align-items: center; gap: 16px;
}
.um-back[data-v-060a8904] { font-size: 13px; color: #4e86ff; text-decoration: none;
}
.um-back[data-v-060a8904]:hover { text-decoration: underline;
}
.um-title[data-v-060a8904] { font-size: 22px; font-weight: 800; color: #1a2030; margin: 0;
}
.um-link-btn[data-v-060a8904] { font-size: 13px; color: #4e86ff; text-decoration: none; padding: 6px 14px; border: 1px solid #c8d6f0; border-radius: 8px;
}
.um-flash[data-v-060a8904] { padding: 10px 16px; border-radius: 8px; font-size: 13px; margin-bottom: 16px;
}
.um-flash--ok[data-v-060a8904]  { background: rgba(34,197,139,.1); color: #22c58b;
}
.um-flash--err[data-v-060a8904] { background: rgba(239,68,68,.1);  color: #ef4444;
}
.um-card[data-v-060a8904] { background: white; border: 1px solid #e2e9f8; border-radius: 16px; padding: 24px;
}
.um-card-header[data-v-060a8904] { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.um-section-title[data-v-060a8904] { font-size: 15px; font-weight: 700; color: #2d3648; margin: 0;
}
.um-btn[data-v-060a8904] { padding: 7px 16px; border-radius: 8px; border: 1px solid #c8d6f0; background: white; font-size: 13px; cursor: pointer; color: #46506b;
}
.um-btn--primary[data-v-060a8904] { background: #4e86ff; color: white; border-color: #4e86ff;
}
.um-btn[data-v-060a8904]:disabled { opacity: 0.5; cursor: not-allowed;
}
.um-form[data-v-060a8904] { background: #f6f8fc; border: 1px solid #e2e9f8; border-radius: 12px; padding: 16px; margin-bottom: 16px;
}
.um-form-row[data-v-060a8904] { display: flex; gap: 12px; flex-wrap: wrap;
}
.um-field[data-v-060a8904] { flex: 1 1 180px;
}
.um-label[data-v-060a8904] { font-size: 11px; font-weight: 600; color: #7d879c; margin-bottom: 4px;
}
.um-input[data-v-060a8904] { width: 100%; padding: 7px 10px; border: 1px solid #d0d9ee; border-radius: 7px; font-size: 13px; color: #2d3648; background: white; box-sizing: border-box;
}
.um-input--sm[data-v-060a8904] { padding: 4px 8px; font-size: 12px;
}
.um-form-actions[data-v-060a8904] { display: flex; gap: 8px; margin-top: 12px;
}
.um-table-wrap[data-v-060a8904] { overflow-x: auto;
}
.um-table[data-v-060a8904] { width: 100%; border-collapse: collapse; font-size: 13px;
}
.um-table th[data-v-060a8904] { text-align: left; padding: 8px 12px; background: #f6f8fc; color: #7d879c; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid #e2e9f8;
}
.um-row td[data-v-060a8904], .um-edit-row td[data-v-060a8904] { padding: 10px 12px; border-bottom: 1px solid #f0f4fb; vertical-align: middle;
}
.um-row:last-child td[data-v-060a8904], .um-edit-row:last-child td[data-v-060a8904] { border-bottom: none;
}
.um-td-name[data-v-060a8904] { font-weight: 600; color: #2d3648;
}
.um-td-meta[data-v-060a8904] { color: #7d879c;
}
.um-empty[data-v-060a8904] { text-align: center; color: #aab4c8; padding: 24px;
}
.um-role-badge[data-v-060a8904] { display: inline-block; padding: 2px 8px; border-radius: 5px; font-size: 11px; font-weight: 700;
}
.um-role-badge--super_admin[data-v-060a8904] { background: rgba(139,92,246,.12); color: #7c3aed;
}
.um-role-badge--admin[data-v-060a8904]       { background: rgba(78,134,255,.12); color: #4e86ff;
}
.um-role-badge--operator[data-v-060a8904]    { background: rgba(34,197,139,.12); color: #22c58b;
}
.um-role-badge--viewer[data-v-060a8904]      { background: rgba(125,135,156,.12); color: #7d879c;
}
.um-action-btn[data-v-060a8904] { padding: 3px 10px; border-radius: 6px; border: 1px solid #d0d9ee; background: white; font-size: 12px; cursor: pointer; color: #46506b; margin-right: 4px;
}
.um-action-btn--save[data-v-060a8904] { background: #4e86ff; color: white; border-color: #4e86ff;
}
.um-action-btn--del[data-v-060a8904]  { color: #ef4444; border-color: #fca5a5;
}
.um-edit-subrow td[data-v-060a8904] { padding: 8px 12px 14px; background: #f6f8fc; border-bottom: 1px solid #f0f4fb;
}
.um-subfield[data-v-060a8904] { display: flex; align-items: center; gap: 12px;
}
.um-sublabel[data-v-060a8904] { font-size: 12px; font-weight: 600; color: #46506b; min-width: 48px;
}
.um-hint[data-v-060a8904] { font-size: 11px; color: #aab4c8;
}
.um-brand-checks[data-v-060a8904] { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0;
}
.um-brand-checks--sm[data-v-060a8904] { gap: 4px;
}
.um-brand-check-item[data-v-060a8904] { display: flex; align-items: center; gap: 4px; font-size: 13px; color: #2d3648; cursor: pointer; white-space: nowrap;
}
.um-brand-check-item input[type="checkbox"][data-v-060a8904] { accent-color: #4e86ff; cursor: pointer;
}
.um-empty-inline[data-v-060a8904] { font-size: 12px; color: #aab4c8;
}
:root {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #e8eefc;
  background:
    radial-gradient(circle at top, rgba(36, 76, 161, 0.35), transparent 38%),
    linear-gradient(180deg, #091224 0%, #0d1730 55%, #0a1226 100%);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --bg-deep: #0d1630;
  --bg-panel: rgba(18, 28, 56, 0.84);
  --bg-panel-soft: rgba(31, 43, 79, 0.72);
  --bg-card: #ffffff;
  --text-main: #eef4ff;
  --text-sub: rgba(220, 230, 255, 0.68);
  --text-dark: #1f2a44;
  --line-soft: rgba(255, 255, 255, 0.08);
  --line-card: #e9eef8;
  --blue: #4e86ff;
  --blue-strong: #3a78ff;
  --orange: #f6a11a;
  --green: #22c58b;
  --purple: #8b5cf6;
  --red: #ef4444;
  --danger: #ff7d66;
  --shadow-soft: 0 24px 60px rgba(7, 16, 35, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body,
#app {
  margin: 0;
  min-height: 100vh;
}

body {
  min-width: 1280px;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  border: none;
  cursor: pointer;
}

.page-shell {
  min-height: 100vh;
}

.auth-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 40px;
}

.auth-panel {
  width: min(1180px, 100%);
  min-height: 720px;
  border-radius: 28px;
  border: 1px solid rgba(138, 165, 255, 0.12);
  background:
    radial-gradient(circle at 50% 0%, rgba(54, 101, 211, 0.18), transparent 36%),
    rgba(13, 22, 48, 0.94);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 32px;
  padding: 48px 32px;
}

.brand-head {
  text-align: center;
}

.brand-title {
  margin: 0;
  font-size: 54px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brand-title span {
  color: #61a0ff;
}

.brand-subtitle {
  margin: 12px 0 0;
  font-size: 18px;
  color: var(--text-sub);
  letter-spacing: 0.18em;
}

/* ─── Landing page ─── */

.landing-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.landing-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  height: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}

.landing-nav-logo {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.landing-nav-logo span {
  color: #61a0ff;
}

.landing-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-btn {
  height: 36px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.nav-btn.ghost {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(235, 242, 255, 0.88);
}

.nav-btn.solid {
  background: var(--blue);
  color: white;
}

.landing-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  padding: 0 52px 60px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.landing-left {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.landing-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 10px;
}

.landing-eyebrow::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.landing-h1 {
  margin: 0;
  font-size: 54px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #eef4ff;
}

.landing-lead {
  margin: 0;
  font-size: 15px;
  line-height: 1.9;
  color: rgba(220, 230, 255, 0.62);
}

.landing-cta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.cta-primary {
  height: 48px;
  padding: 0 32px;
  border-radius: 8px;
  background: var(--blue);
  color: white;
  font-size: 15px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.cta-ghost {
  font-size: 15px;
  font-weight: 700;
  color: rgba(220, 230, 255, 0.72);
}

.landing-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-num {
  font-size: 26px;
  font-weight: 800;
  color: #eef4ff;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 12px;
  color: rgba(220, 230, 255, 0.46);
  font-weight: 600;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
}

.landing-body-center {
  grid-template-columns: 1fr;
  max-width: 860px;
  padding-top: 80px;
}

.landing-left-wide {
  gap: 32px;
}

.landing-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.method-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.method-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1.4;
}

.method-name {
  font-size: 14px;
  font-weight: 700;
  color: #dde8ff;
}

.method-desc {
  font-size: 12px;
  color: rgba(220, 230, 255, 0.48);
  margin-top: 4px;
  line-height: 1.6;
}

/* ─── Auth form (login / register) ─── */

.auth-form-panel {
  width: min(560px, 100%);
  min-height: auto;
  padding: 48px 40px;
}

.auth-form-shell {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.auth-form-head {
  margin-bottom: 0;
}

.auth-subtitle {
  font-size: 15px;
  letter-spacing: 0.06em;
}

.brand-title-small {
  font-size: 34px;
}

.auth-form-card {
  display: flex;
  flex-direction: column;
}

.selector-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(220, 230, 255, 0.62);
  margin-top: 18px;
  margin-bottom: 0;
}

.auth-field-gap {
  margin-top: 18px;
}

.auth-error {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--danger);
}

.auth-submit {
  width: 100%;
  margin-top: 24px;
  height: 52px;
  font-size: 16px;
}

.auth-switch-row {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  color: var(--text-sub);
}

.auth-inline-link {
  color: var(--blue);
  font-weight: 700;
  margin-left: 6px;
}

/* ─── Demo accounts ─── */

.demo-account-box {
  padding: 20px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(9, 16, 34, 0.42);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.demo-account-title {
  font-size: 13px;
  font-weight: 700;
  color: rgba(220, 230, 255, 0.46);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  text-align: left;
  transition: background 0.2s ease;
}

.demo-account-item:hover {
  background: rgba(78, 134, 255, 0.12);
}

.demo-account-name {
  font-size: 14px;
  font-weight: 700;
}

.demo-account-meta {
  font-size: 12px;
  color: var(--text-sub);
  margin-top: 3px;
}

.selector-input {
  width: 100%;
  height: 52px;
  margin-top: 14px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(129, 157, 228, 0.22);
  background: rgba(9, 16, 34, 0.42);
  color: var(--text-main);
  outline: none;
}

.selector-input::placeholder {
  color: rgba(220, 230, 255, 0.36);
}

.selector-input:focus {
  border-color: rgba(83, 141, 255, 0.88);
  box-shadow: 0 0 0 3px rgba(83, 141, 255, 0.16);
}

.selector-input-soft {
  margin-top: 12px;
}

.selector-results {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-item {
  width: 100%;
  min-height: 86px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(131, 154, 219, 0.14);
  background: rgba(26, 38, 70, 0.78);
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  text-align: left;
  transition: all 0.25s ease;
}

.result-item.active {
  border-color: rgba(83, 141, 255, 0.95);
  box-shadow: 0 0 0 1px rgba(83, 141, 255, 0.45), 0 18px 42px rgba(35, 81, 179, 0.18);
}

.result-badge,
.preview-badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(97, 160, 255, 0.28) 0%, rgba(78, 134, 255, 0.12) 100%);
  border: 1px solid rgba(97, 160, 255, 0.24);
  display: grid;
  place-items: center;
  color: #dbe8ff;
  font-size: 20px;
  font-weight: 800;
  flex-shrink: 0;
}

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

.result-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.result-title {
  font-size: 22px;
  font-weight: 700;
}

.result-status {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(78, 134, 255, 0.12);
  color: #8eb5ff;
  font-size: 12px;
  font-weight: 700;
}

.result-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.result-hint {
  color: rgba(220, 230, 255, 0.48);
  font-size: 13px;
}

.brand-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--blue);
  color: white;
  font-size: 13px;
  display: grid;
  place-items: center;
}

.brand-name {
  font-size: 28px;
  font-weight: 700;
}

.brand-category {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: var(--text-sub);
}

.manual-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.manual-form {
  display: flex;
  flex-direction: column;
}

.ghost-action {
  width: fit-content;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(235, 242, 255, 0.92);
  font-weight: 600;
}

.selector-preview {
  margin-top: auto;
}

.preview-card {
  margin-top: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(131, 154, 219, 0.14);
  background: rgba(11, 20, 41, 0.5);
  display: flex;
  align-items: center;
  gap: 14px;
}

.preview-card.active {
  border-color: rgba(83, 141, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(83, 141, 255, 0.25);
}

.preview-title {
  font-size: 22px;
  font-weight: 700;
}

.preview-subtitle {
  margin-top: 6px;
  color: var(--text-sub);
  font-size: 14px;
}

.preview-note {
  margin-top: 10px;
  color: rgba(220, 230, 255, 0.5);
  font-size: 13px;
  line-height: 1.6;
}

.primary-action {
  min-width: 180px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4f86ff 0%, #2e6cff 100%);
  color: white;
  font-size: 17px;
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(49, 107, 255, 0.35);
}

.primary-action:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.loading-wrap {
  width: 440px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.loading-ring {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.14);
  border-top-color: #4e86ff;
  animation: spin 1s linear infinite;
}

.loading-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: rgba(241, 246, 255, 0.92);
}

.loading-steps {
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--text-sub);
  line-height: 1.9;
  font-size: 15px;
}

.loading-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f86ff 0%, #6fa8ff 100%);
  transition: width 0.4s ease;
}

.dashboard {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 276px 1fr;
  background: #eef3fb;
  color: var(--text-dark);
}

.sidebar {
  background: linear-gradient(180deg, #0d1630 0%, #10182f 100%);
  color: var(--text-main);
  padding: 28px 18px 20px;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.sidebar-logo {
  font-size: 20px;
  font-weight: 800;
}

.sidebar-logo span {
  color: #66a8ff;
}


.sidebar-brand {
  padding: 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
}

.sidebar-brand-wrap {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(97, 160, 255, 0.14);
  color: #a8c6ff;
  font-size: 12px;
  font-weight: 700;
}

.sidebar-user-card {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-user-name {
  font-size: 14px;
  font-weight: 700;
}

.sidebar-user-meta {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(220, 230, 255, 0.56);
  word-break: break-all;
}

.sidebar-logout {
  margin-top: 12px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(235, 242, 255, 0.88);
  font-size: 13px;
  font-weight: 700;
}

.module-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.module-brand-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: #edf3ff;
  color: #467ee8;
  font-size: 13px;
  font-weight: 700;
}

.sidebar-nav {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.sidebar-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
}

.sidebar-group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(231, 239, 255, 0.35);
  text-transform: uppercase;
  padding: 10px 18px 4px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 56px;
  padding: 0 18px;
  border-radius: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(231, 239, 255, 0.88);
  font-size: 15px;
  font-weight: 500;
  text-align: left;
  width: 100%;
  transition: background 0.15s;
}

.sidebar-item:hover:not(.disabled) {
  background: rgba(255, 255, 255, 0.06);
}

.sidebar-item.active {
  background: rgba(68, 120, 255, 0.28);
  box-shadow: inset 3px 0 0 #4f86ff;
}

.sidebar-item.disabled {
  opacity: 0.56;
}

.sidebar-footer {
  margin-top: auto;
  padding: 20px 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(215, 225, 248, 0.42);
  font-size: 12px;
  line-height: 1.7;
}

.dashboard-main {
  padding: 32px 34px;
}

.content-card {
  min-height: calc(100vh - 64px);
  border-radius: 20px;
  background: white;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(124, 143, 179, 0.14);
}

.content-header {
  padding: 28px 32px 0;
  border-bottom: 1px solid #edf1f8;
}

.module-title {
  margin: 0 0 18px;
  font-size: 24px;
  font-weight: 800;
}

.top-tabs,
.inner-tabs {
  display: flex;
  gap: 34px;
}

.top-tab,
.inner-tab {
  position: relative;
  padding: 0 0 18px;
  background: transparent;
  color: #6c7791;
  font-size: 16px;
  font-weight: 700;
}

.top-tab.active,
.inner-tab.active {
  color: #3d80ff;
}

.top-tab.active::after,
.inner-tab.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: #4f86ff;
}

.top-tab-download {
  margin-left: auto;
  padding: 0 14px 18px;
  background: transparent;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.15s;
}

.top-tab-download:hover { opacity: 1; }

.dashboard-body {
  padding: 0;
  background: #eff4fb;
}

.intent-panel {
  padding: 30px 28px 34px;
}

.alert-chip {
  width: fit-content;
  margin: 0 auto 24px;
  padding: 12px 26px;
  border-radius: 999px;
  border: 1px dashed rgba(255, 133, 102, 0.55);
  background: rgba(255, 126, 89, 0.08);
  color: var(--danger);
  font-weight: 700;
}

.stage-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 16px;
  align-items: stretch;
}

.stage-arrow {
  display: flex;
  align-items: center;
  color: #c2ccdb;
  font-size: 18px;
  font-weight: 300;
  flex-shrink: 0;
  padding-top: 14px;
}

.stage-card {
  flex: 1 1 0;
  min-width: 160px;
  background: white;
  border-radius: 16px;
  border: 1px solid #edf1f8;
  padding: 18px 16px;
  box-shadow: 0 12px 28px rgba(144, 163, 197, 0.12);
}

.stage-card.highlight {
  border: 3px solid var(--orange);
}

.stage-top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stage-index {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.stage-index.blue { background: var(--blue); }
.stage-index.orange { background: var(--orange); }
.stage-index.green { background: var(--green); }
.stage-index.purple { background: var(--purple); }
.stage-index.red { background: var(--red); }
.stage-index.gray { background: #8ca0c7; }

.stage-name {
  font-size: 15px;
  font-weight: 800;
}

.stage-share {
  margin-left: auto;
  font-size: 14px;
  font-weight: 800;
  color: #6a748d;
}

.stage-points {
  margin: 12px 0 0;
  padding-left: 14px;
  color: #46506b;
  line-height: 1.65;
  font-size: 13px;
}

.decision-box {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid #e9eef8;
  background: #f8faff;
  border-radius: 16px;
}

.decision-box.warning {
  border-color: rgba(239, 68, 68, 0.22);
  background: rgba(239, 68, 68, 0.04);
}

.decision-title {
  color: #eb9c18;
  font-size: 15px;
  font-weight: 800;
}

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

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  background: #edf3ff;
  color: #5b88eb;
}

.tag.warm {
  background: #fff0d7;
  color: #d28a09;
}

.tag.subtle {
  background: transparent;
  color: #7b869f;
  padding: 0;
}

.tag.good {
  background: rgba(34, 197, 139, 0.12);
  color: var(--green);
}

.tag.warning {
  background: rgba(239, 68, 68, 0.1);
  color: var(--red);
}

.decision-point-box {
  margin-top: 12px;
  padding: 10px 14px;
  background: rgba(255, 193, 7, 0.08);
  border: 1px solid rgba(255, 193, 7, 0.25);
  border-radius: 8px;
  color: #f5c842;
  font-size: 13px;
  font-weight: 500;
}

.quote-box {
  margin-top: 18px;
  padding-left: 16px;
  border-left: 4px solid #e5eaf4;
  color: #717c95;
  font-size: 15px;
  font-style: italic;
}

.table-wrap {
  border: 1px solid #edf1f8;
  border-radius: 18px;
  overflow: hidden;
  background: white;
}

.intent-table {
  width: 100%;
  border-collapse: collapse;
}

.intent-table th,
.intent-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #eef2f8;
  vertical-align: top;
  text-align: left;
}

.intent-table th {
  color: #7a8399;
  font-size: 14px;
  font-weight: 700;
  background: #fbfcff;
}

.stage-cell {
  min-width: 140px;
  font-weight: 800;
}

.stage-pill {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 2px 10px;
  border-radius: 999px;
  color: white;
  font-size: 13px;
  font-weight: 700;
}

.stage-pill.blue { background: var(--blue); }
.stage-pill.orange { background: var(--orange); }
.stage-pill.green { background: var(--green); }
.stage-pill.gray { background: #8ea0c5; }

.intent-name {
  font-weight: 800;
  color: #27324c;
}

.volume-cell {
  min-width: 150px;
  text-align: right;
}

.volume-value {
  font-size: 18px;
  font-weight: 800;
  color: #1f2942;
}

.volume-bar {
  margin-top: 10px;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #edf1f7;
  overflow: hidden;
}

.volume-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #4d88ff 0%, #7ab0ff 100%);
}

.placeholder-panel {
  padding: 30px 28px;
}

.placeholder-card {
  min-height: 220px;
  border: 1px dashed #dbe3f2;
  border-radius: 18px;
  background: linear-gradient(180deg, #fafcff 0%, #f4f7fd 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  color: #7b869f;
}

.placeholder-card h3 {
  margin: 0;
  color: #394660;
}

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

/* ─── Internal settings page ─── */

.settings-page {
  align-items: flex-start;
  padding: 40px;
}

.settings-shell {
  width: min(1180px, 100%);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.settings-header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.settings-card {
  border-radius: 24px;
  border: 1px solid rgba(138, 165, 255, 0.12);
  background:
    radial-gradient(circle at 50% 0%, rgba(54, 101, 211, 0.14), transparent 40%),
    rgba(13, 22, 48, 0.94);
  box-shadow: var(--shadow-soft);
  padding: 28px 28px 30px;
}

.settings-tab-nav {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 2px solid #edf1f8;
  padding-bottom: 0;
}

.settings-tab-btn {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: #7d879c;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: color 0.15s, border-color 0.15s;
}

.settings-tab-btn:hover { color: var(--blue); }

.settings-tab-btn.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
  background: rgba(78, 134, 255, 0.05);
}

.settings-module-assignments {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.settings-module-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.settings-module-label {
  width: 160px;
  font-size: 14px;
  font-weight: 600;
  color: #3a4259;
  flex-shrink: 0;
}

.settings-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.settings-card-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--text-main);
}

.settings-card-subtitle {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(220, 230, 255, 0.48);
}

.settings-model-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-model-row {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(129, 157, 228, 0.14);
  background: rgba(9, 16, 34, 0.42);
}

.settings-model-row.active {
  border-color: rgba(83, 141, 255, 0.55);
  box-shadow: 0 0 0 1px rgba(83, 141, 255, 0.18);
}

.settings-model-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.settings-model-main {
  display: flex;
  align-items: center;
  gap: 14px;
}

.settings-model-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-main);
}

.settings-model-id {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(220, 230, 255, 0.46);
  font-family: 'SF Mono', 'Fira Code', monospace;
}

.toggle-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(220, 230, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.toggle-switch input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.settings-model-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

.settings-field-block {
  display: flex;
  flex-direction: column;
}

.settings-key-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.settings-inline-btn {
  flex-shrink: 0;
}

.settings-test-status {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.5;
}

.settings-test-status.ok {
  color: var(--green);
}

.settings-test-status.err {
  color: #ffb0a1;
}

.settings-textarea {
  width: 100%;
  min-height: 420px;
  margin-top: 14px;
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid rgba(129, 157, 228, 0.22);
  background: rgba(9, 16, 34, 0.42);
  color: var(--text-main);
  resize: vertical;
  outline: none;
  font: 13px/1.75 'SF Mono', 'Fira Code', monospace;
}

.settings-textarea-compact {
  min-height: 140px;
}

.settings-textarea:focus {
  border-color: rgba(83, 141, 255, 0.88);
  box-shadow: 0 0 0 3px rgba(83, 141, 255, 0.16);
}

.settings-hint {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(220, 230, 255, 0.48);
}

.settings-hint code {
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: #b8d0ff;
}

.settings-question-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.settings-question-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-question-footer {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.ghost-action.danger {
  background: rgba(255, 125, 102, 0.08);
  color: #ffb0a1;
}

.model-saved-msg {
  margin: 0;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--green);
}

/* ─── Legacy model option styles ─── */

.model-option-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.model-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid rgba(129, 157, 228, 0.18);
  background: rgba(9, 16, 34, 0.34);
  cursor: pointer;
  transition: all 0.2s ease;
}

.model-option.active {
  border-color: rgba(83, 141, 255, 0.88);
  background: rgba(78, 134, 255, 0.1);
  box-shadow: 0 0 0 1px rgba(83, 141, 255, 0.3);
}

.model-option-radio {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  flex-shrink: 0;
}

.model-option-label {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
}

.model-option-id {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: rgba(220, 230, 255, 0.46);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 6px;
}

/* ─── Admin action buttons in dashboard ─── */

.admin-action-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-action-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  width: 100%;
  height: 32px;
  padding: 0 10px;
  border-radius: 7px;
  background: transparent;
  color: rgba(180, 210, 255, 0.75);
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, color 0.15s ease;
  box-sizing: border-box;
  white-space: nowrap;
}

.admin-action-btn:hover {
  background: rgba(78, 134, 255, 0.18);
  color: #a8c6ff;
}
a.admin-action-btn { text-decoration: none; }

.admin-brand-switch {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.admin-brand-switch-label {
  font-size: 11px;
  color: rgba(180,200,255,0.45);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-brand-select {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: rgba(220,235,255,0.85);
  font-size: 12px;
  padding: 6px 8px;
  cursor: pointer;
  outline: none;
}

.admin-brand-select:focus {
  border-color: rgba(78,134,255,0.5);
}

.admin-brand-select option {
  background: #1a2340;
  color: #e0eaff;
}

/* ─── Loading error state ─── */

.loading-error {
  margin: 0;
  font-size: 14px;
  color: var(--danger);
  text-align: center;
  line-height: 1.7;
  max-width: 360px;
}

.loading-error-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}

/* ─── Dashboard AI source badge ─── */

.ai-source-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(34, 197, 139, 0.1);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(34, 197, 139, 0.2);
}

.module-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(78, 134, 255, 0.1);
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(78, 134, 255, 0.3);
  cursor: pointer;
  transition: background 0.15s;
}
.module-action-btn:hover {
  background: rgba(78, 134, 255, 0.2);
}
.module-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.settings-csv-row {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.settings-select {
  appearance: none;
}

.settings-upload-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 700;
}

.settings-upload-status.ok {
  background: rgba(34, 197, 139, 0.12);
  color: #87efc4;
  border: 1px solid rgba(34, 197, 139, 0.2);
}

.settings-upload-status.err {
  background: rgba(239, 68, 68, 0.1);
  color: #ffb4b4;
  border: 1px solid rgba(239, 68, 68, 0.18);
}

.dashboard-inline-error {
  margin-bottom: 16px;
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
}

/* ─── GEO 看板公用组件 ─── */

.geo-stats-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  padding: 24px 28px 0;
  margin-bottom: 0;
}

.geo-stat-chip {
  background: #f4f7ff;
  border: 1px solid #e2e9f8;
  border-radius: 14px;
  padding: 14px 20px;
  min-width: 110px;
  text-align: center;
}

.geo-stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.geo-stat-label {
  font-size: 11px;
  color: #8b99b8;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.geo-section {
  padding: 20px 28px 4px;
  margin-bottom: 8px;
}

.geo-section-title {
  font-size: 11px;
  font-weight: 700;
  color: #8b99b8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 12px;
}

.geo-engine-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.geo-engine-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(78,134,255,0.07);
  border: 1px solid rgba(78,134,255,0.15);
  border-radius: 8px;
  padding: 6px 14px;
}

.geo-engine-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue);
}

.geo-engine-count {
  font-size: 12px;
  color: #8b99b8;
}

/* ─── 任务看板 Q&A ─── */

.geo-question-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.geo-question-item {
  border: 1px solid #e9eef8;
  border-radius: 12px;
  overflow: hidden;
  background: white;
}

.geo-question-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  background: #f8faff;
  transition: background 0.15s;
}

.geo-question-head:hover {
  background: #f0f5ff;
}

.geo-q-index {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: #b0bcd4;
  width: 28px;
}

.geo-q-text {
  flex: 1;
  font-size: 14px;
  color: var(--text-dark);
  line-height: 1.5;
  font-weight: 500;
}

.geo-engine-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  flex-shrink: 0;
}

.geo-engine-tag {
  background: rgba(78,134,255,0.08);
  border: 1px solid rgba(78,134,255,0.18);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  color: var(--blue);
  font-weight: 600;
}

.geo-q-toggle {
  font-size: 10px;
  color: #b0bcd4;
  flex-shrink: 0;
  margin-left: 4px;
}

.geo-answers-panel {
  padding: 12px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: white;
}

.geo-answer-block {
  background: #f8faff;
  border: 1px solid #e9eef8;
  border-radius: 10px;
  padding: 12px 14px;
}

.geo-answer-engine {
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.geo-answer-text {
  font-size: 13px;
  color: #3a4a65;
  line-height: 1.7;
  white-space: pre-wrap;
  max-height: 300px;
  overflow-y: auto;
}

/* Metric stat chips */
.geo-stat-chip--metric {
  border-color: #d4e3ff;
  background: #f0f6ff;
}

.geo-stat-num--recommend {
  color: var(--blue);
}

.geo-stat-num--top3 {
  color: var(--green);
}

.geo-stat-num--top1 {
  color: var(--orange);
}

/* Answer engine row with mention badge */
.geo-answer-engine-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.geo-mention-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 5px;
  letter-spacing: 0.02em;
}

.geo-mention-badge--yes {
  background: rgba(34, 197, 139, 0.12);
  color: var(--green);
  border: 1px solid rgba(34, 197, 139, 0.25);
}

.geo-mention-badge--no {
  background: rgba(180, 190, 210, 0.12);
  color: #a0afc7;
  border: 1px solid rgba(180, 190, 210, 0.25);
}

/* ═══════════════════════════════════════════════════════════
   GEO 看板 — 筛选栏、指标卡、数据表格
   ══════════════════════════════════════════════════════════ */

/* ─── 筛选栏 ─── */
.geo-filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  padding: 20px 28px 16px;
  flex-wrap: wrap;
  border-bottom: 1px solid #f0f4fc;
}

.geo-filter-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 0 150px;
}

.geo-filter-item--grow {
  flex: 1 1 200px;
}

.geo-filter-label {
  font-size: 11px;
  font-weight: 600;
  color: #8b99b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.geo-filter-select,
.geo-filter-input {
  height: 36px;
  padding: 0 10px;
  border: 1px solid #dde5f4;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-dark);
  background: white;
  outline: none;
  transition: border-color 0.15s;
}

.geo-filter-select:focus,
.geo-filter-input:focus {
  border-color: var(--blue);
}

/* ── Question multi-select dropdown ─────────────────────────────────────────── */
.geo-filter-select--btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  background: white;
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  color: #2d3648;
}
.geo-q-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid #d0d9ee;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  max-height: 260px;
  overflow-y: auto;
  z-index: 200;
  padding: 4px 0;
}
.geo-q-option {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 13px;
  color: #2d3648;
  line-height: 1.4;
  transition: background .1s;
}
.geo-q-option:hover { background: #f4f7ff; }
.geo-q-option--active { background: rgba(78,134,255,0.06); }
.geo-q-check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border: 1.5px solid #c8d6f0;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #4e86ff;
  margin-top: 1px;
  background: white;
}
.geo-q-option--active .geo-q-check {
  border-color: #4e86ff;
  background: #4e86ff;
  color: white;
}
.geo-q-text { flex: 1; word-break: break-all; }

.geo-filter-actions {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.geo-filter-btn {
  height: 36px;
  padding: 0 16px;
  border: 1px solid #dde5f4;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  background: white;
  cursor: pointer;
  transition: background 0.15s;
}

.geo-filter-btn:hover { background: #f4f7ff; }

.geo-filter-btn--primary {
  background: var(--blue);
  color: white;
  border-color: var(--blue);
}

.geo-filter-btn--primary:hover { background: var(--blue-strong); }

/* ─── 总计摘要 ─── */
.geo-count-summary {
  padding: 12px 28px;
  font-size: 13px;
  color: #6b7a99;
}

.geo-count-summary strong {
  color: var(--blue);
  font-weight: 700;
}

/* ─── 看板 tabs ─── */
.geo-board-tabs {
  display: flex;
  padding: 0 28px;
  border-bottom: 1px solid #e9eef8;
}

.geo-board-tab {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: #8b99b8;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -1px;
}

.geo-board-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.geo-board-tab:hover:not(.active) { color: var(--text-dark); }

/* ─── 指标卡 ─── */
.geo-metric-row {
  display: flex;
  gap: 16px;
  padding: 20px 28px;
  flex-wrap: wrap;
}

.geo-metric-card {
  flex: 1 1 160px;
  background: white;
  border: 1px solid #e2e9f8;
  border-radius: 16px;
  padding: 20px 24px;
  min-width: 140px;
}

.geo-metric-label {
  font-size: 12px;
  color: #8b99b8;
  font-weight: 500;
  margin-bottom: 8px;
}

.geo-metric-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.1;
}

.geo-metric-sub {
  font-size: 12px;
  color: #a0afc7;
  margin-top: 6px;
}

.geo-metric-card--blue .geo-metric-num  { color: var(--blue); }
.geo-metric-card--green .geo-metric-num { color: var(--green); }
.geo-metric-card--orange .geo-metric-num { color: var(--orange); }

/* ─── 数据表格 ─── */
.geo-table-section {
  padding: 16px 28px 24px;
}

.geo-table-wrap {
  overflow-x: auto;
  border: 1px solid #e9eef8;
  border-radius: 12px;
}

.geo-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.geo-data-table thead tr {
  background: #f8faff;
  border-bottom: 1px solid #e9eef8;
}

.geo-data-table th {
  padding: 10px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #8b99b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  text-align: left;
}

.geo-data-row {
  border-bottom: 1px solid #f0f4fc;
  transition: background 0.1s;
}

.geo-data-row:last-child { border-bottom: none; }
.geo-data-row:hover { background: #f8faff; }

.geo-data-table td {
  padding: 10px 12px;
  color: var(--text-dark);
  vertical-align: middle;
}

.geo-td-center { text-align: center; }
.geo-td-num { font-weight: 700; color: var(--blue) !important; }
.geo-td-question { font-weight: 500; color: var(--text-dark); line-height: 1.5; }
.geo-td-title { color: var(--text-dark); line-height: 1.5; max-width: 320px; }
.geo-td-site { font-weight: 600; color: var(--blue); font-size: 12px; }
.geo-td-comp { font-size: 12px; color: #6b7a99; }
.geo-td-empty { color: #c0cce0; }

/* 是/否 badges */
.geo-bool-yes {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(34, 197, 139, 0.1);
  color: var(--green);
  border: 1px solid rgba(34, 197, 139, 0.22);
}

.geo-bool-no {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(180, 190, 210, 0.1);
  color: #a0afc7;
  border: 1px solid rgba(180, 190, 210, 0.22);
}

/* URL link */
.geo-url-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  white-space: nowrap;
}

.geo-url-link:hover { text-decoration: underline; }

/* Keyword tags in task table */
.geo-td-kws {
  white-space: normal;
}

.geo-kw-tag {
  display: inline-block;
  padding: 2px 7px;
  margin: 2px 3px 2px 0;
  border-radius: 4px;
  font-size: 11px;
  background: rgba(78, 134, 255, 0.07);
  border: 1px solid rgba(78, 134, 255, 0.18);
  color: var(--text-dark);
}

/* ─── GEO 导入卡内分隔线 ─── */
.settings-geo-divider {
  margin: 24px 0 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
  font-weight: 700;
  color: rgba(220, 230, 255, 0.55);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ─── 媒体分级 badges ─── */
.geo-tier-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.geo-tier-badge--1 {
  background: rgba(78, 134, 255, 0.08);
  color: var(--blue);
  border: 1px solid rgba(78, 134, 255, 0.18);
}

.geo-tier-badge--2 {
  background: rgba(34, 197, 139, 0.08);
  color: var(--green);
  border: 1px solid rgba(34, 197, 139, 0.18);
}

/* ─── AI补全消息 ─── */
.geo-fill-msg {
  padding: 6px 28px;
  font-size: 12px;
  color: #ef4444;
}

.geo-fill-msg.ok {
  color: var(--green);
}

.geo-filter-btn--ai {
  background: rgba(34, 197, 139, 0.1);
  color: var(--green);
  border-color: rgba(34, 197, 139, 0.25);
}

.geo-filter-btn--ai:hover:not(:disabled) {
  background: rgba(34, 197, 139, 0.18);
}

.geo-filter-btn--ai:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ─── 媒体汇总 ─── */
.geo-media-summary {
  padding-bottom: 16px;
}

/* Per-platform media insight block */
.media-insight-block {
  background: #f4f7ff; border-radius: 12px;
  padding: 14px 18px; margin-bottom: 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.media-insight-row {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 13px; line-height: 1.5;
}
.media-insight-engine {
  font-weight: 700; color: #2d3a5a;
  min-width: 68px; flex-shrink: 0;
}
.media-insight-tip { color: #4a5a7a; }
.media-insight-overall {
  margin-top: 4px; padding-top: 10px;
  border-top: 1px solid #e0e8f8;
  font-size: 13px; color: #2563eb; font-weight: 600;
}

.geo-donut-row {
  display: flex;
  gap: 20px;
  padding: 20px 28px;
  flex-wrap: wrap;
}

.geo-donut-block {
  flex: 1 1 380px;
  background: white;
  border: 1px solid #e2e9f8;
  border-radius: 16px;
  padding: 20px 24px;
}

.geo-donut-title {
  font-size: 13px;
  font-weight: 700;
  color: #46506b;
  margin-bottom: 16px;
}

.geo-donut-wrap {
  height: 200px;
  position: relative;
}

.geo-donut-wrap canvas {
  max-height: 200px;
}

/* ─── 聚合视图 rate badges ─── */
.geo-rate-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(180, 190, 210, 0.1);
  color: #8b99b8;
}

.geo-rate-badge--good {
  background: rgba(34, 197, 139, 0.1);
  color: var(--green);
}

.geo-rate-badge--mid {
  background: rgba(78, 134, 255, 0.1);
  color: var(--blue);
}

.geo-rate-badge--top {
  background: rgba(246, 161, 26, 0.1);
  color: var(--orange);
}

/* ─────────────────────────────────────────────────────────────────
   AI回答解剖 (ai-anatomy)
───────────────────────────────────────────────────────────────── */

.anatomy-action-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 14px;
  background: #f6f8fc;
  border-radius: 10px;
  flex-wrap: wrap;
}

.anatomy-status {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  font-size: 13px;
  min-width: 0;
}

.anatomy-progress-bar {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: #e2e9f8;
  overflow: hidden;
  min-width: 80px;
  max-width: 200px;
}

.ov-row-progress {
  margin-top: 8px;
  height: 5px;
  border-radius: 3px;
  background: rgba(78, 134, 255, 0.12);
  overflow: hidden;
}
.ov-row-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4e86ff, #f6a11a);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.anatomy-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #4e86ff, #22c58b);
  border-radius: 3px;
  transition: width 0.4s ease;
}

.anatomy-start-btn {
  padding: 7px 18px;
  border-radius: 8px;
  border: none;
  background: linear-gradient(135deg, #4e86ff, #22c58b);
  color: white;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.anatomy-start-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.label-quota-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.label-quota-text {
  font-size: 12px;
  color: #7d879c;
  white-space: nowrap;
}

.label-quota-bar {
  width: 80px;
  height: 6px;
  background: #edf1f8;
  border-radius: 999px;
  overflow: hidden;
}

.label-quota-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--blue);
  transition: width 0.4s ease;
}

.label-quota-fill.warn  { background: var(--orange); }
.label-quota-fill.danger { background: #ef4444; }

.geo-section-label {
  font-size: 12px;
  font-weight: 700;
  color: #8b99b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

/* Quote cards */
.anatomy-quotes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.anatomy-quote-card {
  background: #f6f8fc;
  border: 1px solid #e2e9f8;
  border-radius: 10px;
  padding: 12px 16px;
}

.anatomy-quote-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}

.anatomy-quote-question {
  font-size: 12px;
  color: #7d879c;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.anatomy-quote-text {
  font-size: 14px;
  color: #2d3648;
  line-height: 1.6;
  font-style: italic;
}

/* Attitude badge */
.anatomy-attitude-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.anatomy-attitude-badge--推荐 {
  background: rgba(34, 197, 139, 0.12);
  color: #22c58b;
}

.anatomy-attitude-badge--中立 {
  background: rgba(125, 135, 156, 0.12);
  color: #7d879c;
}

.anatomy-attitude-badge--负面 {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.anatomy-attitude-badge--未提及 {
  background: rgba(180, 190, 210, 0.15);
  color: #aab4c8;
}

/* Two-column layout for audience tab */
.anatomy-two-col {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.anatomy-col {
  flex: 1 1 260px;
}

.anatomy-points-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.anatomy-point {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 13px;
}

.anatomy-point--pos {
  background: rgba(34, 197, 139, 0.07);
  border: 1px solid rgba(34, 197, 139, 0.18);
  color: #1a6b4a;
}

.anatomy-point--neg {
  background: rgba(239, 68, 68, 0.07);
  border: 1px solid rgba(239, 68, 68, 0.18);
  color: #8b1a1a;
}

.anatomy-point-text {
  flex: 1;
}

.anatomy-point-count {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.65;
  margin-left: 8px;
  white-space: nowrap;
}

/* Audience list */
.anatomy-audience-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.anatomy-audience-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  background: #f6f8fc;
  border: 1px solid #e2e9f8;
  border-radius: 8px;
  font-size: 13px;
  color: #2d3648;
  line-height: 1.5;
}

.anatomy-audience-text {
  flex: 1;
}

.ai-metric-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: #4e86ff;
  background: rgba(78, 134, 255, 0.1);
  border-radius: 4px;
  padding: 1px 5px;
  vertical-align: middle;
  margin-left: 3px;
}

/* ── 明细核对 table ─────────────────────────────────────────────────────────── */
.review-table th, .review-table td { font-size: 12px; }
.review-select {
  width: 100%;
  padding: 4px 6px;
  border: 1px solid #d0d9ee;
  border-radius: 6px;
  font-size: 12px;
  color: #2d3648;
  background: white;
  cursor: pointer;
  outline: none;
}
.review-select:focus { border-color: #4e86ff; }
.review-rank-input {
  width: 52px;
  padding: 4px 6px;
  border: 1px solid #d0d9ee;
  border-radius: 6px;
  font-size: 12px;
  color: #2d3648;
  text-align: center;
  outline: none;
}
.review-rank-input:focus { border-color: #4e86ff; }
.anatomy-empty {
  text-align: center;
  color: #aab4c8;
  padding: 48px 24px;
  font-size: 13px;
}

/* ── 自定义维度 ─────────────────────────────────────────────────────────────── */
.custom-dim-bars { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.custom-dim-bar-row { display: flex; align-items: center; gap: 8px; }
.custom-dim-bar-label { width: 80px; font-size: 12px; color: #46506b; flex-shrink: 0; text-align: right; }
.custom-dim-bar-track { flex: 1; height: 8px; background: #eef1f8; border-radius: 4px; overflow: hidden; }
.custom-dim-bar-fill { height: 100%; background: #4e86ff; border-radius: 4px; transition: width 0.4s ease; }
.custom-dim-bar-pct { width: 70px; font-size: 12px; font-weight: 700; color: #2d3648; flex-shrink: 0; }
.custom-dim-bar-count { font-weight: 400; color: #aab4c8; font-size: 11px; }

/* ── 自定义维度编辑行 ──────────────────────────────────────────────────────── */
.custom-dim-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

/* ── 总览表格 ────────────────────────────────────────────────────────────────── */
.overview-wrap { overflow-x: auto; }
.overview-table th, .overview-table td { font-size: 12px; padding: 8px 10px; }
.overview-td-question { font-size: 12px; color: #46506b; max-width: 220px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.overview-td-audience { font-size: 11px; color: #7d879c; max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.overview-tags { display: flex; flex-wrap: wrap; gap: 3px; }
.overview-pos-badge { display: inline-block; padding: 2px 6px; border-radius: 4px; font-size: 11px; font-weight: 700; }
.overview-pos--领先 { background: rgba(34,197,139,.12); color: #22c58b; }
.overview-pos--持平 { background: rgba(125,135,156,.12); color: #7d879c; }
.overview-pos--落后 { background: rgba(239,68,68,.12); color: #ef4444; }
.overview-pos--未对比 { background: rgba(125,135,156,.08); color: #aab4c8; }
.overview-custom-val { font-size: 11px; color: #46506b; }

/* ── 总览行展开 ──────────────────────────────────────────────────────────────── */
.overview-row { cursor: pointer; }
.overview-row:hover { background: #f6f8fc; }
.overview-row--expanded { background: #f0f5ff !important; }
.overview-more-badge { font-size: 11px; color: #7d879c; background: #eef1f8; padding: 1px 5px; border-radius: 4px; cursor: pointer; }
.overview-detail-row td { padding: 0 !important; border-bottom: 2px solid #4e86ff22; }
.overview-detail { background: #f8faff; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.overview-detail-cols { display: flex; flex-wrap: wrap; gap: 20px; }
.overview-detail-section { display: flex; flex-direction: column; gap: 4px; min-width: 200px; flex: 1; }
.overview-detail-label { font-size: 11px; font-weight: 700; color: #7d879c; text-transform: uppercase; letter-spacing: 0.04em; }
.overview-detail-answer { font-size: 12px; color: #46506b; line-height: 1.7; background: white; border: 1px solid #e2e9f8; border-radius: 8px; padding: 10px 12px; white-space: pre-wrap; }
.overview-detail-quote { font-size: 13px; color: #2d3648; font-style: italic; line-height: 1.6; }

/* ── GEO 五维分析 ────────────────────────────────────────────────────────────── */
.five-axis-legend {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.five-axis-legend-item {
  flex: 1 1 150px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #e2e9f8;
  background: #f8faff;
}
.five-axis-legend-item.demand     { border-color: #4e86ff33; background: #eff4ff; }
.five-axis-legend-item.competition { border-color: #ef444433; background: #fff5f5; }
.five-axis-legend-item.difficulty  { border-color: #f6a11a33; background: #fffbf0; }
.five-axis-legend-item.value       { border-color: #22c58b33; background: #f0fdf8; }
.five-axis-legend-item.aifit       { border-color: #8b5cf633; background: #faf5ff; }
.fal-name {
  font-size: 12px;
  font-weight: 700;
  color: #2d3648;
  margin-bottom: 4px;
}
.fal-name span {
  font-size: 11px;
  font-weight: 500;
  color: #7d879c;
  margin-left: 4px;
}
.fal-desc {
  font-size: 11px;
  color: #7d879c;
  line-height: 1.5;
}

.five-axis-action-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.five-axis-gate-msg {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  background: #f7f9ff; border: 1.5px solid #d0dcf5; border-radius: 10px;
  padding: 14px 18px; width: 100%;
}
.five-axis-gate-icon { font-size: 22px; flex-shrink: 0; }
.five-axis-cached-tip {
  font-size: 12px;
  color: #7d879c;
}
.five-axis-err {
  font-size: 12px;
  color: #ef4444;
  flex: 1;
}

.five-axis-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.five-axis-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: #7d879c;
  background: #f8faff;
  border-bottom: 2px solid #e2e9f8;
  cursor: default;
}
.five-axis-table td {
  padding: 10px 12px;
  border-bottom: 1px solid #eef1f8;
  vertical-align: middle;
}
.five-axis-table tr:hover td {
  background: #f6f8fc;
}

.score-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: default;
}
.score-high  { background: rgba(34,197,139,.15); color: #15a070; }
.score-mid   { background: rgba(246,161,26,.15); color: #c07a00; }
.score-low   { background: rgba(239,68,68,.12);  color: #d93030; }
.score-na    { background: rgba(125,135,156,.08); color: #aab4c8; font-size: 16px; font-weight: 400; }

.score-priority {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 32px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 800;
}
.priority-high { background: rgba(78,134,255,.15); color: #2a60e8; }
.priority-mid  { background: rgba(246,161,26,.15); color: #c07a00; }
.priority-low  { background: rgba(125,135,156,.1); color: #7d879c; }

.five-axis-note {
  padding: 10px 14px;
  font-size: 11px;
  color: #aab4c8;
  border-top: 1px solid #eef1f8;
  margin-top: 4px;
}

/* ── Five-axis match badge & no-data badge ───────────────────────────────────── */
.five-axis-match-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  background: rgba(78,134,255,.14);
  color: #2a60e8;
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}
.five-axis-no-data-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  background: rgba(246,161,26,.12);
  color: #c07a00;
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 11px;
  font-weight: 500;
  vertical-align: middle;
}

/* ── Expanded row highlight ───────────────────────────────────────────────────── */
tr.five-axis-expanded-row td { background: rgba(78,134,255,.04); }

/* ── Expandable detail row ────────────────────────────────────────────────────── */
tr.five-axis-detail-row td {
  padding: 0;
  border-top: none;
}
.five-axis-detail-wrap {
  padding: 10px 16px 12px;
  background: #f8faff;
  border-top: 1px dashed #d8e2f8;
  border-bottom: 1px solid #eef1f8;
}
.five-axis-detail-title {
  font-size: 11px;
  font-weight: 600;
  color: #7d879c;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.five-axis-embed-badge {
  background: rgba(78,134,255,.14);
  color: #2a60e8;
  border-radius: 8px;
  padding: 1px 7px;
  font-size: 10px;
  font-weight: 600;
}
.five-axis-kw-badge {
  background: rgba(125,135,156,.12);
  color: #7d879c;
  border-radius: 8px;
  padding: 1px 7px;
  font-size: 10px;
}
.five-axis-detail-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.five-axis-detail-q {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #374151;
}
.five-axis-q-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-mentioned { background: #22c58b; }
.dot-not       { background: #d1d5db; }
.five-axis-q-text { flex: 1; }
.five-axis-q-engine {
  font-size: 11px;
  color: #aab4c8;
  white-space: nowrap;
}
.five-axis-detail-legend {
  margin-top: 8px;
  font-size: 11px;
  color: #aab4c8;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── Multi-select question dropdown ─────────────────────────────────────────── */
.geo-multiselect-btn {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 6px 12px;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
  line-height: 1.5;
}
.geo-multiselect-btn:hover { border-color: #94a3b8; }
.geo-multiselect-panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 200;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,.12);
  max-height: 320px;
  overflow-y: auto;
}
.geo-multiselect-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid #f1f5f9;
  position: sticky;
  top: 0;
  background: #fff;
}
.geo-multiselect-selectall {
  font-size: 12px;
  color: #3b82f6;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  font-weight: 500;
}
.geo-multiselect-selectall:hover { text-decoration: underline; }
.geo-multiselect-hint { font-size: 11px; color: #94a3b8; }
.geo-multiselect-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  cursor: pointer;
  font-size: 13px;
  color: #374151;
}
.geo-multiselect-item:hover { background: #f8fafc; }
.geo-multiselect-item input[type="checkbox"] { flex-shrink: 0; cursor: pointer; }
.geo-multiselect-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.geo-multiselect-backdrop {
  position: fixed;
  inset: 0;
  z-index: 199;
}

.label-only-mentioned-toggle {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #4b5563;
  cursor: pointer;
  user-select: none;
}
.label-only-mentioned-toggle input[type="checkbox"] { cursor: pointer; }

/* ── 数据导入页 ───────────────────────────────────────────────────────────────── */
.import-step-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(78,134,255,.06);
  border: 1px solid rgba(78,134,255,.15);
  border-radius: 12px;
  padding: 14px 18px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.import-step-hint-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
}
.import-step-num {
  background: rgba(78,134,255,.14);
  color: #2a60e8;
  border-radius: 8px;
  padding: 2px 9px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.import-step-hint-sep {
  color: #aab4c8;
  font-size: 18px;
  flex-shrink: 0;
}
.import-section-card {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 16px;
}
.import-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.import-section-title {
  font-size: 15px;
  font-weight: 700;
  color: #1a2033;
  margin: 0 0 4px;
}
.import-section-sub {
  font-size: 12px;
  color: #aab4c8;
  margin: 0;
}
.import-row {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}
.import-status {
  margin-top: 10px;
  font-size: 13px;
  padding: 8px 12px;
  border-radius: 8px;
}
.import-status.ok  { background: rgba(34,197,139,.1);  color: #15a070; }
.import-status.err { background: rgba(239,68,68,.08);  color: #d93030; }

/* Batch list */
.batch-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}
.batch-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1.5px solid #edf0f7;
  background: #fafbfd;
  transition: border-color 0.15s;
}
.batch-item--active {
  border-color: rgba(78,134,255,.3);
  background: rgba(78,134,255,.03);
}
.batch-item-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 80px;
}
.batch-active-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4e86ff;
  flex-shrink: 0;
}
.batch-id {
  font-size: 13px;
  font-weight: 700;
  color: #1a2033;
}
.batch-source {
  font-size: 12px;
  color: #aab4c8;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.batch-item-meta {
  flex: 1;
  font-size: 13px;
  color: #7d879c;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.batch-date { color: #aab4c8; }
.batch-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.batch-tag-active {
  font-size: 11px;
  font-weight: 600;
  color: #4e86ff;
  background: rgba(78,134,255,.1);
  padding: 3px 10px;
  border-radius: 20px;
}
.batch-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 8px;
  border: 1.5px solid;
  cursor: pointer;
  transition: opacity 0.15s;
}
.batch-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.batch-btn--activate {
  color: #4e86ff;
  border-color: rgba(78,134,255,.35);
  background: rgba(78,134,255,.05);
}
.batch-btn--activate:hover:not(:disabled) { background: rgba(78,134,255,.12); }
.batch-btn--delete {
  color: #e05252;
  border-color: rgba(239,68,68,.25);
  background: rgba(239,68,68,.04);
}
.batch-btn--delete:hover:not(:disabled) { background: rgba(239,68,68,.1); }
.batch-empty {
  font-size: 13px;
  color: #aab4c8;
  padding: 16px 0;
  margin-bottom: 16px;
}
.batch-upload-zone {
  border-top: 1px solid #edf0f7;
  padding-top: 16px;
  margin-top: 4px;
}
.batch-upload-label {
  font-size: 12px;
  font-weight: 700;
  color: #aab4c8;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: 10px;
}

/* Batch preview card */
.batch-preview-card {
  background: rgba(78,134,255,0.04);
  border: 1px solid rgba(78,134,255,0.15);
  border-radius: 10px;
  padding: 14px 16px;
}
.batch-preview-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.batch-preview-stat {
  font-size: 13px;
  color: #8eb5ff;
  background: rgba(78,134,255,0.1);
  border-radius: 6px;
  padding: 4px 10px;
}
.batch-preview-samples {
  margin-bottom: 6px;
}
.batch-preview-q {
  font-size: 12px;
  color: #7d879c;
  padding: 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 500px;
}
.batch-sku-tag {
  font-size: 11px;
  background: rgba(34,197,139,0.12);
  color: #22c58b;
  border: 1px solid rgba(34,197,139,0.2);
  border-radius: 4px;
  padding: 1px 7px;
  margin-left: 6px;
}
.upload-warn-banner {
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.3);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #b45309;
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.upload-warn-link {
  color: #1d4ed8;
  cursor: pointer;
  text-decoration: underline;
  font-size: 13px;
  margin-left: auto;
  white-space: nowrap;
}

.sidebar-sku-wrap {
  margin: 10px 0 2px;
}
.sidebar-sku-label {
  font-size: 11px;
  color: #8a97b5;
  margin: 6px 0 2px;
}

/* 多文件批量上传（方案乙）*/
.multi-upload-card {
  border: 1px dashed #b9c8ef;
  background: #f7f9ff;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 12px 0 16px;
}
.multi-upload-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.multi-upload-title { font-weight: 700; color: #2d3a5a; font-size: 14px; }
.multi-upload-sub   { font-size: 12px; color: #7a86a3; margin-top: 2px; }
.multi-upload-period { font-size: 12px; color: #5a6b8c; display: flex; align-items: center; white-space: nowrap; }
.multi-upload-drop {
  display: inline-block;
  padding: 8px 14px;
  border: 1.5px solid #4e86ff;
  color: #4e86ff;
  background: #fff;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
}
.multi-upload-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: 13px; }
.multi-upload-table th { text-align: left; color: #8a97b5; font-weight: 600; padding: 4px 8px; border-bottom: 1px solid #e3e9f7; }
.multi-upload-table td { padding: 6px 8px; border-bottom: 1px solid #eef2fb; vertical-align: middle; }
.multi-fname { font-family: monospace; color: #2d3a5a; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.multi-status { font-size: 12px; }
.multi-status--pending   { color: #8a97b5; }
.multi-status--uploading { color: #d98e00; }
.multi-status--done      { color: #22c58b; }
.multi-status--error     { color: #ef4444; }
.selector-input.is-empty { border-color: #f0a; }

/* 品牌总览对比卡 */
.sku-overview-card {
  border: 1px solid #e3e9f7;
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 12px 0 16px;
}
.sku-overview-avg td { font-weight: 700; color: #2d3a5a; border-top: 2px solid #e3e9f7; }
.sku-overview-ref { font-weight: 400; font-size: 11px; color: #9aa6c2; margin-left: 4px; }
.sidebar-sku-select {
  width: 100%;
  background: rgba(78,134,255,0.08);
  border: 1px solid rgba(78,134,255,0.2);
  border-radius: 6px;
  color: #c5d5f5;
  font-size: 12px;
  padding: 4px 8px;
  cursor: pointer;
  outline: none;
}
.sidebar-sku-select:focus {
  border-color: rgba(78,134,255,0.5);
}
.sidebar-sku-select option {
  background: #1a2035;
  color: #c5d5f5;
}

/* ── SKU quick-pick chips (upload preview cards) ─────────────────────────── */
.sku-picker-block {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sku-picker-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.sku-clear-btn {
  background: none;
  border: none;
  color: #7d879c;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
  flex-shrink: 0;
}
.sku-clear-btn:hover { color: #c5d5f5; }
.sku-chips-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}
.sku-chips-label {
  font-size: 12px;
  color: #7d879c;
  flex-shrink: 0;
}
.sku-chip {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(78,134,255,0.25);
  background: rgba(78,134,255,0.07);
  color: #8eb5ff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  user-select: none;
}
.sku-chip:hover {
  background: rgba(78,134,255,0.15);
  border-color: rgba(78,134,255,0.4);
}
.sku-chip.active {
  background: rgba(78,134,255,0.25);
  border-color: #4e86ff;
  color: #c5d5f5;
}
.sku-chip.sku-chip-l3 {
  border-color: rgba(168,85,247,0.25);
  background: rgba(168,85,247,0.07);
  color: #c084fc;
}
.sku-chip.sku-chip-l3:hover {
  background: rgba(168,85,247,0.15);
}
.sku-chip.sku-chip-l3.active {
  background: rgba(168,85,247,0.25);
  border-color: #a855f7;
  color: #e9d5ff;
}
.sku-chip.sku-chip-history {
  border-color: rgba(34,197,139,0.2);
  background: rgba(34,197,139,0.07);
  color: #22c58b;
}
.sku-chip.sku-chip-history:hover {
  background: rgba(34,197,139,0.15);
}
.sku-chip.sku-chip-history.active {
  background: rgba(34,197,139,0.25);
  border-color: #22c58b;
  color: #c5f5e8;
}

/* ── Content tag chip editor ─────────────────────────────────────────────── */
.tag-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 32px;
}
.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(78,134,255,0.12);
  color: #8eb5ff;
  border: 1px solid rgba(78,134,255,0.22);
  border-radius: 6px;
  padding: 3px 8px 3px 10px;
  font-size: 13px;
  line-height: 1.4;
}
.tag-chip-del {
  background: none;
  border: none;
  color: #8eb5ff;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  padding: 0;
  opacity: 0.6;
  transition: opacity .15s;
}
.tag-chip-del:hover { opacity: 1; }

/* ── 侧边栏分组标签 & 分隔线 ────────────────────────────────────────────────── */
.sidebar-group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(231,239,255,0.28);
  padding: 12px 20px 2px;
}
.sidebar-divider {
  height: 1px;
  background: rgba(255,255,255,0.07);
  margin: 6px 14px;
}
.sidebar-item--subtle {
  opacity: 0.65;
  font-size: 13px;
}
.sidebar-item--subtle.active { opacity: 1; }

/* ── Overview 总览 ───────────────────────────────────────────────────────────── */

/* KPI section */
.ov-kpi-section {
  border: 1.5px solid #e8edf5;
  border-radius: 20px;
  background: #fff;
  padding: 24px 28px 20px;
  margin-bottom: 20px;
}
.ov-kpi-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.ov-kpi-section-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #aab4c8;
}
.ov-kpi-date {
  font-size: 12px;
  color: #c2cad8;
}
.ov-kpi-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.ov-kpi-card {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 20px;
}
.ov-kpi-card:first-child { padding-left: 0; }
.ov-kpi-card:last-child  { padding-right: 0; }
.ov-kpi-divider {
  width: 1px;
  background: #edf0f7;
  flex-shrink: 0;
  margin: 0 4px;
}
.ov-kpi-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #aab4c8;
}
.ov-kpi-num {
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
  color: #1a2033;
}
.ov-kpi-num--na { color: #d0d7e6; font-size: 36px; }
.ov-kpi-bar-track {
  height: 6px;
  background: #f0f3fa;
  border-radius: 99px;
  overflow: hidden;
}
.ov-kpi-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.7s cubic-bezier(.16,1,.3,1);
  min-width: 2px;
}
.ov-kpi-bar--rec  { background: linear-gradient(90deg, #22c55e, #4ade80); }
.ov-kpi-bar--top3 { background: linear-gradient(90deg, #4e86ff, #818cf8); }
.ov-kpi-bar--top1 { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.ov-kpi-desc {
  font-size: 12px;
  color: #aab4c8;
  line-height: 1.4;
}
.ov-kpi-hint { color: #c8d0de; font-style: italic; }

/* Vertical card stack */
.ov-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ov-row-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  border-radius: 14px;
  border: 1.5px solid #e8edf5;
  background: #fff;
  transition: box-shadow 0.15s, border-color 0.15s;
}
.ov-row-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.ov-row--done    { border-color: rgba(34,197,139,.25); background: rgba(34,197,139,.02); }
.ov-row--pending { border-color: #e8edf5; }
.ov-row--action  { border-color: rgba(78,134,255,.3); background: rgba(78,134,255,.03); }
.ov-row-icon {
  font-size: 24px;
  flex-shrink: 0;
  width: 34px;
  text-align: center;
}
.ov-row-body { flex: 1; min-width: 0; }
.ov-row-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a2033;
  margin-bottom: 4px;
}
.ov-row-insight {
  font-size: 13px;
  color: #7d879c;
  line-height: 1.5;
}
.ov-row-insight--empty  { color: #aab4c8; }
.ov-row-insight--action { color: #2a60e8; }
.ov-row-insight strong  { color: #1a2033; font-weight: 600; }
.ov-row-date { color: #aab4c8; }
.ov-row-arrow {
  font-size: 16px;
  color: #d0d7e6;
  flex-shrink: 0;
  transition: color 0.15s;
}
.ov-row-card:hover .ov-row-arrow { color: #4e86ff; }

/* Legacy classes kept for backwards compat (unused now) */
.overview-grid { display: none; }
.ov-done  { border-color: rgba(34,197,139,.3); background: rgba(34,197,139,.03); }
.ov-pending { border-color: #e8edf5; }
.ov-action { border-color: rgba(78,134,255,.3); background: rgba(78,134,255,.03); }

/* ── 数据同步状态栏 ────────────────────────────────────────────────────────── */
.sync-status-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(78,134,255,.05);
  border: 1px solid rgba(78,134,255,.12);
  border-radius: 12px;
  padding: 14px 22px;
  margin-bottom: 20px;
}
.sync-status-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 0 20px;
}
.sync-status-item:first-child { padding-left: 0; }
.sync-label { font-size: 11px; color: #aab4c8; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.sync-value { font-size: 14px; font-weight: 600; color: #1a2033; }
.sync-status-sep { width: 1px; height: 32px; background: rgba(78,134,255,.15); flex-shrink: 0; }

/* ── 信源解剖 ──────────────────────────────────────────────────────────────── */
.citation-anatomy { padding: 8px 0; }
.ca-action-bar {
  display: flex; align-items: center; gap: 16px; justify-content: space-between;
  padding: 14px 18px; background: #f4f7ff; border-radius: 10px; margin-bottom: 14px;
}
.ca-action-desc { font-size: 13px; color: #5a6a8a; line-height: 1.5; flex: 1; }
.ca-run-btn {
  padding: 7px 18px; font-size: 13px; font-weight: 600; border: none; border-radius: 8px;
  background: linear-gradient(135deg, #4e86ff, #6f5cff); color: #fff; cursor: pointer;
  white-space: nowrap; transition: opacity .15s;
}
.ca-run-btn:disabled { opacity: .55; cursor: default; }
.ca-clear-btn {
  padding: 7px 14px; font-size: 13px; font-weight: 600; border: 1px solid #e4e9f5;
  border-radius: 8px; background: #fff; color: #7d879c; cursor: pointer;
  white-space: nowrap; transition: all .15s;
}
.ca-clear-btn:hover:not(:disabled) { border-color: #ef4444; color: #ef4444; background: #fff5f5; }
.ca-clear-btn:disabled { opacity: .45; cursor: default; }
.ca-status-badge {
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 20px; white-space: nowrap;
}
.ca-status--running { background: #fef3c7; color: #92400e; }
.ca-status--done    { background: #d1fae5; color: #065f46; }
.ca-status--fail    { background: #fee2e2; color: #991b1b; }
.ca-msg { font-size: 13px; color: #4e86ff; margin-bottom: 10px; }
.ca-progress-bar-wrap { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ca-progress-bar { flex: 1; height: 6px; background: #e8edf8; border-radius: 3px; overflow: hidden; }
.ca-progress-fill { height: 100%; background: linear-gradient(90deg, #4e86ff, #6f5cff); border-radius: 3px; transition: width .4s; }
.ca-progress-pct { font-size: 12px; color: #7d879c; width: 36px; text-align: right; }
.ca-empty { text-align: center; color: #9aaac8; font-size: 14px; padding: 40px 0; }
.ca-cards { display: flex; flex-direction: column; gap: 16px; }
.ca-card {
  background: #fff; border: 1px solid #e4e9f5; border-radius: 12px; overflow: hidden;
  box-shadow: 0 1px 4px rgba(20,40,100,.05);
}
.ca-card-head {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: #f8faff; border-bottom: 1px solid #e4e9f5;
}
.ca-card-idx { font-size: 12px; font-weight: 700; color: #9aaac8; min-width: 24px; }
.ca-card-title-block { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ca-card-title {
  font-size: 13px; font-weight: 600; color: #1e2a45; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px;
}
.ca-card-title:hover { color: #4e86ff; text-decoration: underline; }
.ca-card-site { font-size: 11px; color: #9aaac8; }
.ca-cite-badge {
  font-size: 11px; font-weight: 600; background: #eff4ff; color: #4e86ff;
  padding: 2px 8px; border-radius: 10px;
}
.ca-fetch-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 10px; }
.ca-fetch--ok   { background: #d1fae5; color: #065f46; }
.ca-fetch--fail { background: #fee2e2; color: #991b1b; }
.ca-card-body {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0;
  padding: 0;
}
.ca-col { padding: 14px 16px; border-right: 1px solid #f0f3fb; }
.ca-col:last-child { border-right: none; }
.ca-col-title { font-size: 11px; font-weight: 700; color: #8b99b8; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; }
.ca-row { display: flex; align-items: flex-start; gap: 6px; margin-bottom: 6px; flex-wrap: wrap; }
.ca-label { font-size: 11px; color: #9aaac8; font-weight: 600; white-space: nowrap; padding-top: 2px; }
.ca-text { font-size: 13px; color: #2c3e6a; }
.ca-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.ca-tag {
  font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 20px;
}
.ca-tag--blue   { background: #eff4ff; color: #3b5fd4; }
.ca-tag--green  { background: #ecfdf5; color: #065f46; }
.ca-tag--orange { background: #fff7ed; color: #9a3412; }
.ca-tag--purple { background: #f5f3ff; color: #5b21b6; }
.ca-tag--red    { background: #fef2f2; color: #991b1b; }
.ca-quote {
  margin-top: 8px; font-size: 12px; color: #4a5568; font-style: italic; line-height: 1.5;
  background: #f8faff; border-left: 3px solid #c7d4f7; padding: 6px 10px; border-radius: 0 4px 4px 0;
}
.ca-quote-icon { font-size: 16px; color: #c7d4f7; margin-right: 4px; font-style: normal; }
.ca-comp-item { margin-bottom: 8px; }
.ca-comp-name { font-size: 12px; font-weight: 700; color: #1e2a45; display: block; margin-bottom: 4px; }

/* Platform tabs */
.ca-engine-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 10px; }
.ca-engine-tab {
  padding: 5px 14px; font-size: 12px; font-weight: 600; border-radius: 20px;
  border: 1.5px solid #e4e9f5; background: #f8faff; color: #7d879c;
  cursor: pointer; transition: all .15s; display: flex; align-items: center; gap: 5px;
}
.ca-engine-tab:hover { border-color: #4e86ff; color: #4e86ff; }
.ca-engine-tab.active { background: #4e86ff; border-color: #4e86ff; color: #fff; }
.ca-engine-count {
  font-size: 11px; background: rgba(255,255,255,.25); padding: 1px 6px; border-radius: 10px;
}
.ca-engine-tab:not(.active) .ca-engine-count { background: #e8edf8; color: #9aaac8; }

/* Intent filter tabs */
.ca-intent-tabs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 4px 0 14px; }
.ca-intent-label { font-size: 12px; color: #9aaac8; white-space: nowrap; }
.ca-intent-tab {
  padding: 4px 12px; font-size: 12px; font-weight: 500; border-radius: 20px;
  border: 1.5px solid #e4e9f5; background: #f8faff; color: #7d879c;
  cursor: pointer; transition: all .15s;
}
.ca-intent-tab:hover { border-color: #7c5cbf; color: #7c5cbf; }
.ca-intent-tab.active { background: #7c5cbf; border-color: #7c5cbf; color: #fff; }
.ca-intent-count { font-size: 11px; opacity: .75; margin-left: 2px; }

/* Summary section */
.ca-summary { background: #f4f7ff; border-radius: 12px; padding: 16px 18px; margin-bottom: 16px; }
.ca-summary-row { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; }
.ca-summary-block { min-width: 120px; }
.ca-summary-block--grow { flex: 1; }
.ca-summary-title { font-size: 11px; font-weight: 700; color: #8b99b8; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.ca-summary-stat { display: flex; align-items: baseline; gap: 2px; }
.ca-summary-num { font-size: 26px; font-weight: 800; color: #2563eb; }
.ca-summary-denom { font-size: 13px; color: #9aaac8; }
.ca-summary-sub { font-size: 11px; color: #aab4c8; margin-top: 2px; }
.ca-tag--freq { display: inline-flex; align-items: center; gap: 3px; }
.ca-tag--freq em { font-style: normal; font-size: 10px; opacity: .7; }
.ca-comp-summary-row { display: flex; align-items: center; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid #eef1f8; }
.ca-comp-summary-row:last-child { border-bottom: none; }
.ca-comp-freq { font-size: 11px; color: #9aaac8; }

/* Writing analysis tag colors */
.ca-tag--teal   { background: #f0fdfa; color: #0f766e; }
.ca-tag--slate  { background: #f1f5f9; color: #475569; }
.ca-tag--amber  { background: #fffbeb; color: #92400e; }
.ca-tag--indigo { background: #eef2ff; color: #3730a3; }

/* Writing analysis summary row */
.ca-summary-row--writing {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef1f8;
}

/* Writing analysis per-card row */
.ca-writing-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed #eef1f8;
}
.ca-writing-label {
  font-size: 11px;
  color: #9aaac8;
  font-weight: 600;
  white-space: nowrap;
  padding-top: 2px;
}
.ca-writing-tags { display: flex; flex-wrap: wrap; gap: 4px; }

/* Strategy tip — one-liner per card */
.ca-strategy-tip {
  display: flex; align-items: flex-start; gap: 6px;
  background: linear-gradient(90deg, #f0f4ff, #f7f0ff);
  border-left: 3px solid #7c6aff;
  border-radius: 0 8px 8px 0;
  padding: 7px 12px;
  font-size: 13px; color: #3d3080; line-height: 1.5;
  margin: 0 0 12px;
}
.ca-strategy-icon { font-size: 12px; color: #7c6aff; flex-shrink: 0; margin-top: 2px; }

/* Cross-platform comparison block */
.ca-cross-platform {
  background: #f8faff; border: 1px solid #e4eaff; border-radius: 12px;
  padding: 14px 16px; margin-bottom: 14px;
}
.ca-cross-title {
  font-size: 11px; font-weight: 700; color: #8b99b8;
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px;
}
.ca-cross-grid { display: flex; gap: 12px; flex-wrap: wrap; }
.ca-cross-card {
  flex: 1; min-width: 140px;
  background: #fff; border: 1px solid #e8edf8; border-radius: 8px;
  padding: 10px 12px;
}
.ca-cross-engine {
  font-size: 13px; font-weight: 700; color: #2d3a5a;
  margin-bottom: 6px;
}
.ca-cross-tip { font-size: 13px; color: #4a5a7a; line-height: 1.5; }

/* Competitor picker panel */
.competitor-picker {
  background: #f8faff;
  border: 1px solid #e2e8f8;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 14px;
}
.competitor-picker-title {
  font-size: 13px; color: #4a5a7a; margin-bottom: 10px;
}
.competitor-picker-list {
  display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
}
.competitor-picker-item {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1px solid #dde5f5; border-radius: 6px;
  padding: 6px 10px; cursor: pointer; font-size: 13px; color: #2d3a5a;
  transition: border-color .15s;
}
.competitor-picker-item:hover { border-color: #7c9aff; }
.competitor-picker-item input[type="checkbox"] { accent-color: #4e86ff; cursor: pointer; }
.competitor-picker-name { font-weight: 500; }
.competitor-picker-count { font-size: 11px; color: #8b99b8; }
.competitor-picker-actions {
  display: flex; gap: 8px;
}

/* ── 数据同步 step-by-step ──────────────────────────────────────────────── */
.sync-step { display: flex; flex-direction: column; gap: 0; }
.sync-step-label {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: #7d879c;
  margin-bottom: 10px; letter-spacing: 0.01em;
}
.sync-step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 24px; height: 24px; border-radius: 50%;
  background: rgba(78,134,255,0.15); color: #4e86ff;
  font-size: 12px; font-weight: 700; flex-shrink: 0;
}
.sync-step-num--done { background: rgba(34,197,139,0.15); color: #22c58b; }
.sync-step-num--locked { background: rgba(125,135,156,0.12); color: #555e72; }
.sync-step-connector {
  display: flex; justify-content: flex-start;
  padding: 0 0 0 11px; margin: 6px 0;
}
.sync-connector-line {
  width: 2px; height: 28px;
  background: rgba(78,134,255,0.3); border-radius: 2px;
}
.sync-connector-line--locked { background: rgba(125,135,156,0.15); }
.import-section-card--locked {
  opacity: 0.55; pointer-events: none;
}
.sync-locked-msg {
  padding: 18px 0; color: #555e72; font-size: 14px;
}
.sync-intent-done {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
}

/* ── 数据同步步骤已完成态 ──────────────────────────────────────────────── */
.sync-done-card { padding: 14px 18px; }
.sync-done-main {
  display: flex; align-items: center; gap: 14px;
}
.sync-done-icon {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: rgba(34,197,139,0.12); color: #22c58b;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700;
}
.sync-done-body { flex: 1; min-width: 0; }

/* ── Step 0 品牌基础配置 ─────────────────────────────────────────────────── */
.step0-form {
  display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px;
}
.step0-field {
  flex: 1 1 200px; display: flex; flex-direction: column; gap: 4px;
}
.step0-label {
  font-size: 11px; font-weight: 600; color: #7d879c;
}
.step0-input {
  padding: 7px 10px; border: 1px solid #d0d9ee; border-radius: 7px;
  font-size: 13px; color: #2d3648; background: white;
  outline: none; transition: border-color 0.15s;
}
.step0-input:focus { border-color: #4e86ff; }
.step0-actions {
  display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap;
}
.step0-msg { font-size: 12px; color: #b0bbcc; }
.step0-msg--ok { color: #22c58b; }

/* ── 竞品 chip 列表 (T6) ──────────────────────────────────────────────────── */
.competitor-chips-section {
  margin-top: 18px;
  padding: 14px 16px;
  background: #f6f8fc;
  border-radius: 10px;
  border: 1px solid #e2e9f8;
}
.competitor-chips-section .step0-label { display: block; margin-bottom: 8px; }

.competitor-chips-list {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 12px;
}
.competitor-chips-empty {
  font-size: 12px; color: #aab4c8;
  padding: 12px; text-align: center;
  background: white; border: 1px dashed #d0d9ee; border-radius: 8px;
  margin-bottom: 12px;
}

.competitor-chip {
  display: inline-flex; align-items: center;
  background: white; border: 1px solid #d0d9ee; border-radius: 999px;
  padding: 4px 6px 4px 12px;
  transition: all 0.15s;
  max-width: 100%;
}
.competitor-chip:hover {
  border-color: #4e86ff;
  box-shadow: 0 2px 8px rgba(78, 134, 255, 0.12);
}

.competitor-chip-content {
  display: inline-flex; align-items: baseline; gap: 6px;
  min-width: 0;
}
.competitor-chip-name {
  font-size: 13px; font-weight: 600; color: #2d3648;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 200px;
}
.competitor-chip-aliases {
  font-size: 11px; color: #aab4c8; font-weight: 400;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 220px;
}

.competitor-chip-actions {
  display: flex; align-items: center; gap: 2px;
  margin-left: 8px;
}
.competitor-chip-btn {
  width: 22px; height: 22px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: none; border-radius: 50%;
  font-size: 12px; color: #7d879c; cursor: pointer;
  transition: all 0.15s;
}
.competitor-chip-btn:hover { background: #f0f4fb; color: #4e86ff; }
.competitor-chip-btn--del:hover { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.competitor-chip-btn--save { color: #22c58b; }
.competitor-chip-btn--save:hover { background: rgba(34, 197, 139, 0.12); color: #16a07a; }

/* 编辑态：两个输入框 inline */
.competitor-chip-edit {
  display: inline-flex; align-items: center; gap: 6px; padding: 2px;
}
.step0-input--inline {
  height: 28px; padding: 4px 8px; font-size: 12px;
  min-width: 100px; max-width: 180px;
}

/* 新增表单 */
.competitor-chip-add {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  padding-top: 10px; border-top: 1px dashed #e2e9f8;
}
.competitor-chip-add .step0-input {
  flex: 1 1 160px; min-width: 160px;
}
.competitor-chip-add-btn {
  height: 32px; padding: 0 16px;
  background: #4e86ff; color: white;
  border: none; border-radius: 8px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  white-space: nowrap; transition: background 0.15s;
}
.competitor-chip-add-btn:hover { background: #3a78ff; }
.competitor-chip-add-btn:disabled {
  background: #d0d9ee; cursor: not-allowed;
}

/* ── sync-step--locked (dims entire step) ───────────────────────────────── */
.sync-step--locked { opacity: 0.6; pointer-events: none; }


.intent-list-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 16px; flex-wrap: wrap;
}
.top-tab-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: #4e86ff; color: #fff; border-radius: 9px;
  font-size: 11px; font-weight: 700; margin-left: 5px;
}
.intent-select-list {
  display: flex; flex-direction: column; gap: 8px;
}
.intent-select-item {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fff; border: 1.5px solid #dde5f5; border-radius: 10px;
  padding: 12px 14px; cursor: pointer; transition: border-color .15s, background .15s;
}
.intent-select-item:hover { border-color: #8eb5ff; background: #f7f9ff; }
.intent-select-item--checked { border-color: #4e86ff; background: #f0f5ff; }
.intent-select-checkbox { width: 16px; height: 16px; accent-color: #4e86ff; margin-top: 2px; flex-shrink: 0; cursor: pointer; }
.intent-select-body { flex: 1; min-width: 0; }
.intent-select-top {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 2px;
}
.intent-select-stage-tag {
  font-size: 11px; font-weight: 600; color: #4e86ff;
  background: rgba(78,134,255,0.1); border-radius: 4px; padding: 1px 6px; flex-shrink: 0;
}
.intent-select-name {
  font-size: 14px; font-weight: 600; color: #2d3a5a;
}
.intent-select-question {
  font-size: 12px; color: #7d879c;
}
.intent-select-vol {
  font-size: 15px; font-weight: 700; color: #2d3a5a;
  flex-shrink: 0; text-align: right; min-width: 80px;
}

/* ── 关键词级别选择 chips ─────────────────────────────────────────────── */
.intent-select-item {
  background: #fff; border: 1.5px solid #dde5f5; border-radius: 10px;
  padding: 14px 16px; transition: border-color .15s;
}
.intent-select-item:hover { border-color: #c2d1f5; }
.intent-select-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
}
.intent-kw-counter {
  font-size: 12px; color: #4e86ff; font-weight: 500; white-space: nowrap;
}
.kw-chips-row {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.kw-chip {
  display: inline-block; padding: 5px 11px; border-radius: 20px;
  font-size: 13px; cursor: pointer; user-select: none;
  border: 1.5px solid #dde5f5; color: #4a5a7a; background: #f4f7fe;
  transition: all .15s;
}
.kw-chip:hover { border-color: #8eb5ff; color: #4e86ff; background: #eef3ff; }
.kw-chip--selected {
  border-color: #4e86ff; color: #fff;
  background: #4e86ff;
}
.kw-chip--selected:hover { background: #3a72f0; border-color: #3a72f0; }
.kw-chip--static { cursor: default; pointer-events: none; }

/* ── 意图 List Review 模式 ───────────────────────────────────────────────── */
.intent-review-list {
  display: flex; flex-direction: column; gap: 8px;
}
.intent-review-item {
  background: #f7f9ff; border: 1.5px solid #d0dcf5; border-radius: 10px;
  padding: 14px 16px;
}
.intent-review-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
}
.intent-review-count {
  font-size: 12px; font-weight: 600; color: #4e86ff; white-space: nowrap; flex-shrink: 0;
}
.intent-list-empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 20px; gap: 12px; color: #9aabbf;
}
.intent-list-empty-icon {
  font-size: 36px; opacity: .45;
}
.intent-list-dirty-tip {
  font-size: 12px; color: #e8a030; font-weight: 500; padding: 4px 8px;
  background: rgba(232,160,48,.1); border-radius: 4px; white-space: nowrap;
}

/* ── 意图 List 操作按钮 pill 样式 ─────────────────────────────────────── */
.intent-action-pill {
  display: inline-flex; align-items: center; gap: 5px;
  height: 36px; padding: 0 16px; border-radius: 999px;
  background: rgba(78,134,255,0.07); border: 1.5px solid rgba(78,134,255,0.18);
  color: #4e86ff; font-size: 13px; font-weight: 500;
  cursor: pointer; white-space: nowrap; transition: all .15s;
}
.intent-action-pill:hover {
  background: rgba(78,134,255,0.14); border-color: rgba(78,134,255,0.35);
}
.intent-action-pill--confirm {
  background: rgba(34,197,139,0.08); border-color: rgba(34,197,139,0.25);
  color: #16a07a;
}
.intent-action-pill--confirm:hover {
  background: rgba(34,197,139,0.16); border-color: rgba(34,197,139,0.4);
}
.intent-action-pill:disabled {
  opacity: .4; cursor: not-allowed; pointer-events: none;
}

/* P3 setup handoff banner — 搭建期/运营期切换 */
.setup-handoff {
  margin: 16px 0 0;
  padding: 18px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(246,161,26,.08), rgba(78,134,255,.06));
  border: 1.5px dashed rgba(246,161,26,.35);
}
.setup-handoff--locked {
  background: linear-gradient(135deg, rgba(34,197,139,.08), rgba(78,134,255,.06));
  border-color: rgba(34,197,139,.4);
  border-style: solid;
}
.setup-handoff-body {
  display: flex; align-items: center; gap: 16px;
}
.setup-handoff-icon { font-size: 32px; flex-shrink: 0; }
.setup-handoff-text { flex: 1; min-width: 0; }
.setup-handoff-title {
  font-size: 15px; font-weight: 700; color: #1a2030; margin-bottom: 4px;
}
.setup-handoff-sub {
  font-size: 12.5px; color: #7d879c; line-height: 1.55;
}
.setup-handoff-action {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0;
}
.setup-handoff-msg { font-size: 12px; }
.setup-handoff-btn {
  height: 40px; padding: 0 20px; border-radius: 999px;
  background: linear-gradient(135deg, #f6a11a, #ff7d66);
  color: #fff; font-size: 13px; font-weight: 700;
  border: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(246,161,26,.35);
  transition: all .15s;
}
.setup-handoff-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(246,161,26,.45); }
.setup-handoff-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.setup-handoff-btn--unlock {
  background: #fff;
  color: #7d879c;
  border: 1.5px solid #d0d9ee;
  box-shadow: none;
  font-weight: 500;
}
.setup-handoff-btn--unlock:hover {
  background: #f6f8fc; color: #2d3648; transform: none;
}

/* P4 回收站 */
.recycle-section { margin-top: 16px; padding-top: 14px; border-top: 1px dashed #e2e9f8; }
.recycle-toggle {
  background: none; border: none; cursor: pointer;
  font-size: 13px; font-weight: 600; color: #46506b;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 0;
}
.recycle-toggle:hover { color: #4e86ff; }
.recycle-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 10px; background: #ef4444; color: #fff;
  font-size: 11px; font-weight: 700;
}
.recycle-hint { font-size: 12px; color: #aab4c8; font-weight: 400; margin-left: 4px; }
.recycle-panel { margin-top: 10px; padding: 12px; background: #f6f8fc; border-radius: 10px; }
.recycle-empty { font-size: 13px; color: #aab4c8; padding: 8px 4px; text-align: center; }
.recycle-msg { font-size: 12px; margin-bottom: 8px; }
.batch-item--deleted { opacity: 0.85; }

/* T4 API Key 服务器存储徽章 */
.settings-server-badge {
  display: inline-flex; align-items: center; gap: 4px;
  margin-left: 8px; padding: 2px 8px; border-radius: 999px;
  background: rgba(34, 197, 139, 0.12); color: #16a07a;
  font-size: 11px; font-weight: 600;
}
.custom-add-form {
  margin-bottom: 16px;
  background: #f7f9ff; border: 1.5px solid #c2d1f5; border-radius: 10px;
  padding: 16px 18px;
}
.custom-add-form-body { display: flex; flex-direction: column; gap: 10px; }
.custom-add-row { display: flex; align-items: flex-start; gap: 10px; }
.custom-add-label {
  font-size: 13px; font-weight: 500; color: #4a5568; white-space: nowrap;
  padding-top: 7px; min-width: 56px;
}
.custom-add-input {
  flex: 1; height: 34px; padding: 0 10px; border-radius: 6px;
  border: 1.5px solid #d0dcf5; background: #fff; font-size: 13px; color: #2d3a5a;
  outline: none; transition: border-color .15s;
}
.custom-add-input:focus { border-color: #4e86ff; }
.custom-add-textarea {
  flex: 1; padding: 8px 10px; border-radius: 6px;
  border: 1.5px solid #d0dcf5; background: #fff; font-size: 13px; color: #2d3a5a;
  outline: none; resize: vertical; line-height: 1.5; transition: border-color .15s;
}
.custom-add-textarea:focus { border-color: #4e86ff; }

/* ── 自定义关键词 chip 样式 ───────────────────────────────────────────── */
.intent-select-stage-tag--custom {
  color: #8b5cf6; background: rgba(139,92,246,.1);
}
.kw-chip--custom {
  background: #7c5cbf; border-color: #7c5cbf; cursor: pointer; pointer-events: auto;
  padding-right: 6px;
}
.kw-chip--custom:hover { background: #6b4dad; border-color: #6b4dad; }
.kw-chip-remove {
  margin-left: 5px; font-size: 11px; opacity: .8;
}

/* ── 诊断总结报告 ───────────────────────────────────────────── */
.report-panel { padding: 26px 32px 40px; }

/* 空状态 / 生成入口 — 居中 hero */
.report-hero {
  background: #fff; border: 1px solid #eef2f8; border-radius: 16px;
  padding: 56px 32px; text-align: center; max-width: 620px; margin: 24px auto;
  box-shadow: 0 6px 20px rgba(124,143,179,.08);
}
.report-hero-icon { font-size: 34px; color: #4f86ff; line-height: 1; }
.report-hero-icon--spin { animation: reportSpin 1.4s linear infinite; display: inline-block; }
@keyframes reportSpin { to { transform: rotate(360deg); } }
.report-hero-title { font-size: 18px; font-weight: 800; color: #1f2937; margin-top: 14px; }
.report-hero-sub { font-size: 13.5px; color: #7d879c; line-height: 1.7; margin: 10px auto 0; max-width: 420px; }
.report-hero-btn { height: 44px; padding: 0 30px; font-size: 15px; margin-top: 22px; }
.report-hero-err { color: #ef4444; font-size: 13px; margin-top: 12px; }

/* 门禁清单 */
.report-gate {
  background: #fff; border: 1px solid #eef2f8; border-radius: 16px;
  padding: 40px 36px; max-width: 560px; margin: 24px auto;
  box-shadow: 0 6px 20px rgba(124,143,179,.08); text-align: center;
}
.report-gate-icon { font-size: 30px; }
.report-gate-title { font-size: 17px; font-weight: 800; color: #1f2937; margin-top: 8px; }
.report-gate-sub { font-size: 13px; color: #7d879c; margin-top: 6px; }
.report-gate-list { margin: 22px 0 4px; text-align: left; }
.report-gate-item { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid #f1f4fa; }
.rg-dot {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  border: 1.5px solid #d8e0ee; color: #fff; background: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700;
}
.rg-dot.done { background: #22c58b; border-color: #22c58b; }
.rg-label { flex: 1; font-size: 14px; color: #7d879c; }
.rg-label.done { color: #1f2937; font-weight: 600; }
.rg-go {
  height: 30px; padding: 0 12px; font-size: 12px; font-weight: 600;
  color: #3d80ff; background: #eef4ff; border: none; border-radius: 8px; cursor: pointer;
}
.rg-go:hover { background: #e0ebff; }
.rg-done { font-size: 12px; color: #22c58b; font-weight: 600; }
.report-gate-btn { height: 42px; width: 100%; margin-top: 22px; opacity: .5; cursor: not-allowed; }

/* 工具条 */
.report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.report-toolbar-meta { font-size: 12.5px; color: #8a93a6; }
.report-regen { height: 34px; padding: 0 16px; font-size: 13px; color: #3d80ff; border: 1.5px solid #d0dcf5; }

/* 报告卡片 */
.report-card {
  background: #fff; border: 1px solid #eef2f8; border-radius: 16px;
  padding: 24px 28px; margin-bottom: 18px; box-shadow: 0 4px 16px rgba(124,143,179,.07);
}
.report-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.report-num {
  width: 28px; height: 28px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg,#4f86ff,#6f9bff); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800;
}
.report-num--muted { background: #aeb8cc; }
.report-card-title { margin: 0; font-size: 17px; font-weight: 800; color: #1f2937; }
.report-h3 { font-size: 13.5px; font-weight: 700; color: #515c7a; margin: 20px 0 10px; }
.report-note { font-size: 13px; color: #6b7488; margin: 0 0 12px; line-height: 1.7; }
.report-strategy {
  background: #f5f9ff; border-left: 3px solid #4f86ff; border-radius: 8px;
  padding: 16px 18px; font-size: 14px; line-height: 1.85; color: #2a3656; margin-bottom: 6px;
}
.report-warn {
  background: #fffaf0; border: 1px solid #fde6b0; color: #92580e;
  border-radius: 10px; padding: 12px 14px; font-size: 13px;
}
.report-loser { color: #ef4444; }

/* chips */
.report-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.report-chip { background: #f2f5fb; color: #525e78; border-radius: 999px; padding: 5px 13px; font-size: 12.5px; white-space: nowrap; }
.report-chip--blue { background: #eaf1ff; color: #2f6bff; }

/* tables */
.report-table-wrap { overflow-x: auto; border: 1px solid #eef2f8; border-radius: 12px; }
.report-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.report-table th { text-align: left; color: #8a93a6; font-weight: 600; font-size: 12px; padding: 11px 16px; background: #f8fafd; border-bottom: 1px solid #eef2f8; white-space: nowrap; }
.report-table td { padding: 12px 16px; border-bottom: 1px solid #f3f6fb; color: #2a3344; }
.report-table tbody tr:last-child td { border-bottom: none; }
.report-table tbody tr:hover { background: #fafcff; }

/* metric cards */
.report-metric-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 6px; }
@media (max-width: 760px) { .report-metric-row { grid-template-columns: repeat(2,1fr); } }
.report-metric { background: linear-gradient(135deg,#f3f8ff,#eef4ff); border: 1px solid #e6eefb; border-radius: 14px; padding: 18px 16px; text-align: center; }
.report-metric--muted { background: #f7f9fc; border-color: #eef1f6; }
.rm-num { font-size: 28px; font-weight: 800; color: #2f6bff; line-height: 1.05; }
.report-metric--muted .rm-num { color: #59647e; }
.rm-label { font-size: 12px; color: #8a93a6; margin-top: 6px; }

/* lists */
.report-list { margin: 4px 0; padding-left: 20px; }
.report-list li { margin: 7px 0; line-height: 1.7; font-size: 13.5px; color: #2a3344; }

/* 2-col */
.report-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .report-cols { grid-template-columns: 1fr; gap: 16px; } }

/* per-engine cards */
.report-engine-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(260px,1fr)); gap: 14px; }
.report-engine-card { border: 1px solid #e9eef7; border-radius: 14px; padding: 16px 18px; background: #fbfcff; }
.ree-name { font-weight: 800; color: #2f6bff; margin-bottom: 10px; font-size: 14px; }
.ree-row { display: flex; gap: 8px; font-size: 13px; line-height: 1.7; margin: 8px 0; color: #2a3656; }
.ree-tag { flex-shrink: 0; background: #eef2fb; color: #7a8499; border-radius: 6px; padding: 1px 8px; font-size: 11px; font-weight: 700; height: fit-content; margin-top: 2px; }

/* ── 诊断报告：补充样式 ───────────────────────────────────────── */
.report-metric-row--3 { grid-template-columns: repeat(3,1fr); }
@media (max-width: 760px) { .report-metric-row--3 { grid-template-columns: repeat(3,1fr); } }
.report-priority-pill {
  display: inline-block; min-width: 38px; text-align: center;
  background: #eaf1ff; color: #2f6bff; font-weight: 800;
  border-radius: 8px; padding: 3px 8px; font-size: 13px;
}
/* 被压过的问题：竞品名用低调的琥珀色 chip，不再刺眼红色 */
.report-list--plain { list-style: none; padding-left: 0; }
.report-list--plain li { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px 0; border-bottom: 1px solid #f3f6fb; }
.report-list--plain li:last-child { border-bottom: none; }
.report-winner-chip {
  background: #fdf3e3; color: #b06a14; border-radius: 6px;
  padding: 1px 9px; font-size: 12px; font-weight: 600;
}

/* ③ 核心结论高亮 + 子卡片 */
.report-conclusion {
  background: linear-gradient(135deg,#eef4ff,#f3f0ff);
  border: 1px solid #dde6fb; border-radius: 14px; padding: 18px 20px;
}
.report-conclusion-label {
  display: inline-block; background: #4f86ff; color: #fff;
  font-size: 11px; font-weight: 800; border-radius: 6px; padding: 2px 9px; margin-bottom: 8px;
}
.report-conclusion-text { font-size: 14.5px; line-height: 1.9; color: #28304a; }
.report-subcard { border-radius: 12px; padding: 14px 16px; }
.report-subcard--problem { background: #fff7f5; border: 1px solid #ffe0d6; }
.report-subcard--opp { background: #f1fbf6; border: 1px solid #cfeede; }
.report-subcard-title { font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.report-subcard--problem .report-subcard-title { color: #d2691e; }
.report-subcard--opp .report-subcard-title { color: #16a06a; }

/* 打印标题（仅打印可见） */
.report-print-title { display: none; }

/* ── 打印 / 下载 PDF ─────────────────────────────────────────── */
@media print {
  @page { margin: 14mm; }
  body.printing-report { background: #fff !important; }
  /* 只保留报告内容 */
  body.printing-report .sidebar,
  body.printing-report .content-header,
  body.printing-report .report-toolbar { display: none !important; }
  body.printing-report .dashboard,
  body.printing-report .dashboard-main,
  body.printing-report .content-card,
  body.printing-report .dashboard-body,
  body.printing-report .report-panel {
    display: block !important; padding: 0 !important; margin: 0 !important;
    background: #fff !important; box-shadow: none !important; border: none !important;
    min-height: 0 !important; overflow: visible !important;
  }
  body.printing-report .report-print-title {
    display: block; font-size: 22px; font-weight: 800; color: #1f2937;
    margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid #e5e9f2;
  }
  body.printing-report .report-print-title span { display: block; font-size: 13px; font-weight: 500; color: #8a93a6; margin-top: 4px; }
  body.printing-report .report-card {
    box-shadow: none !important; border: 1px solid #e5e9f2 !important;
    break-inside: avoid; page-break-inside: avoid; margin-bottom: 14px;
  }
  body.printing-report .report-engine-card,
  body.printing-report .report-subcard,
  body.printing-report .report-metric { break-inside: avoid; }
  /* 强制保留底色（图表/徽标） */
  body.printing-report .report-num,
  body.printing-report .report-conclusion,
  body.printing-report .report-metric,
  body.printing-report .report-chip,
  body.printing-report .report-priority-pill,
  body.printing-report .report-winner-chip {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
}
