/* Intelligence Center Styles */
.intelligence-panel {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  border-top: 1px solid var(--line);
  background: var(--panel-2);
  height: 100%;
}

.intelligence-panel.is-hidden {
  display: none;
}

.intelligence-tabs {
  display: flex;
  padding: 8px 8px 0;
  gap: 4px;
  border-bottom: 1px solid var(--line);
}

.intelligence-tab {
  flex: 1;
  text-align: center;
  padding: 8px 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-2);
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  transition: all 160ms var(--ease-smooth);
}

.intelligence-tab.is-active {
  color: var(--accent-blue);
  background: rgba(147, 165, 255, 0.08);
}

.intelligence-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Skills View */
.skill-category {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-category-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  padding-left: 4px;
}

.skill-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  transition: all 160ms ease;
  text-decoration: none;
  color: inherit;
}

.skill-item:hover {
  background: rgba(147, 165, 255, 0.08);
  border-color: rgba(147, 165, 255, 0.2);
}

.skill-icon {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(147, 165, 255, 0.1);
  color: var(--accent-blue);
  font-size: 14px;
}

.skill-info {
  min-width: 0;
}

.skill-name {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* History View */
.history-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line-soft);
}

.history-item:last-child {
  border-bottom: none;
}

.history-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.history-type {
  font-size: 10px;
  font-family: 'IBM Plex Mono', monospace;
  text-transform: uppercase;
  font-weight: 700;
}

.history-type.skill_created { color: #7ac896; }
.history-type.self_improvement { color: #93a5ff; }

.history-time {
  font-size: 10px;
  color: var(--muted-2);
}

.history-desc {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.4;
}

/* Toast */
.intelligence-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  background: var(--panel-3);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-xl);
  animation: toastIn 300ms var(--ease-smooth);
}

@keyframes toastIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
