* {
  box-sizing: border-box;
}

:root {
  --bg: #eef4ff;
  --bg-deep: #e4edff;
  --panel: rgba(255, 255, 255, 0.96);
  --panel-soft: #f4f8ff;
  --line: #d9e4f6;
  --line-strong: #c2d4f4;
  --text: #162033;
  --muted: #63748c;
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-deep: #103dba;
  --primary-soft: #dbeafe;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --cyan: #0ea5e9;
  --dark: #081224;
  --shadow: 0 18px 48px rgba(30, 64, 175, 0.08);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(59, 130, 246, 0.16), transparent 30%),
    linear-gradient(180deg, var(--bg) 0%, #f7faff 100%);
  color: var(--text);
}

#app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 288px 1fr;
}

.sidebar {
  background: linear-gradient(180deg, #081224 0%, #0f2246 55%, #0c1f3d 100%);
  color: #fff;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  border-right: 1px solid rgba(255,255,255,0.06);
}

.brand-block {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.brand-badge {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #60a5fa 0%, #2563eb 60%, #0ea5e9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35);
}

.brand-block h1 {
  margin: 0 0 6px;
  font-size: 20px;
  line-height: 1.35;
}

.brand-block p,
.sidebar-panel p {
  margin: 0;
  color: rgba(255,255,255,0.74);
  font-size: 13px;
  line-height: 1.6;
}

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

.nav-item {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.78);
  padding: 12px 14px;
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.nav-item.active,
.nav-item:hover {
  background: linear-gradient(90deg, rgba(37,99,235,0.34), rgba(14,165,233,0.18));
  color: #fff;
  transform: translateX(2px);
}

.sidebar-panel {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}

.sidebar-panel-accent {
  background: linear-gradient(180deg, rgba(37,99,235,0.22), rgba(14,165,233,0.1));
}

.sidebar-title {
  font-size: 12px;
  color: rgba(255,255,255,0.58);
  margin-bottom: 10px;
}

.sidebar-kpi {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 10px;
}

.sidebar-kpi strong {
  font-size: 26px;
}

.sidebar-kpi span {
  font-size: 12px;
  color: rgba(255,255,255,0.72);
}

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

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  font-size: 12px;
}

.page {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.topbar {
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(194, 212, 244, 0.72);
  position: sticky;
  top: 0;
  z-index: 10;
}

.eyebrow,
.section-kicker {
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar h2 {
  margin: 0;
  font-size: 28px;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.main {
  padding: 24px 28px 44px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.card {
  background: var(--panel);
  border: 1px solid rgba(194, 212, 244, 0.8);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.4;
}

.card p {
  color: var(--muted);
}

.dark-card {
  background: linear-gradient(135deg, #0b1d3f 0%, #12357a 58%, #2563eb 100%);
  color: #fff;
  border: 0;
  box-shadow: 0 24px 64px rgba(29, 78, 216, 0.24);
}

.dark-card p {
  color: rgba(255,255,255,0.82);
}

.executive-hero {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 22px;
  margin-bottom: 20px;
}

.hero-tag {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 12px;
  background: rgba(255,255,255,0.12);
  margin-bottom: 16px;
}

.executive-hero h3 {
  font-size: 34px;
  line-height: 1.3;
  margin-bottom: 14px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.hero-side-panel {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}

.hero-side-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}

.status-stack,
.info-list,
.metric-list,
.case-list,
.list-stack,
.conclusions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.grid-2,
.grid-3,
.stats-grid,
.overview-hero-grid,
.dashboard-mini-grid,
.compact-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.grid-2,
.overview-hero-grid,
.compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3,
.dashboard-mini-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
}

.stats-grid-hero {
  margin-top: 18px;
}

.stat-card {
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
}

.stat-card.accent {
  position: relative;
  overflow: hidden;
}

.stat-card.accent::after {
  content: "";
  position: absolute;
  inset: auto -20px -28px auto;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.18), transparent 70%);
}

.stat-card span {
  color: var(--muted);
  font-size: 13px;
}

.stat-card strong {
  display: block;
  font-size: 32px;
  margin-top: 10px;
}

.stat-card em {
  display: block;
  margin-top: 10px;
  color: var(--primary-dark);
  font-style: normal;
  font-size: 12px;
}

.home-top-grid {
  align-items: stretch;
}

.persona-showcase-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}

.persona-panel {
  position: relative;
  overflow: hidden;
}

.persona-panel::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.46), transparent 70%);
  pointer-events: none;
}

.persona-panel-customer {
  background: linear-gradient(135deg, #f7fbff 0%, #eef6ff 60%, #e0efff 100%);
}

.persona-panel-sales {
  background: linear-gradient(135deg, #fffaf2 0%, #fff5e8 55%, #ffedd5 100%);
}

.persona-title-row {
  margin-bottom: 16px;
}

.persona-panel-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.persona-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.72);
  background: rgba(255,255,255,0.72);
}

