.intelligence-section {
  --intel-blue: #2563eb;
  --intel-ink: #14213d;
  --intel-muted: #7786a1;
  padding-bottom: 28px;
}

.intelligence-hero {
  background:
    radial-gradient(circle at 83% 22%, rgba(87, 83, 255, .24), transparent 28%),
    linear-gradient(135deg, #102b57 0%, #164b92 52%, #285fe8 100%) !important;
}

.knowledge-hero {
  background:
    radial-gradient(circle at 88% 18%, rgba(58, 210, 180, .22), transparent 30%),
    linear-gradient(135deg, #102d3d 0%, #155e75 55%, #168ba0 100%) !important;
}

.review-hero {
  background:
    radial-gradient(circle at 86% 10%, rgba(192, 132, 252, .25), transparent 29%),
    linear-gradient(135deg, #241b53 0%, #44318d 54%, #6649d9 100%) !important;
}

.intelligence-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, .66);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 2px;
}

.cockpit-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cockpit-hero-actions .el-button,
.review-hero > .el-button {
  color: #fff;
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .12);
}

.live-state-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 12px;
  color: rgba(255, 255, 255, .86);
  background: rgba(255, 255, 255, .1);
  font-size: 12px;
  font-weight: 700;
}

.live-state-chip span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #aab6cc;
}

.live-state-chip.is-live span {
  background: #45e5ae;
  box-shadow: 0 0 0 5px rgba(69, 229, 174, .13);
}

.cockpit-overview-grid {
  display: grid;
  grid-template-columns: 1.65fr repeat(3, 1fr);
  gap: 13px;
  margin-bottom: 14px;
}

.health-score-card,
.cockpit-kpi-card {
  min-height: 116px;
  border: 1px solid rgba(31, 62, 112, .08);
  border-radius: 17px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 9px 28px rgba(29, 55, 96, .045);
}

.health-score-card {
  grid-row: span 2;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px;
}

