* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --surface-2: #1a1a1a;
  --border: #2a2a2a;
  --text: #e5e5e5;
  --text-muted: #888;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --success: #22c55e;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Code', monospace;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

.app-layout {
  display: flex;
  min-height: 100vh;
}

/* Chat Sidebar */
.chat-sidebar {
  width: 380px;
  min-width: 380px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
}

.chat-toggle {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 8px;
  cursor: pointer;
  border-radius: 0 8px 8px 0;
  writing-mode: vertical-rl;
  font-size: 14px;
  z-index: 100;
}

.chat-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-header h2 {
  font-size: 16px;
  font-weight: 600;
}

.chat-header-actions {
  display: flex;
  gap: 8px;
}

.header-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.2s;
}

.header-btn:hover {
  border-color: var(--accent);
  color: var(--text);
}

.chat-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.chat-welcome {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
}

.chat-welcome p {
  margin-bottom: 20px;
  font-size: 14px;
}

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

.suggestion {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  transition: border-color 0.2s;
}

.suggestion:hover {
  border-color: var(--accent);
}

.chat-message {
  margin-bottom: 16px;
}

.chat-message.user .message-content {
  background: var(--accent);
  color: white;
  padding: 10px 14px;
  border-radius: 16px 16px 4px 16px;
  margin-left: 20%;
}

.chat-message.assistant .message-content {
  background: var(--surface-2);
  padding: 14px 16px;
  border-radius: 16px 16px 16px 4px;
  margin-right: 10%;
}

.message-content.loading {
  display: flex;
  gap: 4px;
  padding: 14px 20px;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) { animation-delay: -0.32s; }
.dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

.chat-input-form {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}

.chat-input-form input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.chat-input-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.chat-input-form button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.chat-input-form button:hover:not(:disabled) {
  background: var(--accent-hover);
}

.chat-input-form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Portfolio Main */
.portfolio {
  flex: 1;
  padding: 40px 60px;
  max-width: 1200px;
  overflow-y: auto;
}

.loading-portfolio {
  padding: 60px;
  text-align: center;
  color: var(--text-muted);
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: spin 1s linear infinite;
}

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

.streaming-content {
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin: 20px auto;
  max-width: 800px;
  max-height: 400px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-muted);
}

.portfolio-header {
  margin-bottom: 40px;
}

.portfolio-header h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
}

.subtitle {
  color: var(--text-muted);
  font-size: 16px;
}

.date-range {
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--border);
}

/* Stats */
.stats-section {
  display: flex;
  gap: 24px;
  margin-bottom: 48px;
}

.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 24px 32px;
  border-radius: 12px;
  text-align: center;
  flex: 1;
}

.stat-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}

.stat-label {
  color: var(--text-muted);
  font-size: 14px;
  margin-top: 4px;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}

.skill-section h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.skill-bar {
  margin-bottom: 12px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 13px;
}

.skill-name {
  font-family: var(--font-mono);
}

.skill-count {
  color: var(--text-muted);
}

.skill-track {
  height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--success));
  border-radius: 3px;
  transition: width 0.5s ease-out;
}

/* Projects */
.projects-section {
  margin-bottom: 48px;
}

.projects-section h2 {
  font-size: 20px;
  margin-bottom: 24px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s;
  display: block;
}

.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.project-name {
  font-size: 16px;
  font-weight: 600;
}

.project-commits {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.project-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.tech-tag {
  background: var(--surface-2);
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent);
}

.project-dates {
  font-size: 12px;
  color: var(--text-muted);
}

/* Breakdown */
.commit-breakdown h2 {
  font-size: 20px;
  margin-bottom: 24px;
}

.breakdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.breakdown-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: 12px;
}