.persona-hero-customer {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 10px 28px rgba(37,99,235,0.08);
}

.persona-hero-sales {
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.6), 0 10px 28px rgba(217,119,6,0.08);
}

.persona-name {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
}

.persona-subtitle {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}

.persona-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

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

.persona-block {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--line);
}

.persona-block-full {
  grid-column: 1 / -1;
}

.persona-block-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
  font-weight: 700;
}

.persona-block p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.persona-case-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.persona-case-chip {
  padding: 10px 12px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 13px;
}

.section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dashboard-tile,
.info-item,
.metric-item,
.case-item,
.topic-card,
.conclusion-item,
.list-item,
.track-card,
.status-item,
.risk-card,
.drilldown-card,
.voc-card {
  padding: 16px;
  border-radius: 18px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.status-item {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}

.status-item strong,
.dashboard-tile strong,
.track-card strong,
.risk-card strong,
.drilldown-card strong,
.topic-card strong,
.metric-item strong,
.list-item strong,
.conclusion-item strong {
  display: block;
  margin-bottom: 6px;
}

.dashboard-tile strong {
  font-size: 28px;
  color: var(--text);
}

.dashboard-tile span,
.status-item span {
  color: var(--muted);
  font-size: 13px;
}

.dashboard-tile em,
.track-card em,
.risk-card em,
.drilldown-card em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  color: var(--primary-dark);
  font-size: 12px;
}

.frontline-tile {
  min-height: 160px;
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
}

.voc-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.track-card,
.risk-card,
.drilldown-card {
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
}

.track-card .item-meta,
.risk-card .item-meta,
.drilldown-card .item-meta {
  margin-top: 10px;
}

.feature-card {
  min-height: 140px;
}

.section-head-card p {
  margin: 0;
}

.item-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.item-desc,
.case-item p,
.conclusion-item p,
.topic-card p {
  color: var(--muted);
  margin: 0;
  line-height: 1.7;
}

.item-meta {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.meta-chip {
  background: #e7efff;
  color: #1e40af;
  font-size: 12px;
  border-radius: 999px;
  padding: 4px 8px;
}

.meta-chip.warning {
  background: #fff4e5;
  color: #b45309;
}

.meta-chip.danger {
  background: #fef2f2;
  color: #b91c1c;
}

.meta-chip.success {
  background: #ecfdf3;
  color: #15803d;
}

.stage-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stage-item {
  flex: 1 1 150px;
  border-radius: 18px;
  padding: 16px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
}

.stage-item.high {
  background: #effcf3;
  border-color: #bbf7d0;
}

.stage-item.medium {
  background: #fffbeb;
  border-color: #fde68a;
}

.stage-item.low {
  background: #fef2f2;
  border-color: #fecaca;
}

.stage-name {
  color: var(--muted);
  font-size: 13px;
}

.stage-count {
  font-size: 28px;
  font-weight: 700;
  margin-top: 8px;
}

.overview-header-card,
.overview-health-card {
  min-height: 180px;
}

.health-score-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.health-score-block strong {
  font-size: 56px;
  line-height: 1;
  color: var(--primary);
}

.health-score-block p {
  margin: 0;
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 11px 16px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.24);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-deep) 100%);
}

.btn-secondary {
  background: #e8f0ff;
  color: var(--primary-dark);
}

.btn-small {
  background: #eef4ff;
  color: #1e3a8a;
  padding: 8px 12px;
  font-size: 13px;
}

.xiaozhi-card {
  min-height: 620px;
}

.xiaozhi-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.xiaozhi-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: #eff6ff;
  color: var(--primary-dark);
  font-size: 13px;
}

.chat-messages {
  height: 420px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f8fbff;
  padding: 16px;
}

.message {
  display: flex;
  margin-bottom: 12px;
}

.message.user {
  justify-content: flex-end;
}

.message-content {
  max-width: 80%;
  border-radius: 16px;
  padding: 12px 14px;
  line-height: 1.7;
}

.message.bot .message-content {
  background: #fff;
  border: 1px solid var(--line);
}

.message.user .message-content {
  background: var(--primary);
  color: #fff;
}

.chat-input-row {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.chat-input-row input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
}

.quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.xiaozhi-scene-bar,
.xiao-overlay-context {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  background: linear-gradient(180deg, #f7faff 0%, #eef4ff 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.scene-label {
  color: var(--primary);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.scene-hint,
.xiao-overlay-context p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  max-width: 320px;
}

.xiao-fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 68px;
  height: 68px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.36);
  z-index: 25;
}

.xiao-fab:hover {
  transform: translateY(-2px) scale(1.02);
}

.xiao-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.22s ease;
}