.health-score-ring {
  --score: 0;
  position: relative;
  width: 112px;
  height: 112px;
  flex: 0 0 112px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(#2f72e8 calc(var(--score) * 1%), #e8eef8 0);
}

.health-score-ring::after {
  position: absolute;
  inset: 9px;
  content: '';
  border-radius: 50%;
  background: #fff;
}

.health-score-ring > div {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.health-score-ring strong {
  color: #17233d;
  font-size: 32px;
  line-height: 1;
}

.health-score-ring span {
  margin-top: 6px;
  color: #8a97aa;
  font-size: 10px;
}

.health-score-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.health-score-copy > span {
  overflow: hidden;
  color: #8794aa;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.health-score-copy > strong {
  margin: 7px 0;
  color: #17233d;
  font-size: 19px;
}

.health-score-copy > small {
  color: #77859b;
  font-size: 11px;
  line-height: 1.7;
}

.cockpit-kpi-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px;
}

.cockpit-kpi-card > i {
  width: 39px;
  height: 39px;
  display: grid;
  flex: 0 0 39px;
  place-items: center;
  border-radius: 12px;
  background: #edf4ff;
  color: #2b6fdb;
  font-size: 18px;
}

.cockpit-kpi-card i.metric-green { color: #15936d; background: #eaf8f3; }
.cockpit-kpi-card i.metric-purple { color: #7957d7; background: #f2edff; }
.cockpit-kpi-card i.metric-cyan { color: #0787a4; background: #e9f8fb; }
.cockpit-kpi-card i.metric-amber { color: #b4770f; background: #fff7e5; }

.cockpit-kpi-card > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.cockpit-kpi-card span { color: #7d8aa0; font-size: 11px; }
.cockpit-kpi-card strong { margin: 3px 0; color: #18243d; font-size: 23px; line-height: 1; }
.cockpit-kpi-card small { color: #9ba6b7; font-size: 9px; white-space: nowrap; }

.cockpit-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr);
  gap: 14px;
}

.intelligence-card {
  border: 1px solid rgba(31, 62, 112, .08) !important;
  border-radius: 17px !important;
  box-shadow: 0 10px 30px rgba(29, 55, 96, .045) !important;
}

.intelligence-card .el-card__body { padding: 18px !important; }

.intelligence-card-head {
  min-height: 42px;
  margin-bottom: 13px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.intelligence-card-head span {
  display: block;
  margin-bottom: 4px;
  color: #9ba7b8;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.intelligence-card-head h3 { margin: 0; color: #17233d; font-size: 16px; }

.event-stream-list {
  max-height: 335px;
  overflow-y: auto;
  padding-right: 3px;
}

.event-stream-item {
  min-height: 68px;
  padding: 11px 4px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  border-top: 1px solid #eef2f7;
}

.event-avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #285ea9;
  background: #edf4ff;
  font-size: 13px;
  font-weight: 800;
}

.event-copy { min-width: 0; }
.event-copy > div { display: flex; align-items: center; gap: 7px; }
.event-copy > div strong { color: #25324a; font-size: 12px; }
.event-copy > div span { margin-left: auto; color: #a0aabd; font-size: 9px; }
.event-copy p { margin: 5px 0 0; overflow: hidden; color: #4f5e75; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.event-copy small { display: block; margin-top: 5px; overflow: hidden; color: #7c8da7; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.insight-list { display: flex; flex-direction: column; gap: 9px; }
.insight-item { min-height: 48px; padding: 10px; display: flex; align-items: flex-start; gap: 10px; border-radius: 11px; background: #f7f9fd; }
.insight-item b { width: 25px; height: 25px; display: grid; flex: 0 0 25px; place-items: center; border-radius: 8px; color: #2c68ce; background: #e9f1ff; font-size: 9px; }
.insight-item p { margin: 1px 0 0; color: #4d5b71; font-size: 11px; line-height: 1.65; }

.runtime-health-panel { margin-top: 14px; padding-top: 14px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; border-top: 1px solid #edf1f6; }
.runtime-health-panel > div { padding: 9px 10px; display: flex; align-items: center; justify-content: space-between; border-radius: 9px; background: #f8fafe; }
.runtime-health-panel span { color: #8794a7; font-size: 10px; }
.runtime-health-panel strong { color: #27354d; font-size: 14px; }

.intelligence-empty { min-height: 220px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #9ba7b9; text-align: center; }
.intelligence-empty i { margin-bottom: 10px; color: #c3cede; font-size: 31px; }
.intelligence-empty strong { color: #66758c; font-size: 13px; }
.intelligence-empty span { margin-top: 6px; font-size: 10px; }
.intelligence-empty.compact { min-height: 100px; }

.knowledge-layout {
  display: grid;
  grid-template-columns: minmax(290px, .82fr) minmax(0, 1.55fr);
  gap: 14px;
  align-items: start;
}

.knowledge-list-card .el-card__body { padding-right: 10px !important; }
.product-list { max-height: 560px; overflow-y: auto; padding-right: 8px; }
.product-list-item { padding: 12px 8px; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 25px; align-items: center; gap: 9px; border-top: 1px solid #eef2f7; transition: .18s ease; }
.product-list-item:hover,.product-list-item.active { margin: 0 -4px; padding-left: 12px; padding-right: 12px; border-radius: 11px; background: #f4f8ff; }
.product-symbol { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; color: #147b8e; background: #e8f7f8; }
.product-list-copy { min-width: 0; cursor: pointer; }
.product-list-copy > div { display: flex; align-items: center; gap: 6px; }
.product-list-copy strong,.product-list-copy span,.product-list-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-list-copy strong { color: #25324a; font-size: 12px; }
.product-list-copy span { margin: 4px 0; color: #7b899e; font-size: 10px; }
.product-list-copy small { color: #9aa6b7; font-size: 9px; }

.knowledge-editor-card .el-card__body { padding: 20px !important; }
.knowledge-basic-grid,.knowledge-dual-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.knowledge-field { margin-bottom: 12px; }
.knowledge-field.span-2 { grid-column: span 2; }
.knowledge-field label { display: block; margin-bottom: 6px; color: #536177; font-size: 11px; font-weight: 700; }
.knowledge-editor-footer { margin-top: 4px; padding-top: 15px; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid #edf1f6; }

.review-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 14px; align-items: start; }
.review-session-list { max-height: 620px; overflow-x: hidden; overflow-y: auto; }
.review-session-item { padding: 13px 8px; display: grid; grid-template-columns: 44px minmax(0, 1fr) 18px; align-items: center; gap: 10px; border-top: 1px solid #edf1f6; cursor: pointer; transition: .18s ease; }
.review-session-item:hover,.review-session-item.active { margin: 0 -4px; padding-left: 12px; padding-right: 12px; border-radius: 11px; background: #f3f5ff; }
.review-date { width: 44px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 11px; color: #5840b3; background: #f0edff; }
.review-date strong { font-size: 12px; }
.review-date span { margin-top: 2px; font-size: 8px; }
.review-session-copy { min-width: 0; }
.review-session-copy > div { display: flex; align-items: center; gap: 6px; }
.review-session-copy strong { min-width: 0; flex: 1; overflow: hidden; color: #26334b; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.review-session-copy .el-tag { flex: 0 0 auto; }
.review-session-copy > span { display: block; margin-top: 6px; color: #8491a5; font-size: 9px; }
.review-session-item > i { color: #b0bbca; }

.review-detail { min-width: 0; display: flex; flex-direction: column; gap: 13px; }
.review-detail-hero { min-height: 130px; padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; border-radius: 17px; color: #fff; background: linear-gradient(125deg,#31246b,#563fb1 58%,#755de3); box-shadow: 0 13px 30px rgba(68,49,141,.16); }
.review-detail-hero span { color: rgba(255,255,255,.62); font-size: 8px; font-weight: 800; letter-spacing: 1.5px; }
.review-detail-hero h3 { margin: 7px 0; font-size: 21px; }
.review-detail-hero p { color: rgba(255,255,255,.7); font-size: 10px; }
.review-score { width: 80px; height: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.2); border-radius: 50%; background: rgba(255,255,255,.1); }
.review-score strong { font-size: 27px; }
.review-score span { margin-top: 3px; font-size: 8px; letter-spacing: 0; }
.review-metric-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; }
.review-metric-grid > div { min-height: 78px; padding: 13px; display: flex; flex-direction: column; justify-content: center; border: 1px solid rgba(31,62,112,.07); border-radius: 13px; background: #fff; }
.review-metric-grid span { color: #8592a7; font-size: 9px; }
.review-metric-grid strong { margin-top: 6px; color: #202e47; font-size: 20px; }
.review-insights-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.intent-bars { display: flex; flex-direction: column; gap: 12px; }
.intent-bars > div > div:first-child { margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; color: #66758d; font-size: 10px; }
.review-detail-empty { min-height: 420px; align-items: center; justify-content: center; border: 1px dashed #cad5e5; border-radius: 17px; color: #98a5b8; background: rgba(255,255,255,.65); }
.review-detail-empty i { font-size: 35px; }
.review-detail-empty strong { margin: 12px 0 5px; color: #65748b; }
.review-detail-empty span { font-size: 10px; }

@media (max-width: 1180px) {
  .cockpit-overview-grid { grid-template-columns: 1.4fr repeat(2, 1fr); }
  .health-score-card { grid-row: span 3; }
  .review-metric-grid { grid-template-columns: repeat(3, 1fr); }
}