.breakdown-card h3 {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.breakdown-item {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

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

.breakdown-label {
  font-family: var(--font-mono);
}

.breakdown-count {
  color: var(--text-muted);
}

/* Markdown Body */
.markdown-body {
  font-size: 14px;
  line-height: 1.7;
}

.markdown-body h1, .markdown-body h2, .markdown-body h3 {
  margin-top: 20px;
  margin-bottom: 12px;
  font-weight: 600;
}

.markdown-body h1 { font-size: 20px; }
.markdown-body h2 { font-size: 17px; }
.markdown-body h3 { font-size: 15px; }

.markdown-body p {
  margin-bottom: 12px;
}

.markdown-body ul, .markdown-body ol {
  margin-bottom: 12px;
  padding-left: 20px;
}

.markdown-body li {
  margin-bottom: 4px;
}

.markdown-body a {
  color: var(--accent);
  text-decoration: none;
}

.markdown-body a:hover {
  text-decoration: underline;
}

.markdown-body code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.markdown-body pre {
  background: var(--bg);
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  margin-bottom: 12px;
}

.markdown-body pre code {
  background: none;
  padding: 0;
}

.markdown-body blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.markdown-body strong {
  font-weight: 600;
}

.markdown-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

/* Code Highlighting */
.hljs-keyword { color: #c678dd; }
.hljs-string { color: #98c379; }
.hljs-number { color: #d19a66; }
.hljs-function { color: #61afef; }
.hljs-comment { color: #5c6370; }
.hljs-built_in { color: #e5c07b; }

/* Dashboard */
.dashboard {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.dashboard-header {
  text-align: center;
  padding: 20px 0;
}

.dashboard-name {
  font-size: 42px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.dashboard-tagline {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  transition: border-color 0.2s, transform 0.2s;
}

.stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.stat-card .stat-value {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}

.stat-card .stat-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
}

.section-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.dashboard-skills .skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.skill-category {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.category-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.skill-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-item .skill-name {
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: color 0.2s;
}

.skill-item .skill-name:hover {
  color: var(--accent);
}

.skill-level {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.skill-item .skill-bar {
  height: 6px;
  background: var(--surface-2);
  border-radius: 3px;
  overflow: hidden;
  margin: 0;
}

.skill-item .skill-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--success));
  border-radius: 3px;
  transition: width 0.5s ease-out;
}

.skill-evidence {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.skill-evidence a {
  color: var(--accent);
  text-decoration: none;
}

.skill-evidence a:hover {
  text-decoration: underline;
}

.dashboard-projects .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.dashboard-projects .project-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dashboard-projects .project-name {
  background: none;
  border: none;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  text-align: left;
  transition: color 0.2s;
}

.dashboard-projects .project-name:hover {
  color: var(--accent);
}

.project-description {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.project-description a {
  color: var(--accent);
  text-decoration: none;
}

.project-description a:hover {
  text-decoration: underline;
}

.project-technologies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-technologies .tech-tag {
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent);
  cursor: pointer;
  transition: all 0.2s;
}

.project-technologies .tech-tag:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: white;
}

.project-link {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.project-link:hover {
  color: var(--accent);
}

.dashboard-highlights {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.highlights-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.highlight-item {
  font-size: 14px;
  color: var(--text);
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.highlight-item::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.highlight-item a {
  color: var(--accent);
  text-decoration: none;
}

.highlight-item a:hover {
  text-decoration: underline;
}

/* Status Area */
/* Status Banner - Expandable tool call display */
.status-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 20px;
  overflow: hidden;
}

.status-banner-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background 0.2s;
}

.status-banner-header:hover {
  background: var(--surface-2);
}

.status-banner-icon {
  font-size: 16px;
}

.status-banner-summary {
  flex: 1;
  font-size: 14px;
  color: var(--text);
}

.status-banner-toggle {
  font-size: 10px;
  color: var(--text-muted);
}

.status-banner.collapsed .status-banner-content {
  display: none;
}

.status-banner-content {
  border-top: 1px solid var(--border);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
}

/* Individual tool call */
.tool-call {
  background: var(--surface-2);
  border-radius: 6px;
  overflow: hidden;
}

.tool-call-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 13px;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: background 0.2s;
}

.tool-call-header:hover {
  background: var(--border);
}

.tool-call.in_progress .tool-call-header {
  color: var(--accent);
}

.tool-call.completed .tool-call-header {
  color: var(--success);
}

.tool-call.failed .tool-call-header {
  color: #ef4444;
}

.tool-icon {
  font-size: 14px;
}

.tool-name {
  flex: 1;
  font-weight: 500;
}

.tool-expand {
  font-size: 10px;
  color: var(--text-muted);
}

.tool-call-details {
  padding: 12px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  font-size: 12px;
}

.tool-args {
  margin-bottom: 10px;
}

.tool-args code {
  display: block;
  margin-top: 4px;
  padding: 8px;
  background: var(--surface);
  border-radius: 4px;
  font-family: var(--font-mono);
  word-break: break-all;
}

.tool-result {
  margin-top: 8px;
}

.tool-result pre {
  margin-top: 4px;
  padding: 8px;
  background: var(--surface);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 150px;
  overflow-y: auto;
}

/* Technology Layout */
.technology-layout {
  max-width: 900px;
}

.expertise-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.expertise-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.expertise-badge.advanced {
  background: var(--success);
  color: white;
}

.expertise-badge.intermediate {
  background: var(--accent);
  color: white;
}

.expertise-badge.learning {
  background: var(--surface-2);
  color: var(--text-muted);
}

.expertise-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
}

.expertise-stats .stat {
  font-size: 14px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.expertise-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

.key-projects h2,
.notable-commits h2,
.related-skills h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.technology-layout .project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.technology-layout .project-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.technology-layout .project-card h3 a {
  color: var(--text);
  text-decoration: none;
  transition: color 0.2s;
}

.technology-layout .project-card h3 a:hover {
  color: var(--accent);
}

.role-badge {
  display: inline-block;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.project-card.main .role-badge {
  background: var(--accent);
  color: white;
}

.github-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
}

.github-link:hover {
  text-decoration: underline;
}

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

.commit-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.impact-badge {
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  background: var(--surface-2);
  color: var(--text-muted);
  flex-shrink: 0;
}

.commit-item.high .impact-badge {
  background: var(--success);
  color: white;
}

.commit-date {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.commit-summary {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  flex: 1;
}

.commit-summary a {
  color: var(--accent);
  text-decoration: none;
}

.commit-summary a:hover {
  text-decoration: underline;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Project Layout */
.project-layout {
  max-width: 900px;
}

.project-overview {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}

.overview-header {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

.status-badge {
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 4px;
  text-transform: uppercase;
}

.status-badge.active {
  background: var(--success);
  color: white;
}

.status-badge.maintained {
  background: var(--accent);
  color: white;
}

.status-badge.archived {
  background: var(--surface-2);
  color: var(--text-muted);
}

.commit-count {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.overview-description {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
}

.tech-stack h2,
.key-contributions h2,
.project-timeline h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tech-tag {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.2s;
}

.tech-tag:hover {
  background: var(--accent);
  color: white;
}

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

.contribution-item {
  display: flex;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.type-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border-radius: 50%;
  font-size: 16px;
  flex-shrink: 0;
}

.contribution-item.feature .type-icon {
  background: var(--success);
  color: white;
}

.contribution-item.fix .type-icon {
  background: #ef4444;
  color: white;
}

.contribution-item.refactor .type-icon {
  background: var(--accent);
  color: white;
}

.contribution-content h3 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}

.contribution-content p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

.contribution-content a {
  color: var(--accent);
  text-decoration: none;
}

.contribution-content a:hover {
  text-decoration: underline;
}

.timeline {
  border-left: 2px solid var(--border);
  padding-left: 24px;
  margin-left: 8px;
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -29px;
  top: 4px;
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
}

.timeline-date {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: 4px;
  display: block;
}

.timeline-event {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
}

.timeline-event a {
  color: var(--accent);
  text-decoration: none;
}

.timeline-event a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 1200px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .chat-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 50;
    transform: translateX(0);
  }

  .portfolio {
    padding: 24px;
    margin-left: 0;
  }

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

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

/* ===========================================
   Skeleton Loaders & Progressive Rendering
   =========================================== */

/* Base skeleton element */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--surface-2) 25%,
    var(--border) 50%,
    var(--surface-2) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Skeleton containers */
.skeleton-container {
  opacity: 0.7;
}

.skeleton-title {
  margin-bottom: 12px;
}

.skeleton-subtitle {
  margin-top: 8px;
}

.skeleton-section-title {
  margin-bottom: 16px;
}

.skeleton-bar {
  margin-top: 4px;
  border-radius: 2px;
}

.skeleton-tag {
  border-radius: 4px;
}

/* Skeleton stat cards */
.skeleton-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  padding: 20px;
}

/* Skeleton project cards */
.skeleton-project {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
}

/* Fade-in animation for appearing content */
.fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

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

/* Staggered project appearance */
.project-appear {
  animation: projectAppear 0.4s ease-out forwards;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}

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

/* Streaming state indicator */
.portfolio.streaming {
  position: relative;
}

.portfolio.streaming::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--accent),
    transparent
  );
  background-size: 200% 100%;
  animation: streamingBar 1s linear infinite;
}

@keyframes streamingBar {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Smooth transitions for data updates */
.dashboard-header,
.dashboard-stats,
.dashboard-skills,
.dashboard-projects,
.dashboard-highlights {
  transition: opacity 0.2s ease-out;
}

/* Skeleton portfolio container */
.skeleton-portfolio {
  min-height: 100vh;
}

/* Skills skeleton layout */
.skeleton-container .skills-categories {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 24px;
  margin-top: 16px;
}

.skeleton-container .skill-category {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skeleton-container .skill-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skeleton-container .skill-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Highlights skeleton */
.skeleton-container .highlights-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.skeleton-container .highlight-item {
  list-style: none;
}
