/* Dashboard layout */
.dash-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10, 10, 12, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 60px;
}
.dash-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}
.dash-title {
  flex: 1;
  font-size: 13px;
  color: var(--fg-subtle);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.dash-main {
  padding: 80px 24px 60px;
  max-width: 1240px;
  margin: 0 auto;
}
.dash-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}

/* Section headers */
.section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.section-header h2 {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px 10px;
  font-size: 12px;
  color: var(--fg-muted);
  font-weight: 500;
}

/* AI Narrative */
.narrative-card {
  display: flex;
  gap: 12px;
  background: var(--accent-dim);
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 20px;
}
.narrative-icon {
  flex-shrink: 0;
  margin-top: 1px;
}
.narrative-card p {
  font-size: 14px;
  color: var(--fg-muted);
  line-height: 1.65;
}

/* Suggestion cards */
.suggestion-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px 22px;
  margin-bottom: 10px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 16px;
  align-items: start;
  transition: border-color 0.15s;
}
.suggestion-card:hover { border-color: #3f3f46; }
.suggestion-card.overdue { border-color: rgba(239, 68, 68, 0.4); }

.rank-badge {
  width: 36px;
  height: 36px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--fg-muted);
  flex-shrink: 0;
}
.rank-badge.top-3 {
  background: var(--accent-dim);
  border-color: rgba(255, 107, 0, 0.3);
  color: var(--accent);
}

.suggestion-body { min-width: 0; }
.suggestion-title {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.suggestion-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.tag-priority { background: rgba(255, 107, 0, 0.1); color: var(--accent); }
.tag-deadline { background: var(--bg); border: 1px solid var(--border); color: var(--fg-muted); }
.tag-deadline.urgent { background: rgba(239, 68, 68, 0.1); color: #f87171; border-color: rgba(239, 68, 68, 0.3); }
.tag-assignee { background: rgba(34, 197, 94, 0.08); color: #4ade80; }
.tag-score { background: var(--bg); border: 1px solid var(--border); color: var(--fg-subtle); font-family: monospace; }

.suggestion-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.btn-icon:hover { border-color: #52525b; color: var(--fg); }
.btn-icon.done:hover { border-color: rgba(34, 197, 94, 0.4); color: #4ade80; }
.btn-icon.del:hover { border-color: rgba(239, 68, 68, 0.4); color: #f87171; }

/* Sidebar */
.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 20px;
}
.sidebar-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

/* Form elements */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label {
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
}
.hint { color: var(--fg-subtle); }
.field input,
.field select,
.field textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--fg);
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  transition: border-color 0.15s;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}
.field textarea { resize: vertical; }

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 9px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 9px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s;
}
.btn-secondary:hover { border-color: #52525b; }
.btn-full { width: 100%; justify-content: center; }

/* Team member chips */
.team-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.member-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px 12px 5px 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--fg-muted);
}
.member-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
}
.member-chip button {
  background: none; border: none; cursor: pointer;
  color: var(--fg-subtle); font-size: 14px; line-height: 1;
  margin-left: 2px; padding: 0;
}
.member-chip button:hover { color: #f87171; }
.team-form { border-top: 1px solid var(--border); padding-top: 16px; }

/* Empty state */
.empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--fg-subtle);
}
.empty-icon { font-size: 36px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; line-height: 1.7; }
.btn-seed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  margin: 20px 0 10px;
  transition: background 0.15s, transform 0.15s;
}
.btn-seed:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-seed:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.empty-hint {
  font-size: 12px !important;
  color: var(--fg-subtle);
  margin-top: 0 !important;
}

/* Small shimmer for team member loading */
.shimmer-sm {
  height: 32px;
  border-radius: 100px;
  width: 80%;
  margin-bottom: 8px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 18px;
  font-size: 13px;
  color: var(--fg-muted);
  transition: transform 0.25s ease;
  pointer-events: none;
  z-index: 999;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* Loading shimmer */
.shimmer {
  background: linear-gradient(90deg, var(--surface) 25%, #1f1f24 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 14px;
  height: 88px;
  margin-bottom: 10px;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Responsive */
@media (max-width: 900px) {
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { order: -1; }
}