.xiao-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.xiao-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 36, 0.34);
  backdrop-filter: blur(6px);
}

.xiao-overlay-panel {
  position: absolute;
  top: 16px;
  right: 16px;
  bottom: 16px;
  width: min(460px, calc(100vw - 24px));
  background: rgba(255,255,255,0.98);
  border: 1px solid rgba(194, 212, 244, 0.92);
  border-radius: 26px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  padding: 18px;
  transform: translateX(24px);
  transition: transform 0.22s ease;
}

.xiao-overlay.open .xiao-overlay-panel {
  transform: translateX(0);
}

.xiao-overlay-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.xiao-overlay-head h3 {
  margin: 4px 0 0;
  font-size: 22px;
}

.xiao-close-btn {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--primary-dark);
  font-size: 24px;
  cursor: pointer;
}

.xiao-overlay-actions {
  margin-top: 0;
  margin-bottom: 12px;
}

.xiao-overlay-messages {
  flex: 1;
  height: auto;
  min-height: 260px;
}

.xiao-overlay-input-row {
  margin-top: 12px;
}

@media (max-width: 1200px) {
  #app {
    grid-template-columns: 1fr;
  }

  .sidebar {
    gap: 16px;
  }

  .nav {
    flex-direction: row;
    overflow-x: auto;
  }
}

.clickable-card {
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  position: relative;
}

.clickable-card::after {
  content: '点击查看详情';
  position: absolute;
  top: 14px;
  right: 16px;
  font-size: 12px;
  color: var(--primary-dark);
  background: rgba(37, 99, 235, 0.08);
  padding: 4px 8px;
  border-radius: 999px;
}

.clickable-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.14);
  border-color: #93c5fd;
  background: linear-gradient(180deg, #ffffff 0%, #eef5ff 100%);
}

.clickable-card:active {
  transform: translateY(0);
}

.clickable-card.is-highlighted {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), 0 18px 42px rgba(37, 99, 235, 0.18);
}

.interaction-toast {
  position: sticky;
  top: 88px;
  z-index: 11;
  display: none;
  margin-bottom: 14px;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.12);
}

.interaction-toast.show {
  display: block;
}

.profile-drawer {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 40;
}

.profile-drawer.open {
  display: block;
}

.profile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 36, 0.36);
  backdrop-filter: blur(2px);
}

.profile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(460px, 92vw);
  height: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 50px rgba(8, 18, 36, 0.18);
  padding: 22px;
  overflow-y: auto;
}

.profile-drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 18px;
}

.profile-drawer-head h3 {
  margin: 6px 0 8px;
}

.profile-drawer-head p {
  margin: 0;
}

.profile-drawer-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.profile-metric,
.profile-section {
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.profile-metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}

.profile-metric strong {
  font-size: 24px;
}

.profile-section h4 {
  margin: 0 0 10px;
  font-size: 15px;
}

.profile-section p,
.profile-section li {
  color: var(--muted);
  line-height: 1.7;
}

.profile-section ul {
  margin: 0;
  padding-left: 18px;
}

.org-tree-card,
.org-case-chain-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.org-tree-level,
.org-level-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.org-tree-root {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.org-tree-root strong {
  font-size: 22px;
}

.org-tree-root p,
.org-level-metrics,
.org-level-sublist,
.org-case-chain-card p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.org-tree-rows,
.org-level-sublist,
.org-chain-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.org-level-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

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

.org-chain-inline span,
.org-chain-inline i {
  font-style: normal;
}

.org-chain-inline span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef4ff;
  color: #1e3a8a;
  font-size: 13px;
}

.org-chain-inline i {
  color: var(--muted);
}

.profile-chain-section {
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.org-anomaly-card {
  cursor: pointer;
}

.case-chain-card {
  position: relative;
  overflow: hidden;
}

.chain-step-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 700;
}

.profile-action-row {
  margin-top: 8px;
}

@media (max-width: 960px) {
  .executive-hero,
  .grid-2,
  .grid-3,
  .stats-grid,
  .overview-hero-grid,
  .dashboard-mini-grid,
  .compact-grid,
  .persona-grid {
    grid-template-columns: 1fr;
  }

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

  .section-title-row,
  .xiaozhi-head,
  .profile-drawer-head,
  .persona-hero,
  .xiaozhi-scene-bar,
  .xiao-overlay-context,
  .xiao-overlay-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .persona-tag-row {
    justify-content: flex-start;
  }

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

  .profile-drawer-panel {
    width: 100%;
  }

  .xiao-overlay-panel {
    inset: auto 8px 8px 8px;
    width: auto;
    height: min(78vh, 760px);
  }

  .xiao-fab {
    right: 16px;
    bottom: 16px;
    width: 60px;
    height: 60px;
    font-size: 16px;
  }
}
