/* === RESET & BASE === */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #0f0f1a;
  --bg2: #1a1a2e;
  --bg3: #16213e;
  --bg4: #1e2a4a;
  --red: #e74c3c;
  --accent: #00d4aa;
  --text: #e0e0e0;
  --text2: #8892a4;
  --border: #2a2a4a;
  --shadow: 0 2px 12px rgba(0,0,0,0.3);
  --radius: 8px;
}
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; }
a { color: var(--accent); text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: 14px; }

/* === LAYOUT === */
#app { display: flex; min-height: 100vh; }
#sidebar {
  width: 220px; min-height: 100vh; background: var(--bg2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 20px 0; position: fixed; top: 0; left: 0; z-index: 100;
}
.sidebar-brand { padding: 0 20px 24px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); margin-bottom: 16px; }
.brand-icon { font-size: 28px; }
.brand-text { font-weight: 700; font-size: 18px; line-height: 1.2; }
.brand-text small { font-size: 11px; color: var(--text2); font-weight: 400; text-transform: uppercase; letter-spacing: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: var(--text2);
  transition: all 0.2s; font-size: 14px; font-weight: 500; border-left: 3px solid transparent;
}
.nav-item:hover { color: var(--text); background: var(--bg3); }
.nav-item.active { color: var(--accent); border-left-color: var(--accent); background: rgba(0,212,170,0.05); }
.nav-icon { font-size: 18px; width: 24px; text-align: center; }

#content { flex: 1; margin-left: 220px; padding: 28px 32px; min-height: 100vh; }

/* === COMMON === */
.page-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.page-title { font-size: 24px; font-weight: 700; }
.btn {
  padding: 8px 16px; border-radius: 6px; border: none; font-size: 13px; font-weight: 600;
  transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-primary:hover { background: #00eebb; }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger:hover { background: #ff5c4d; }
.btn-ghost { background: transparent; color: var(--text2); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--text2); }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn-approve { background: var(--accent); color: #000; }
.btn-changes { background: #f39c12; color: #000; }
.btn-reject { background: var(--red); color: #fff; }

.card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.badge {
  padding: 3px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; display: inline-block;
}
.badge-idea { background: #8b5cf620; color: #a78bfa; }
.badge-research { background: #3b82f620; color: #60a5fa; }
.badge-draft { background: #f59e0b20; color: #fbbf24; }
.badge-review { background: #8b5cf620; color: #c084fc; }
.badge-published { background: #10b98120; color: #34d399; }
.badge-news { background: #ef444420; color: #f87171; }
.badge-feature { background: #8b5cf620; color: #a78bfa; }
.badge-how-to { background: #06b6d420; color: #22d3ee; }
.badge-opinion { background: #f59e0b20; color: #fbbf24; }
.badge-listicle { background: #ec489920; color: #f472b6; }
.priority-high { color: #ef4444; }
.priority-medium { color: #f59e0b; }
.priority-low { color: #22c55e; }

.input, .textarea, .select {
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px; color: var(--text);
  padding: 8px 12px; width: 100%; transition: border-color 0.2s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); }
.textarea { resize: vertical; min-height: 80px; }
.form-group { margin-bottom: 16px; }
.form-label { display: block; margin-bottom: 6px; font-size: 12px; color: var(--text2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

/* === STATS GRID === */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; }
.stat-value { font-size: 32px; font-weight: 700; color: var(--accent); }
.stat-label { font-size: 12px; color: var(--text2); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }

/* === DASHBOARD === */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dashboard-grid .full-width { grid-column: 1 / -1; }
.section-title { font-size: 16px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.activity-list { list-style: none; }
.activity-item {
  padding: 10px 0; border-bottom: 1px solid var(--border); display: flex; gap: 12px; align-items: flex-start; font-size: 13px;
}
.activity-item:last-child { border-bottom: none; }
.activity-icon { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 14px; background: var(--bg3); flex-shrink: 0; }
.activity-time { color: var(--text2); font-size: 11px; margin-top: 2px; }
.agent-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.agent-row:last-child { border-bottom: none; }
.agent-dot { width: 8px; height: 8px; border-radius: 50%; }
.agent-dot.active { background: var(--accent); }
.agent-dot.idle { background: var(--text2); }
.agent-name { font-weight: 600; font-size: 14px; }
.agent-task { color: var(--text2); font-size: 12px; }

/* === KANBAN === */
.kanban-board { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 16px; min-height: 500px; }
.kanban-column {
  min-width: 260px; flex: 1; background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column; max-height: calc(100vh - 140px);
}
.kanban-header {
  padding: 14px 16px; font-weight: 600; font-size: 14px; border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center; flex-shrink: 0;
}
.kanban-count { background: var(--bg); padding: 2px 8px; border-radius: 10px; font-size: 11px; color: var(--text2); }
.kanban-cards { padding: 12px; flex: 1; overflow-y: auto; min-height: 60px; }
.kanban-cards.drag-over { background: rgba(0,212,170,0.05); border-radius: 0 0 var(--radius) var(--radius); }
.kanban-card {
  background: var(--bg3); border: 1px solid var(--border); border-radius: 6px; padding: 12px;
  margin-bottom: 10px; cursor: grab; transition: all 0.2s;
}
.kanban-card:hover { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow); }
.kanban-card.dragging { opacity: 0.4; }
.kanban-card-title { font-weight: 600; font-size: 13px; margin-bottom: 8px; }
.kanban-card-meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 11px; }
.kanban-card-date { color: var(--text2); font-size: 11px; margin-top: 6px; }

/* === PROJECT DETAIL === */
.project-header { margin-bottom: 24px; }
.project-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.project-title-input {
  background: transparent; border: none; color: var(--text); font-size: 24px; font-weight: 700;
  flex: 1; min-width: 200px; padding: 4px 0; border-bottom: 2px solid transparent;
}
.project-title-input:focus { outline: none; border-bottom-color: var(--accent); }
.project-meta-row { display: flex; gap: 12px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.project-meta-row .select { width: auto; min-width: 120px; }

.tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.tab {
  padding: 10px 20px; font-size: 13px; font-weight: 600; color: var(--text2); cursor: pointer;
  border-bottom: 2px solid transparent; transition: all 0.2s;
}
.tab:hover { color: var(--text); }
.tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Editor */
.editor-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; min-height: 400px; }
.editor-pane textarea { width: 100%; height: 100%; min-height: 400px; background: var(--bg); color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 16px; font-family: 'Fira Code', 'Consolas', monospace; font-size: 14px; line-height: 1.6; resize: none; }
.editor-pane textarea:focus { outline: none; border-color: var(--accent); }
.preview-pane { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 16px; overflow-y: auto; max-height: 600px; }
.preview-pane h1 { font-size: 24px; margin-bottom: 12px; }
.preview-pane h2 { font-size: 20px; margin: 16px 0 8px; }
.preview-pane h3 { font-size: 17px; margin: 14px 0 6px; }
.preview-pane p { margin-bottom: 10px; line-height: 1.7; }
.preview-pane ul, .preview-pane ol { margin: 0 0 10px 20px; }
.preview-pane code { background: var(--bg3); padding: 2px 6px; border-radius: 3px; font-size: 13px; }
.preview-pane pre { background: var(--bg3); padding: 12px; border-radius: 6px; margin-bottom: 10px; overflow-x: auto; }
.preview-pane pre code { background: transparent; padding: 0; }
.preview-pane blockquote { border-left: 3px solid var(--accent); padding-left: 12px; color: var(--text2); margin-bottom: 10px; }

.version-list { margin-top: 16px; }
.version-item { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.version-item:hover { background: var(--bg3); }

/* SEO */
.seo-field { margin-bottom: 20px; }
.char-count { font-size: 11px; margin-top: 4px; }
.char-count.good { color: var(--accent); }
.char-count.warn { color: #f59e0b; }
.char-count.bad { color: var(--red); }
.serp-preview { background: #fff; border-radius: 8px; padding: 16px; margin-top: 16px; max-width: 600px; }
.serp-title { color: #1a0dab; font-size: 18px; font-weight: 400; line-height: 1.3; cursor: pointer; }
.serp-title:hover { text-decoration: underline; }
.serp-url { color: #006621; font-size: 13px; margin: 2px 0; }
.serp-desc { color: #545454; font-size: 13px; line-height: 1.5; }
.seo-score { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.seo-score-circle {
  width: 60px; height: 60px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; border: 3px solid;
}
.seo-checks { list-style: none; }
.seo-check { padding: 6px 0; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.seo-check.pass { color: var(--accent); }
.seo-check.fail { color: var(--red); }

/* Review */
.review-actions { display: flex; gap: 10px; margin: 16px 0; }
.review-status { padding: 8px 16px; border-radius: 6px; font-weight: 600; margin-bottom: 16px; display: inline-block; }
.review-status.approved { background: #10b98120; color: #34d399; }
.review-status.rejected { background: #ef444420; color: #f87171; }
.review-status.changes_requested { background: #f59e0b20; color: #fbbf24; }
.review-status.pending { background: var(--bg3); color: var(--text2); }
.comment-thread { margin-top: 16px; }
.comment-item { padding: 12px; background: var(--bg3); border-radius: 6px; margin-bottom: 10px; }
.comment-author { font-weight: 600; font-size: 13px; }
.comment-time { color: var(--text2); font-size: 11px; margin-left: 8px; }
.comment-text { margin-top: 6px; font-size: 14px; line-height: 1.5; }
.comment-form { display: flex; gap: 10px; margin-top: 12px; }
.comment-form input { flex: 0 0 120px; }
.comment-form textarea { flex: 1; min-height: 40px; }

/* Timeline */
.timeline { position: relative; padding-left: 24px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; padding: 8px 0 16px 16px; }
.timeline-item::before {
  content: ''; position: absolute; left: -20px; top: 12px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg2);
}
.timeline-action { font-weight: 600; font-size: 13px; }
.timeline-details { color: var(--text2); font-size: 13px; margin-top: 2px; }
.timeline-time { color: var(--text2); font-size: 11px; margin-top: 4px; }

/* === ARCHIVE === */
.archive-filters { display: flex; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.archive-filters .input { max-width: 300px; }
.archive-filters .select { max-width: 160px; }
.archive-table { width: 100%; border-collapse: collapse; }
.archive-table th { text-align: left; padding: 10px 12px; font-size: 12px; color: var(--text2); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); }
.archive-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); font-size: 13px; }
.archive-table tr:hover td { background: var(--bg3); }

/* === STATS PAGE === */
.charts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.donut-container { display: flex; justify-content: center; align-items: center; gap: 24px; padding: 20px; }
.donut { width: 160px; height: 160px; border-radius: 50%; position: relative; }
.donut-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 80px; height: 80px; background: var(--bg2); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; }
.donut-legend { list-style: none; }
.donut-legend li { padding: 4px 0; font-size: 13px; display: flex; align-items: center; gap: 8px; }
.donut-legend .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.bar-chart { display: flex; align-items: flex-end; gap: 8px; height: 200px; padding: 20px 0; }
.bar-col { display: flex; flex-direction: column; align-items: center; flex: 1; }
.bar { width: 100%; max-width: 40px; background: var(--accent); border-radius: 4px 4px 0 0; transition: height 0.3s; min-height: 4px; }
.bar-label { font-size: 10px; color: var(--text2); margin-top: 6px; writing-mode: vertical-rl; text-orientation: mixed; }
.bar-value { font-size: 11px; color: var(--text); margin-bottom: 4px; }

/* === MODAL === */
#modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 200; }
#modal {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%); z-index: 201;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; width: 90%; max-width: 500px; max-height: 80vh; overflow-y: auto;
}
.modal-title { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; }
.hidden { display: none !important; }

/* === EDITOR TOGGLE (mobile only) === */
.editor-toggle-btn { display: none; }

/* === HAMBURGER === */
.hamburger {
  display: none; position: fixed; top: 12px; left: 12px; z-index: 150;
  background: var(--bg2); border: 1px solid var(--border); color: var(--text);
  font-size: 22px; width: 44px; height: 44px; border-radius: 8px;
  align-items: center; justify-content: center; cursor: pointer;
}

/* === PROJECT LIST TABLE === */
.project-list-section { margin-top: 28px; }
.project-list-section .section-title { margin-bottom: 10px; }
.project-list-controls { display: flex; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.project-list-controls .select { max-width: 160px; }
.project-list-table { width: 100%; border-collapse: collapse; }
.project-list-table th {
  text-align: left; padding: 8px 10px; font-size: 11px; color: var(--text2);
  text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border);
  cursor: pointer; user-select: none; white-space: nowrap;
}
.project-list-table th:hover { color: var(--text); }
.project-list-table th .sort-arrow { margin-left: 4px; font-size: 10px; }
.project-list-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); font-size: 13px; }
.project-list-table tr { cursor: pointer; transition: background 0.15s; }
.project-list-table tbody tr:hover td { background: var(--bg3); }

/* === RESPONSIVE === */

/* Tablet */
@media (max-width: 1024px) {
  #sidebar { width: 60px; }
  .brand-text, .nav-item span:not(.nav-icon) { display: none; }
  .sidebar-brand { justify-content: center; padding: 0 0 24px; }
  .nav-item { justify-content: center; padding: 12px; border-left: none; min-height: 44px; }
  #content { margin-left: 60px; padding: 20px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .editor-split { grid-template-columns: 1fr 1fr; }
  .charts-grid { grid-template-columns: 1fr; }
  .kanban-column { min-width: 220px; }
  .btn { min-height: 44px; padding: 10px 16px; }
  .tab { min-height: 44px; padding: 10px 16px; }
}

/* Mobile */
@media (max-width: 767px) {
  .hamburger { display: flex; }
  #sidebar {
    width: 260px; transform: translateX(-100%); transition: transform 0.25s ease;
  }
  #sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,0.5); }
  .brand-text, .nav-item span:not(.nav-icon) { display: initial; }
  .sidebar-brand { justify-content: flex-start; padding: 0 20px 24px; }
  .nav-item { justify-content: flex-start; padding: 12px 20px; border-left: 3px solid transparent; min-height: 44px; }
  #content { margin-left: 0; padding: 60px 12px 16px; }
  .page-header { flex-wrap: wrap; gap: 10px; }
  .page-title { font-size: 20px; }

  /* Kanban horizontal scroll, full-width cards */
  .kanban-board { flex-wrap: nowrap; }
  .kanban-column { min-width: 85vw; flex: 0 0 85vw; }

  /* Tabs stack vertical */
  .tabs { flex-wrap: wrap; }
  .tab { flex: 1 1 auto; text-align: center; min-height: 44px; padding: 10px 12px; }

  .editor-toggle-btn { display: inline-flex; }
  /* Editor: switch to tabs via toggle */
  .editor-split { grid-template-columns: 1fr; }
  .editor-split .preview-pane { display: none; }
  .editor-split.show-preview .editor-pane { display: none; }
  .editor-split.show-preview .preview-pane { display: block; }

  /* Overview grid */
  #tab-overview > div { grid-template-columns: 1fr !important; }

  /* Dashboard */
  .dashboard-grid { grid-template-columns: 1fr; }
  .charts-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }

  /* Project meta row */
  .project-meta-row { flex-direction: column; align-items: flex-start; }
  .project-meta-row .select { width: 100%; min-width: 0; }

  /* Buttons touch-friendly */
  .btn { min-height: 44px; padding: 10px 16px; font-size: 14px; }
  .btn-sm { min-height: 40px; padding: 8px 12px; }
  .tab { font-size: 13px; }
  .input, .textarea, .select { min-height: 44px; padding: 10px 12px; font-size: 16px; }

  /* Archive table scroll */
  .archive-table { display: block; overflow-x: auto; }

  /* Project list responsive */
  .project-list-table { display: block; overflow-x: auto; }

  /* Modal */
  #modal { width: 95%; padding: 16px; }

  /* Comment form */
  .comment-form { flex-wrap: wrap; }
  .comment-form input { flex: 1 1 100% !important; }

  /* Donut chart */
  .donut-container { flex-direction: column; align-items: center; }
}

/* === SANITY COPY FIELDS === */
.sanity-copy-fields { display: flex; flex-direction: column; gap: 8px; }
.sanity-field-row { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; }
.sanity-field-label { font-size: 12px; color: var(--text2); font-weight: 600; min-width: 120px; flex-shrink: 0; }
.sanity-field-value { flex: 1; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn { flex-shrink: 0; }
.copy-success { color: var(--accent) !important; border-color: var(--accent) !important; }

/* === EDITOR STATS === */
.editor-stats { font-size: 12px; color: var(--text2); background: var(--bg3); padding: 4px 10px; border-radius: 4px; }
.unsaved-indicator { font-size: 12px; color: #f59e0b; font-weight: 600; animation: pulse 1.5s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.5; } }

/* === KANBAN QUICK ACTIONS === */
.kanban-quick-actions { display: flex; gap: 4px; margin-top: 6px; }
.btn-xs { padding: 2px 6px !important; font-size: 11px !important; min-height: auto !important; }

/* === LOGIN === */
#login-overlay {
  position: fixed; inset: 0; z-index: 300; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.login-box {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 16px;
  padding: 40px; text-align: center; width: 90%; max-width: 380px;
}
.login-brand { font-size: 64px; margin-bottom: 12px; }
.login-title { font-size: 24px; font-weight: 700; margin-bottom: 4px; }
.login-subtitle { color: var(--text2); font-size: 14px; margin-bottom: 24px; }
.login-btn { width: 100%; margin-top: 12px; }
.login-error { color: var(--red); font-size: 13px; margin-top: 8px; }

/* === LANGUAGE BADGE === */
.badge-lang { background: #3b82f615; color: #60a5fa; }
.badge-role { background: #f59e0b15; color: #fbbf24; }

/* === CALENDAR === */
.cal-nav { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 20px; }
.cal-nav h2 { min-width: 200px; text-align: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.cal-header { background: var(--bg3); padding: 8px; text-align: center; font-size: 12px; font-weight: 600; color: var(--text2); text-transform: uppercase; }
.cal-cell { background: var(--bg2); min-height: 90px; padding: 6px; cursor: pointer; transition: background 0.15s; }
.cal-cell:hover { background: var(--bg3); }
.cal-cell.empty { background: var(--bg); cursor: default; }
.cal-cell.today { border: 2px solid var(--accent); }
.cal-day-num { font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.cal-project { font-size: 10px; padding: 2px 4px; border-radius: 3px; margin-bottom: 2px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* === TEMPLATES === */
.templates-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.template-card { display: flex; flex-direction: column; }
.template-header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.template-outline { font-size: 12px; color: var(--text2); white-space: pre-line; flex: 1; }

/* === FACTCHECK === */
.factcheck-list { display: flex; flex-direction: column; gap: 12px; }
.factcheck-item { display: flex; gap: 12px; padding: 12px; background: var(--bg3); border-radius: 6px; border: 1px solid var(--border); }
.factcheck-status { font-size: 24px; flex-shrink: 0; }
.factcheck-content { flex: 1; min-width: 0; }
.factcheck-claim { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.factcheck-source { font-size: 12px; color: var(--accent); }
.factcheck-notes { font-size: 12px; color: var(--text2); margin-top: 4px; }
.factcheck-meta { display: flex; gap: 8px; align-items: center; margin-top: 8px; }

/* === AGENT ROLE GROUP === */
.agent-role-group { margin-bottom: 12px; }
.agent-role-label { margin-bottom: 4px; }

/* === FORM ROW === */
.form-row { display: flex; gap: 12px; }

/* Smooth transitions */
.fade-in { animation: fadeIn 0.2s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text2); }
