/*!*************************************************************************************************************************************************************************************************************************************************************!*\
  !*** css ./node_modules/next/dist/build/webpack/loaders/css-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[2]!./node_modules/next/dist/build/webpack/loaders/postcss-loader/src/index.js??ruleSet[1].rules[14].oneOf[12].use[3]!./app/globals.css ***!
  \*************************************************************************************************************************************************************************************************************************************************************/
:root {
  --nav-width: 200px;
  --nav-width-collapsed: 44px;
  --nav-bg: #1a1a2e;
  --nav-text: #e5e5e5;
  --nav-active: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --bg-color: #0f0f1a;
  --text-primary: #f5f5f5;
  --text-secondary: #a0a0b0;
  --card-bg: #1a1a2e;
  --border-color: #2a2a4a;

  /* Additional variables for theme system */
  --bg-hover: rgba(255, 255, 255, 0.05);
  --bg-secondary: #111118;
  --text-muted: #6b7280;
  --border-hover: #3a3a5a;
}

/* Light theme - :root[data-theme] has higher specificity than :root alone */
:root[data-theme='light'] {
  --nav-bg: #f8fafc;
  --nav-text: #374151;
  --bg-color: #ffffff;
  --text-primary: #111827;
  --text-secondary: #4b5563;
  --card-bg: #ffffff;
  --border-color: #d1d5db;
  --bg-hover: rgba(0, 0, 0, 0.05);
  --bg-secondary: #f1f5f9;
  --text-muted: #6b7280;
  --border-hover: #9ca3af;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background: var(--bg-color);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ========================================
   NAVIGATION
   ======================================== */

.main-nav {
  width: var(--nav-width);
  background: var(--nav-bg);
  color: var(--nav-text);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  left: 0;
  top: 0;
  border-right: 1px solid var(--border-color);
  z-index: 200;
}

/* Collapsed navigation */
.main-nav.collapsed {
  width: 44px;
  min-width: 44px;
  padding: 0.25rem;
}

/* Adjust main content margin when nav is collapsed */
.app-container:has(.main-nav.collapsed) .main-content {
  margin-left: 44px;
}

.app-container:has(.main-nav.collapsed) .rtl .main-content,
.app-container.rtl:has(.main-nav.collapsed) .main-content {
  margin-left: 0;
  margin-right: 44px;
}

.main-nav.collapsed .nav-brand {
  margin-bottom: 0.5rem;
  padding-bottom: 0.35rem;
}

.main-nav.collapsed .nav-brand-header {
  justify-content: center;
}

.main-nav.collapsed .nav-link {
  justify-content: center;
  padding: 0.3rem;
  margin-bottom: 0;
}

.main-nav.collapsed .nav-link span {
  display: none;
}

.main-nav.collapsed .nav-footer {
  align-items: center;
  padding-top: 0.35rem;
  gap: 0.15rem;
}

.main-nav.collapsed .nav-collapse-toggle {
  width: 32px;
  padding: 0.35rem;
}

.main-nav.rtl {
  left: auto;
  right: 0;
  border-right: none;
  border-left: 1px solid var(--border-color);
}

.nav-brand {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

html[data-theme='light'] .nav-brand {
  border-bottom-color: rgba(0, 0, 0, 0.1);
}

html[data-theme='light'] .nav-subtitle {
  opacity: 1;
  color: var(--text-secondary);
}

html[data-theme='light'] .nav-link {
  color: var(--nav-text);
}

.nav-brand-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.nav-brand h1 {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.nav-subtitle {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 0.15rem;
  display: block;
}

.nav-links {
  list-style: none;
  flex: 1 1;
  margin: 0;
  padding: 0;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  color: var(--nav-text);
  text-decoration: none;
  font-size: 0.85rem;
  margin-bottom: 2px;
  transition: all 0.2s ease;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

html[data-theme='light'] .nav-link:hover {
  background: rgba(0, 0, 0, 0.05);
}

.nav-link.active {
  background: var(--nav-active);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.nav-footer {
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

html[data-theme='light'] .nav-footer {
  border-top-color: rgba(0, 0, 0, 0.1);
}

.language-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--nav-text);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s;
}

.language-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

html[data-theme='light'] .language-toggle {
  background: rgba(0, 0, 0, 0.05);
}

html[data-theme='light'] .language-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--nav-text);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  transition: background 0.2s;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

html[data-theme='light'] .theme-toggle {
  background: rgba(0, 0, 0, 0.05);
}

html[data-theme='light'] .theme-toggle:hover {
  background: rgba(0, 0, 0, 0.1);
}

/* Nav Collapse Toggle */
.nav-collapse-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.5rem;
  border: none;
  background: transparent;
  color: var(--nav-text);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  opacity: 0.7;
}

.nav-collapse-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  opacity: 1;
}

html[data-theme='light'] .nav-collapse-toggle:hover {
  background: rgba(0, 0, 0, 0.05);
}

.main-nav.collapsed .nav-collapse-toggle {
  width: 36px;
  margin: 0 auto;
}

/* ========================================
   MAIN CONTENT (MOBILE-FIRST)
   ======================================== */

.main-content {
  flex: 1 1;
  margin-left: 0;
  min-height: 100vh;
  padding: 1rem;
}

.rtl .main-content {
  margin-right: 0;
}

.page-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.page-header-spacer {
  flex: 1 1;
  min-width: 0;
}

.page-header h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.page-header .subtitle {
  color: var(--text-secondary);
  margin: 0;
}

.page-header-left {
  display: flex;
  flex-direction: column;
}

.page-header-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
}

/* Desktop enhancements */
@media (min-width: 769px) {
  .main-content {
    margin-left: var(--nav-width);
    padding: 2rem;
  }

  .rtl .main-content {
    margin-left: 0;
    margin-right: var(--nav-width);
  }

  .page-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
  }

  .page-header h1 {
    font-size: 2rem;
  }

  .page-header-actions {
    flex-direction: row;
    align-items: center;
    width: auto;
  }
}

/* ========================================
   PROJECT SELECTOR
   ======================================== */

.project-selector {
  position: relative;
}

.project-selector-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 0.85rem;
  cursor: pointer;
  max-width: 100%;
  transition: all 0.2s;
  min-width: 200px;
}

.project-selector-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(102, 126, 234, 0.5);
}

.project-selector-btn .rotate-180 {
  transform: rotate(180deg);
}

.project-selector-btn > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1;
  text-align: left;
}

.project-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  left: 0;
  width: auto;
  min-width: 250px;
  max-width: 320px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  z-index: 100;
  overflow: hidden;
}

@media (min-width: 769px) {
  .project-dropdown {
    left: auto;
    right: 0;
    width: 280px;
  }
}

.project-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 0.9rem;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s;
}

.project-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.project-dropdown-item.active {
  background: rgba(102, 126, 234, 0.15);
  border-left: 3px solid #667eea;
}

.project-dropdown-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.project-dropdown-key {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.project-dropdown-name {
  flex: 1 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-dropdown-count {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* ========================================
   WORKFLOW PAGE
   ======================================== */

.workflow-page {
  padding: 0;
  position: relative;
  min-height: 100vh;
  /* Dotted background pattern */
  background-image: radial-gradient(circle, rgba(99, 102, 241, 0.15) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: 0 0;
}

.workflow-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    var(--bg-color) 0%,
    transparent 10%,
    transparent 90%,
    var(--bg-color) 100%
  );
  pointer-events: none;
  z-index: 0;
}

.workflow-page > * {
  position: relative;
  z-index: 1;
}

.workflow-page.rtl {
  direction: rtl;
}

.add-task-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.add-task-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.workflow-board {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.workflow-column {
  flex: 0 0 280px;
  min-width: 280px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
}

.column-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 2px solid;
  background: rgba(255, 255, 255, 0.02);
}

.column-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.column-header h3 {
  flex: 1 1;
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.task-count {
  background: var(--border-color);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.column-content {
  padding: 1rem;
  max-height: calc(100vh - 280px);
  overflow-y: auto;
}

.empty-column {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Task Card */
.task-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.task-card:hover {
  transform: translateY(-2px);
  border-color: #667eea;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.task-card--locked {
  border-color: #f59e0b;
  background: linear-gradient(135deg, var(--card-bg) 0%, rgba(245, 158, 11, 0.05) 100%);
  animation: pulse-border 2s ease-in-out infinite;
}

@keyframes pulse-border {

  0%,
  100% {
    border-color: #f59e0b;
  }

  50% {
    border-color: rgba(245, 158, 11, 0.4);
  }
}

.locked-badge {
  font-size: 0.65rem;
  padding: 0.15rem 0.5rem;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
  animation: pulse-badge 1.5s ease-in-out infinite;
}

@keyframes pulse-badge {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.priority-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.card-header h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.card-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 0 0 0.75rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* ========================================
   MODAL
   ======================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
}

.modal-content {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 2rem;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.modal-content h2 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  color: var(--text-primary);
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: #667eea;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 1rem;
  gap: 1rem;
}

.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

/* Run Now Toggle */
.run-now-toggle {
  margin-top: 1rem;
  padding: 0.75rem;
  background: rgba(99, 102, 241, 0.05);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  transition: all 0.2s;
}

.run-now-toggle:has(.run-now-checkbox:checked) {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.4);
}

.run-now-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.run-now-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.run-now-switch {
  width: 40px;
  height: 24px;
  background: var(--border-color);
  border-radius: 12px;
  position: relative;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 4px;
}

.run-now-checkbox:checked + .run-now-switch {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  justify-content: flex-end;
}

.run-now-icon {
  color: var(--text-secondary);
  transition: all 0.2s;
}

.run-now-checkbox:checked + .run-now-switch .run-now-icon {
  color: white;
  animation: rocket-shake 0.5s ease;
}

@keyframes rocket-shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-10deg); }
  75% { transform: rotate(10deg); }
}

.run-now-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

.run-now-hint {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.8;
}

.run-now-label.active .run-now-text {
  color: #667eea;
}

/* Run Now Button Style */
.btn-run-now {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-run-now:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
}

.btn-secondary {
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.95rem;
  width: 100%;
}

.btn-primary {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  width: 100%;
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Desktop enhancements */
@media (min-width: 769px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .modal-actions {
    flex-direction: row;
    justify-content: flex-end;
  }

  .btn-secondary,
  .btn-primary {
    width: auto;
  }
}

/* ========================================
   ROADMAP PAGE
   ======================================== */

.roadmap-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
}

.roadmap-page.rtl {
  direction: rtl;
}

.roadmap-page h1 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.progress-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(16, 185, 129, 0.1) 100%);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 16px;
  color: #22c55e;
}

.progress-badge span {
  font-size: 1.5rem;
  font-weight: 700;
}

.progress-label {
  font-size: 0.8rem;
  opacity: 0.8;
}

.progress-container {
  margin-bottom: 3rem;
}

.progress-track {
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: visible;
}

.progress-track .progress-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #22c55e 0%, #10b981 100%);
  border-radius: 999px;
  transition: width 0.5s ease;
}

.progress-glow {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background: #22c55e;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.6);
}

.progress-markers {
  display: flex;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.progress-markers .marker {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.progress-markers .marker.active {
  color: #22c55e;
}

.roadmap-path {
  position: relative;
}

.milestone {
  position: relative;
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.milestone.completed,
.milestone.in-progress {
  background: rgba(255, 255, 255, 0.04);
}

.milestone.future {
  opacity: 0.5;
}

.milestone:hover {
  transform: translateX(8px);
}

.rtl .milestone:hover {
  transform: translateX(-8px);
}

.connector {
  position: absolute;
  left: 42px;
  top: -2rem;
  width: 4px;
  height: 2rem;
  background: rgba(107, 114, 128, 0.3);
  border-radius: 2px;
}

.connector.active {
  background: linear-gradient(180deg, #22c55e 0%, rgba(34, 197, 94, 0.3) 100%);
}

.milestone-node {
  position: relative;
  width: 64px;
  height: 64px;
  border: 2px solid;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.node-icon {
  display: flex;
}

.check-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  background: #22c55e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.milestone-content {
  flex: 1 1;
}

.phase-tag {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.milestone-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  transition: color 0.3s;
}

.milestone-content p {
  color: var(--text-secondary);
  margin: 0 0 1rem;
  font-size: 0.95rem;
}

.achievements {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.achievement-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid;
}

.status-label {
  font-size: 0.8rem;
  font-weight: 600;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ========================================
   UI COMPONENTS - BUTTON
   ======================================== */

.ui-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: inherit;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.ui-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ui-button--sm {
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
}

.ui-button--md {
  padding: 0.625rem 1.25rem;
  font-size: 0.95rem;
}

.ui-button--lg {
  padding: 0.875rem 1.75rem;
  font-size: 1rem;
}

.ui-button--primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.ui-button--primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.ui-button--secondary {
  background: var(--card-bg);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.ui-button--secondary:hover:not(:disabled) {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.1);
}

.ui-button--ghost {
  background: transparent;
  color: var(--text-secondary);
}

.ui-button--ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.ui-button--danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

.ui-button--danger:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
}

.ui-button--loading {
  position: relative;
  pointer-events: none;
}

.ui-button__spinner {
  display: flex;
  animation: spin 1s linear infinite;
}

.ui-button__spinner svg {
  width: 16px;
  height: 16px;
}

.ui-button__icon {
  display: flex;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   UI COMPONENTS - CARD
   ======================================== */

.ui-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.ui-card--elevated {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.ui-card--outlined {
  background: transparent;
  border: 1px solid var(--border-color);
}

.ui-card--hoverable:hover {
  transform: translateY(-2px);
  border-color: #667eea;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.ui-card--padding-none {
  padding: 0;
}

.ui-card--padding-sm {
  padding: 0.75rem;
}

.ui-card--padding-md {
  padding: 1.25rem;
}

.ui-card--padding-lg {
  padding: 2rem;
}

.ui-card--padding-none .ui-card__header,
.ui-card--padding-none .ui-card__body,
.ui-card--padding-none .ui-card__footer {
  padding: 1rem 1.25rem;
}

.ui-card__header {
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.ui-card__body {
  padding: 0;
}

.ui-card__footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

/* ========================================
   UI COMPONENTS - INPUT
   ======================================== */

.ui-input-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.ui-input-wrapper--full {
  width: 100%;
}

.ui-input__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.ui-input {
  width: 100%;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ui-input:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.ui-input--sm {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}

.ui-input--md {
  padding: 0.625rem 1rem;
  font-size: 1rem;
}

.ui-input--lg {
  padding: 0.875rem 1.25rem;
  font-size: 1.125rem;
}

.ui-input--error {
  border-color: #ef4444;
}

.ui-input--error:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2);
}

.ui-input__error {
  font-size: 0.8rem;
  color: #ef4444;
}

.ui-input__helper {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.ui-input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ui-input::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

/* Textarea */
.ui-textarea {
  width: 100%;
  min-height: 100px;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.625rem 1rem;
  resize: vertical;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ui-textarea:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.ui-textarea--error {
  border-color: #ef4444;
}

.ui-textarea::placeholder {
  color: var(--text-secondary);
  opacity: 0.6;
}

/* Select */
.ui-select {
  width: 100%;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  padding: 0.625rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
     -moz-appearance: none;
          appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23a0a0b0' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.ui-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.2);
}

.ui-select--error {
  border-color: #ef4444;
}

.ui-select option {
  background: var(--card-bg);
  color: var(--text-primary);
}

/* ========================================
   UI COMPONENTS - BADGE
   ======================================== */

.ui-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  border-radius: 6px;
}

/* Sizes */
.ui-badge--xs {
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
}

.ui-badge--sm {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
}

.ui-badge--md {
  font-size: 0.875rem;
  padding: 0.25rem 0.75rem;
}

/* Base Variants */
.ui-badge--default {
  background: #2a2a4a;
  color: #f5f5f5;
  border: 1px solid transparent;
}

.ui-badge--primary {
  background: #667eea;
  color: white;
  border: 1px solid transparent;
}

.ui-badge--success {
  background: #10b981;
  color: white;
  border: 1px solid transparent;
}

.ui-badge--warning {
  background: #f59e0b;
  color: black;
  border: 1px solid transparent;
}

.ui-badge--danger {
  background: #ef4444;
  color: white;
  border: 1px solid transparent;
}

.ui-badge--info {
  background: #3b82f6;
  color: white;
  border: 1px solid transparent;
}

/* New Premium Variants */
.ui-badge--outline {
  background: transparent;
  border: 1px solid #2a2a4a;
  color: #a0a0b0;
}

.ui-badge--soft {
  background: rgba(102, 126, 234, 0.15);
  color: #8b5cf6;
  border: 1px solid transparent;
}

.ui-badge--ghost {
  background: transparent;
  color: #a0a0b0;
  border: 1px solid transparent;
}

.ui-badge--pill {
  border-radius: 9999px;
}

.ui-badge__icon {
  display: flex;
}

/* ========================================
   UI COMPONENTS - MODAL
   ======================================== */

.ui-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  animation: fadeIn 0.15s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.ui-modal {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: slideUp 0.2s ease;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

/* Animation variants */
.ui-modal--animate-slideUp {
  animation: slideUp var(--animation-duration, 0.2s) ease;
}

.ui-modal--animate-slideDown {
  animation: slideDown var(--animation-duration, 0.2s) ease;
}

.ui-modal--animate-slideLeft {
  animation: slideLeft var(--animation-duration, 0.2s) ease;
}

.ui-modal--animate-slideRight {
  animation: slideRight var(--animation-duration, 0.2s) ease;
}

.ui-modal--animate-fade {
  animation: fadeIn var(--animation-duration, 0.2s) ease;
}

.ui-modal--animate-zoom {
  animation: zoomIn var(--animation-duration, 0.2s) ease;
}

/* Closing animation */
.ui-modal--closing {
  animation: fadeOut var(--animation-duration, 0.2s) ease;
}

.ui-modal-overlay.ui-modal--closing {
  animation: fadeOut var(--animation-duration, 0.15s) ease;
}

.ui-modal--sm {
  width: 90%;
  max-width: 360px;
}

.ui-modal--md {
  width: 90%;
  max-width: 480px;
}

.ui-modal--lg {
  width: 90%;
  max-width: 640px;
}

.ui-modal--xl {
  width: 90%;
  max-width: 800px;
}

.ui-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
}

.ui-modal__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.ui-modal__close {
  margin: -0.5rem;
  padding: 0.5rem !important;
}

.ui-modal__body {
  padding: 1.5rem;
}

.ui-modal__footer {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-color);
}

.ui-modal__footer--left {
  justify-content: flex-start;
}

.ui-modal__footer--center {
  justify-content: center;
}

.ui-modal__footer--right {
  justify-content: flex-end;
}

/* ========================================
   UI COMPONENTS - TASK CARD
   ======================================== */

.task-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.task-card:hover {
  transform: translateY(-2px);
  border-color: #667eea;
  box-shadow: 0 8px 24px rgba(102, 126, 234, 0.15);
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.task-header h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.status-badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
}

.task-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

.task-meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: auto;
}

.pillar-badge {
  background: var(--bg-color);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.priority {
  text-transform: capitalize;
}

/* ========================================
   MOBILE-FIRST BASE STYLES
   ======================================== */

/* Base styles are for mobile (small screens) */
.main-nav {
  width: 100%;
  height: auto;
  position: relative;
  padding: 1rem;
  flex-direction: row;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  border-right: none;
  border-left: none;
}

.main-nav.rtl {
  left: auto;
  right: 0;
}

.nav-links {
  display: flex;
  overflow-x: auto;
  gap: 0.5rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.nav-links::-webkit-scrollbar {
  display: none;
}

.nav-link span {
  display: none;
}

.nav-brand {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
  margin-right: 1rem;
  flex-shrink: 0;
}

.nav-subtitle,
.nav-footer {
  display: none;
}

.main-content {
  flex: 1 1;
  margin-left: 0;
  min-height: 100vh;
  padding: 1rem;
}

.rtl .main-content {
  margin-right: 0;
}

/* ========================================
   DESKTOP ENHANCEMENTS (min-width)
   ======================================== */

@media (min-width: 769px) {
  .main-nav {
    width: var(--nav-width);
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    border-bottom: none;
    border-right: 1px solid var(--border-color);
    padding: 1.5rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav.rtl {
    left: auto;
    right: 0;
    border-right: none;
    border-left: 1px solid var(--border-color);
  }

  .nav-links {
    display: block;
    overflow: visible;
  }

  .nav-link span {
    display: inline;
  }

  .nav-brand {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
    margin-right: 0;
  }

  .nav-subtitle {
    display: block;
  }

  .nav-footer {
    display: block;
  }

  .main-content {
    margin-left: var(--nav-width);
    padding: 2rem;
  }

  .rtl .main-content {
    margin-left: 0;
    margin-right: var(--nav-width);
  }
}

/* ========================================
   UI COMPONENTS - AVATAR
   ======================================== */

.ui-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  background: #2a2a4a;
  color: #f5f5f5;
  font-weight: 600;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  border: 2px solid #1a1a2e;
  overflow: visible;
  flex-shrink: 0;
}

/* Sizes */
.ui-avatar--sm {
  width: 24px;
  height: 24px;
  font-size: 0.7rem;
}

.ui-avatar--md {
  width: 32px;
  height: 32px;
  font-size: 0.875rem;
}

.ui-avatar--lg {
  width: 48px;
  height: 48px;
  font-size: 1.1rem;
}

/* Image */
.ui-avatar__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 9999px;
}

/* Fallback */
.ui-avatar__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

/* Status Indicator */
.ui-avatar__status {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 25%;
  height: 25%;
  border-radius: 9999px;
  border: 2px solid #1a1a2e;
  box-sizing: content-box;
}

.ui-avatar__status--online {
  background: #10b981;
}

.ui-avatar__status--idle {
  background: #f59e0b;
}

.ui-avatar__status--busy {
  background: #ef4444;
}

.ui-avatar__status--offline {
  background: #6b7280;
}

/* ========================================
   UI COMPONENTS - PROGRESS BAR
   ======================================== */

.ui-progress-wrapper {
  width: 100%;
}

.ui-progress-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: #a0a0b0;
}

.ui-progress {
  width: 100%;
  background: #2a2a4a;
  border-radius: 9999px;
  overflow: hidden;
}

.ui-progress--xs {
  height: 4px;
}

.ui-progress--sm {
  height: 8px;
}

.ui-progress--md {
  height: 12px;
}

.ui-progress__bar {
  height: 100%;
  transition: width 0.3s ease;
  border-radius: 9999px;
}

.ui-progress__bar--default {
  background: #667eea;
}

.ui-progress__bar--success {
  background: #10b981;
}

.ui-progress__bar--warning {
  background: #f59e0b;
}

.ui-progress__bar--danger {
  background: #ef4444;
}

/* ========================================
   CUSTOM SCROLLBAR - DARK THEME
   ======================================== */

/* Webkit browsers (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 4px;
  -webkit-transition: background 0.2s;
  transition: background 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background: #3a3a5a;
}

::-webkit-scrollbar-corner {
  background: var(--bg-color);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) var(--bg-color);
}

/* Workflow board specific - slightly wider for horizontal scroll */
.wf-board::-webkit-scrollbar {
  height: 10px;
}

.wf-board::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.wf-board::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #7b8fed 0%, #8a5cb5 100%);
}

/* ========================================
   WORKFLOW BOARD - SNAKE PATTERN LAYOUT (MOBILE-FIRST)
   ======================================== */

/* Base styles for mobile - vertical stack */
.wf-board {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: auto;
  align-items: stretch;
  position: relative;
  padding: 1rem 0;
}

/* Snake section pairs - groups of 2 sections per row */
.wf-section {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 1rem;
  width: 100%;
  position: relative;
  margin-bottom: 1.5rem;
}

/* Hide section connectors by default - cleaner look */
.wf-section::after {
  display: none;
}

.wf-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.wf-section-icon {
  font-size: 1rem;
}

.wf-section-header h2 {
  font-size: 0.9rem;
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
}

.wf-section-columns {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

/* Hexagon Pipeline Connector Lines */
.wf-section-columns::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 60px;
  right: 60px;
  height: 3px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(99, 102, 241, 0.4) 10%,
    rgba(99, 102, 241, 0.6) 50%,
    rgba(99, 102, 241, 0.4) 90%,
    transparent 100%
  );
  transform: translateY(-50%);
  z-index: 0;
  display: none;
}

.wf-column {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.wf-column--drag-target {
  border-color: rgba(99, 102, 241, 0.3);
}

.wf-column--drag-over {
  border-color: #6366f1;
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
  transform: scale(1.02);
}

/* Hexagon Pipeline Node Hover Effect */
.wf-column:hover {
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.15);
}

.wf-column:hover .wf-column-icon {
  transform: scale(1.05);
  border-color: rgba(99, 102, 241, 0.5);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25);
}

.wf-column-icon {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Pipeline Flow Animation */
@keyframes pipeline-flow {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.wf-section-columns::before {
  background-size: 200% 100%;
}

.wf-section:hover .wf-section-columns::before {
  animation: pipeline-flow 3s linear infinite;
}

.wf-column-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.05) 100%);
  border-bottom: 1px solid var(--border-color);
  position: relative;
  z-index: 1;
}

/* Hexagon-style header shape */
.wf-column-header::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 8px solid var(--border-color);
}

.wf-column-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 8px solid var(--border-color);
}

.wf-column-icon {
  width: 44px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.15) 100%);
  font-size: 1.3rem;
  flex-shrink: 0;
  /* Hexagon shape using clip-path */
  -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
          clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  position: relative;
}

.wf-column-icon::before {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--card-bg);
  -webkit-clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
          clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  z-index: -1;
}

.wf-column-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.wf-column-info h3 {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: normal;
  word-wrap: break-word;
  line-height: 1.2;
}

.wf-column-agent {
  font-size: 0.65rem;
  color: var(--text-secondary);
  opacity: 0.8;
  margin-top: 2px;
}

.wf-column-description {
  display: block;
  font-size: 0.6rem;
  color: var(--text-secondary);
  opacity: 0.7;
  margin-top: 0.25rem;
  font-style: italic;
  line-height: 1.2;
  max-width: 100%;
}

.wf-column-count {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
  min-width: 28px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  margin-top: 0.25rem;
}

/* Flow Arrow between columns (mobile hidden) */
.wf-column::after {
  display: none;
}

.wf-decision-badge {
  margin: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 8px;
  color: #f59e0b;
  font-size: 0.75rem;
  font-weight: 500;
  text-align: center;
}

.wf-column-content {
  padding: 0.75rem;
  max-height: none;
  overflow-y: visible;
}

/* Tablet - Snake pattern with 2 sections per row */
@media (min-width: 640px) {
  .wf-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 1rem 1.5rem;
    gap: 1rem 1.5rem;
    align-items: start;
    position: relative;
  }

  .wf-section {
    width: 100%;
    min-width: 0;
    margin-bottom: 0;
  }

  /* Grid auto-flow ensures proper 2-column layout */
  /* Removed broken order-based snake pattern that pushed single-column sections to bottom */

  .wf-section-columns {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    align-items: flex-start;
  }

  /* Show pipeline connector line inside section */
  .wf-section-columns::before {
    display: block;
    top: 65px;
    left: 70px;
    right: 70px;
    height: 2px;
    background: repeating-linear-gradient(
      to right,
      rgba(99, 102, 241, 0.5) 0px,
      rgba(99, 102, 241, 0.5) 8px,
      transparent 8px,
      transparent 16px
    );
  }

  .wf-column {
    flex: 1 1 120px;
    min-width: 100px;
    max-width: 160px;
    position: relative;
  }

  /* Hide column arrows for cleaner look */
  .wf-column:not(:last-child)::after {
    display: none;
  }

  .wf-column-content {
    max-height: 200px;
    overflow-y: auto;
  }

  .wf-column-icon {
    width: 36px;
    height: 42px;
    font-size: 0.9rem;
  }

  .wf-column-info h3 {
    font-size: 0.75rem;
    line-height: 1.2;
  }

  .wf-column-agent {
    font-size: 0.55rem;
  }

  .wf-column-description {
    display: none;
  }
}

/* Desktop - Better snake pattern with more space */
@media (min-width: 1024px) {
  .wf-board {
    gap: 1.5rem 2rem;
  }

  /* Horizontal connector between sections */
  .wf-section:nth-child(odd)::after {
    width: 2rem;
    right: -2rem;
  }

  .wf-section-columns {
    gap: 1rem;
  }

  .wf-section-columns::before {
    top: 70px;
  }

  .wf-column {
    flex: 1 1 140px;
    min-width: 120px;
    max-width: 180px;
  }

  /* Keep column arrows hidden */
  .wf-column:not(:last-child)::after {
    display: none;
  }

  .wf-column-content {
    max-height: 250px;
  }

  .wf-column-info h3 {
    font-size: 0.8rem;
  }

  .wf-column-description {
    display: block;
    font-size: 0.55rem;
  }

  .wf-column-icon {
    width: 40px;
    height: 46px;
    font-size: 1rem;
  }
}

/* Large desktop - wider columns with full snake pattern */
@media (min-width: 1440px) {
  .wf-board {
    gap: 2rem 2.5rem;
  }

  /* Horizontal connector between sections */
  .wf-section:nth-child(odd)::after {
    width: 2.5rem;
    right: -2.5rem;
    height: 4px;
  }

  /* Vertical connector going down */
  .wf-section:nth-child(2n):not(:last-of-type)::after {
    height: 2rem;
    width: 4px;
  }

  .wf-section-columns {
    gap: 1.25rem;
  }

  .wf-section-columns::before {
    top: 75px;
    height: 3px;
  }

  .wf-column {
    flex: 1 1 160px;
    min-width: 140px;
    max-width: 200px;
  }

  /* Keep column arrows hidden */
  .wf-column:not(:last-child)::after {
    display: none;
  }

  .wf-column-icon {
    width: 44px;
    height: 50px;
    font-size: 1.1rem;
  }

  .wf-column-info h3 {
    font-size: 0.85rem;
  }

  .wf-column-agent {
    font-size: 0.65rem;
  }

  .wf-column-content {
    max-height: 300px;
  }
}

/* Extra large desktop - widest columns with prominent snake pipeline */
@media (min-width: 1800px) {
  .wf-board {
    gap: 2rem 3rem;
  }

  /* Horizontal connector between sections */
  .wf-section:nth-child(odd)::after {
    width: 3rem;
    right: -3rem;
    height: 5px;
  }

  /* Vertical connector going down */
  .wf-section:nth-child(2n):not(:last-of-type)::after {
    height: 2rem;
    width: 5px;
  }

  .wf-section-columns {
    gap: 1.5rem;
  }

  .wf-section-columns::before {
    top: 80px;
    height: 4px;
    background: repeating-linear-gradient(
      to right,
      rgba(99, 102, 241, 0.6) 0px,
      rgba(99, 102, 241, 0.6) 10px,
      transparent 10px,
      transparent 20px
    );
  }

  .wf-column {
    flex: 1 1 180px;
    min-width: 160px;
    max-width: 220px;
  }

  /* Keep column arrows hidden */
  .wf-column:not(:last-child)::after {
    display: none;
  }

  .wf-column-icon {
    width: 48px;
    height: 55px;
    font-size: 1.2rem;
  }

  .wf-column-info h3 {
    font-size: 0.9rem;
  }

  .wf-column-agent {
    font-size: 0.7rem;
  }

  .wf-column-content {
    max-height: 350px;
  }
}

.wf-task-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 0.875rem;
  margin-bottom: 0.625rem;
  transition: all 0.2s;
  cursor: -webkit-grab;
  cursor: grab;
}

.wf-task-card:active {
  cursor: -webkit-grabbing;
  cursor: grabbing;
}

.wf-task-card[draggable="true"]:hover {
  border-color: #6366f1;
}

.wf-task-card:hover {
  border-color: #667eea;
}

.wf-task-card--locked {
  border-color: #3b82f6;
  background: linear-gradient(135deg, var(--bg-color) 0%, rgba(59, 130, 246, 0.05) 100%);
  animation: wf-glow 2s ease-in-out infinite;
}

@keyframes wf-glow {

  0%,
  100% {
    box-shadow: 0 0 5px rgba(59, 130, 246, 0.3);
  }

  50% {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.6);
  }
}

.wf-task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.wf-task-id {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--card-bg);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.wf-task-badges {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.wf-task-attachment-badge {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.6rem;
  font-weight: 600;
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.15);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}

.wf-task-priority {
  font-size: 0.65rem;
  font-weight: 700;
  color: white;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.wf-task-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wf-task-status {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 0.5rem;
}

.wf-task-status--running {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wf-unlock-btn {
  background: rgba(239, 68, 68, 0.2);
  border: none;
  border-radius: 3px;
  padding: 0.15rem 0.3rem;
  cursor: pointer;
  color: #ef4444;
  display: inline-flex;
  align-items: center;
  transition: background 0.2s;
}

.wf-unlock-btn:hover {
  background: rgba(239, 68, 68, 0.4);
}

.wf-task-progress {
  height: 4px;
  background: var(--border-color);
  border-radius: 2px;
  margin-bottom: 0.5rem;
  overflow: hidden;
}

.wf-task-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #667eea);
  border-radius: 2px;
  transition: width 0.3s;
}

.wf-task-footer {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.wf-task-agent {
  font-size: 0.7rem;
  color: var(--text-secondary);
  flex: 1 1;
}

.wf-follow-btn {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin-left: auto;
}

.wf-follow-btn:hover {
  background: var(--card-bg);
  color: #6366f1;
  border-color: #6366f1;
}

.wf-more-tasks {
  text-align: center;
  padding: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.8rem;
  background: var(--bg-color);
  border-radius: 8px;
  cursor: pointer;
}

.wf-more-tasks:hover {
  background: var(--card-bg);
}

/* ========================================
   WORKFLOW - MODAL STYLES (MOBILE-FIRST)
   ======================================== */

/* Base styles for mobile */
.modal-content--lg {
  max-width: 95%;
  width: 95%;
  margin: 1rem;
}

/* Upload Zone */
.upload-zone {
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  background: rgba(255, 255, 255, 0.02);
}

.upload-zone:hover {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.05);
}

.upload-zone--dragging {
  border-color: #667eea;
  background: rgba(102, 126, 234, 0.1);
  transform: scale(1.01);
}

.upload-zone .upload-icon {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.upload-zone p {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.upload-zone .upload-hint {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Upload Preview Grid */
.upload-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  grid-gap: 0.75rem;
  gap: 0.75rem;
  margin-top: 1rem;
}

.upload-preview-item {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
}

.upload-preview-item img {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}

.upload-preview-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.9);
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity 0.2s;
}

.upload-preview-item:hover .upload-preview-remove {
  opacity: 1;
}

.upload-preview-name {
  display: block;
  padding: 0.35rem 0.5rem;
  font-size: 0.65rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Desktop enhancements */
@media (min-width: 769px) {
  .modal-content--lg {
    max-width: 600px;
    width: 600px;
    margin: 0;
  }

  .upload-preview-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }

  .upload-preview-remove {
    opacity: 0;
  }
}

/* ========================================
   TASK DETAIL MODAL
   ======================================== */

.task-detail-header {
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
}

.task-detail-title {
  margin: 0.5rem 0 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Tabs */
.task-detail-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
  padding-bottom: 0;
}

.task-detail-tab {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: -1px;
}

.task-detail-tab:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.task-detail-tab--active {
  color: #667eea;
  border-bottom-color: #667eea;
}

.task-detail-tab-count {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.task-detail-tab--active .task-detail-tab-count {
  background: #667eea;
  color: white;
}

/* Content */
.task-detail-content {
  min-height: 200px;
  max-height: 400px;
  overflow-y: auto;
}

.task-detail-section {
  padding: 0.5rem 0;
}

.task-detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 1rem;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Desktop enhancements for task detail grid */
@media (min-width: 769px) {
  .task-detail-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

.task-detail-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.task-detail-field label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.task-detail-value {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.task-detail-value--agent {
  color: #a78bfa;
}

.task-detail-description {
  margin-top: 1rem;
}

.task-detail-description label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.task-detail-description p {
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin: 0;
  background: rgba(255, 255, 255, 0.02);
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid var(--border-color);
}

.task-detail-tags {
  margin-top: 1rem;
}

.task-detail-tags label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.task-detail-tags-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Empty State */
.task-detail-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  color: var(--text-secondary);
  text-align: center;
}

.task-detail-empty svg {
  opacity: 0.4;
  margin-bottom: 0.75rem;
}

.task-detail-empty p {
  margin: 0;
  font-size: 0.9rem;
}

/* Activity Timeline */
.activity-timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.activity-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

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

.activity-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.activity-content {
  flex: 1 1;
  min-width: 0;
}

.activity-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
}

.activity-agent {
  font-size: 0.85rem;
  font-weight: 600;
  color: #a78bfa;
}

.activity-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.activity-details {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.activity-transition {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.activity-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.activity-meta-item {
  font-size: 0.75rem;
  color: var(--text-secondary);
  background: var(--bg-color);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* Test Results */
.test-results-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-gap: 0.75rem;
  gap: 0.75rem;
}

/* Desktop enhancements for test results */
@media (min-width: 769px) {
  .test-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

.test-result-card {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem;
  transition: border-color 0.2s;
}

.test-result-card--passed {
  border-color: rgba(16, 185, 129, 0.3);
}

.test-result-card--failed {
  border-color: rgba(239, 68, 68, 0.3);
}

.test-result-card--running {
  border-color: rgba(59, 130, 246, 0.3);
}

.test-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.test-result-type {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.test-result-status {
  display: flex;
}

.test-icon--passed {
  color: #10b981;
}

.test-icon--failed {
  color: #ef4444;
}

.test-icon--running {
  color: #3b82f6;
  animation: spin 1s linear infinite;
}

.test-result-stats {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.test-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.test-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
}

.test-stat--passed {
  color: #10b981;
}

.test-stat--failed {
  color: #ef4444;
}

.test-stat--skipped {
  color: var(--text-secondary);
}

.test-stat-label {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.test-result-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-color);
}

.test-duration,
.test-coverage {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Attachment Gallery */
.attachment-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  grid-gap: 0.75rem;
  gap: 0.75rem;
}

/* Desktop enhancements for attachment gallery */
@media (min-width: 769px) {
  .attachment-gallery {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
}

.attachment-item {
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.attachment-image-link {
  display: block;
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.attachment-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.attachment-image-link:hover .attachment-image {
  transform: scale(1.05);
}

.attachment-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  color: white;
}

.attachment-image-link:hover .attachment-overlay {
  opacity: 1;
}

.attachment-file {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: var(--card-bg);
}

.attachment-info {
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--border-color);
}

.attachment-name {
  display: block;
  font-size: 0.75rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.attachment-time {
  display: block;
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* ========== GENERIC TABS COMPONENT ========== */
.tabs-container {
  width: 100%;
}

.tabs-list {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tabs-list::-webkit-scrollbar {
  display: none;
}

.tab-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.tab-button:hover {
  color: var(--text-primary);
  background: rgba(102, 126, 234, 0.1);
}

.tab-button--active {
  color: #667eea;
  border-bottom-color: #667eea;
}

.tab-button--active:hover {
  background: transparent;
}

.tab-count {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tab-button--active .tab-count {
  background: #667eea;
  color: white;
}

.tab-panel {
  padding: 0;
}

.tab-panel[hidden] {
  display: none;
}

/* ========================================
   MOBILE NAVIGATION
   ======================================== */

.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--nav-bg);
  border-top: 1px solid var(--border-color);
  padding: 0 0.5rem;
  padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: 1000;
  justify-content: space-around;
  align-items: center;
}

.mobile-nav.rtl {
  direction: rtl;
}

.mobile-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  min-width: 64px;
  min-height: 48px;
  padding: 0.5rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.65rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s;
}

.mobile-nav-item:hover,
.mobile-nav-item:active {
  color: var(--text-primary);
}

.mobile-nav-item.active {
  color: #667eea;
}

.mobile-nav-item.active svg {
  filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.5));
}

/* More Menu Overlay */
.mobile-more-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1001;
  display: flex;
  align-items: flex-end;
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  animation: fadeIn 0.15s ease;
}

.mobile-more-sheet {
  width: 100%;
  max-height: 70vh;
  background: var(--card-bg);
  border-radius: 20px 20px 0 0;
  padding: 1rem;
  padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0));
  overflow-y: auto;
  animation: slideUp 0.2s ease;
}

.mobile-more-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.mobile-more-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.mobile-more-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  border-radius: 12px;
  color: var(--text-secondary);
  cursor: pointer;
}

.mobile-more-close:active {
  background: rgba(255, 255, 255, 0.2);
}

.mobile-more-items {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mobile-more-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: none;
  border: none;
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  text-align: left;
}

.mobile-more-item:hover,
.mobile-more-item:active {
  background: rgba(255, 255, 255, 0.05);
}

.mobile-more-item.active {
  background: rgba(102, 126, 234, 0.15);
  color: #667eea;
}

.mobile-more-item svg {
  flex-shrink: 0;
}

/* ========================================
   FLOATING ACTION BUTTON (FAB)
   ======================================== */

.fab {
  display: none;
  position: fixed;
  bottom: 88px;
  right: 20px;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
  z-index: 999;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.fab:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 28px rgba(102, 126, 234, 0.6);
}

.fab:active {
  transform: scale(0.95);
}

.rtl .fab {
  right: auto;
  left: 20px;
}

/* ========================================
   EMPTY STATE ICONS - CONSTRAIN SIZE
   ======================================== */

.empty-state svg,
.projects-grid .empty-state svg {
  width: 48px !important;
  height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  flex-shrink: 0;
}

/* ========================================
   MOBILE SECTION TABS (BASE - HIDDEN ON DESKTOP)
   ======================================== */

.wf-mobile-section-tabs {
  display: none;
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

@media (max-width: 768px) {
  /* Show mobile nav, hide desktop nav */
  .mobile-nav {
    display: flex !important;
  }

  .main-nav {
    display: none !important;
  }

  /* FAB visibility */
  .fab {
    display: flex !important;
  }

  /* Main content adjustments */
  .main-content {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 1rem;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0));
  }

  /* Page header adjustments */
  .page-header {
    margin-bottom: 1rem;
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  /* Keep Add Task button visible on mobile - use compact style */
  .add-task-btn {
    display: flex;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    order: -1; /* Move to front on mobile */
  }

  /* Workflow page FAB */
  .wf-fab {
    display: flex !important;
    bottom: calc(88px + env(safe-area-inset-bottom, 0));
  }

  /* Touch-friendly buttons */
  button,
  a,
  [role="button"] {
    min-height: 44px;
  }

  /* Fullscreen modal on mobile */
  .modal-overlay {
    align-items: stretch;
    padding: 0;
  }

  .modal-content {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    min-height: 100vh;
    border-radius: 0;
    margin: 0;
    padding: 1rem;
    padding-top: env(safe-area-inset-top, 1rem);
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0));
    display: flex;
    flex-direction: column;
    animation: fadeIn 0.2s ease;
    overflow-y: auto;
  }

  .modal-content form {
    flex: 1 1;
    display: flex;
    flex-direction: column;
  }

  .modal-actions {
    margin-top: auto;
    padding-top: 1rem;
  }

  .modal-content--lg {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  /* Touch-friendly form inputs */
  .form-group input,
  .form-group textarea,
  .form-group select,
  .ui-input,
  .ui-textarea,
  .ui-select {
    min-height: 48px;
    font-size: 16px; /* Prevents iOS zoom */
    padding: 0.875rem 1rem;
  }

  .form-group textarea,
  .ui-textarea {
    min-height: 100px;
  }

  /* Task cards - larger touch targets */
  .wf-task-card {
    padding: 1rem;
    min-height: 80px;
  }

  .task-card {
    padding: 1.25rem;
  }

  /* Project selector fullwidth */
  .project-selector {
    width: 100%;
  }

  .project-selector-btn {
    width: 100%;
    min-width: 100%;
    justify-content: space-between;
  }

  .project-dropdown {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
  }

  /* Mobile section tabs */
  .wf-mobile-section-tabs {
    display: flex;
    overflow-x: auto;
    gap: 0.5rem;
    padding: 0.5rem 0;
    margin-bottom: 1rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .wf-mobile-section-tabs::-webkit-scrollbar {
    display: none;
  }

  .wf-mobile-section-tab {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.875rem;
    min-height: 44px;
    border-radius: 10px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
  }

  .wf-mobile-section-tab:active {
    transform: scale(0.98);
  }

  .wf-mobile-section-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  }

  .wf-mobile-section-tab-icon {
    font-size: 1rem;
  }

  .wf-mobile-section-tab-name {
    display: none;
  }

  .wf-mobile-section-tab.active .wf-mobile-section-tab-name {
    display: inline;
  }

  .wf-mobile-section-tab-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.125rem 0.4rem;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 600;
  }

  .wf-mobile-section-tab.active .wf-mobile-section-tab-count {
    background: rgba(255, 255, 255, 0.3);
  }

  /* Mobile workflow board adjustments */
  .workflow-page {
    overflow-x: hidden;
    max-width: 100vw;
  }

  .wf-board {
    gap: 1rem;
    max-width: 100%;
    overflow-x: hidden;
  }

  .wf-section {
    padding: 0.75rem;
    max-width: 100%;
  }

  .wf-column {
    width: 100%;
  }

  .wf-column-content {
    max-height: none;
    padding: 0.5rem;
  }

  /* UI Modal - fullscreen on mobile */
  .ui-modal {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
    margin: 0;
  }

  .ui-modal-overlay {
    align-items: stretch;
  }

  /* Badge sizing */
  .ui-badge {
    min-height: 28px;
    padding: 0.35rem 0.6rem;
  }

  /* Button sizing */
  .ui-button {
    min-height: 48px;
    padding: 0.75rem 1.25rem;
  }

  .ui-button--sm {
    min-height: 44px;
    padding: 0.625rem 1rem;
  }

  /* Upload zone adjustments */
  .upload-zone {
    padding: 2rem 1rem;
  }

  .upload-preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* iPad / Tablet specific adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
  .main-content {
    padding: 1.5rem;
  }

  .wf-column {
    flex: 0 0 160px;
    min-width: 160px;
  }

  .page-header h1 {
    font-size: 1.75rem;
  }
}

/* Safe area support for notched devices */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .mobile-nav {
    padding-bottom: env(safe-area-inset-bottom);
    height: calc(64px + env(safe-area-inset-bottom));
  }

  .fab {
    bottom: calc(88px + env(safe-area-inset-bottom));
  }

  @media (max-width: 768px) {
    .main-content {
      padding-bottom: calc(80px + env(safe-area-inset-bottom));
    }
  }
}

/* ========================================
   BLOG PAGE
   ======================================== */

.blog-page {
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.blog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.blog-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.blog-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.blog-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(102, 126, 234, 0.5);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.blog-card-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.blog-card-featured .blog-card-image {
  height: 100%;
  min-height: 300px;
}

.blog-card-image {
  height: 180px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  object-fit: cover;
  width: 100%;
}

.blog-card-content {
  padding: 1.25rem;
  flex: 1 1;
  display: flex;
  flex-direction: column;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.blog-card-type {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
}

.blog-card-type--major_update { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.blog-card-type--minor_update { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.blog-card-type--announcement { background: rgba(168, 85, 247, 0.2); color: #a855f7; }
.blog-card-type--technical { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.blog-card-type--investor_update { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.blog-card-type--product_update { background: rgba(102, 126, 234, 0.2); color: #667eea; }

.blog-card-date {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.blog-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
  flex: 1 1;
  margin-bottom: 1rem;
}

.blog-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.blog-card-author {
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
}

.blog-card-audiences {
  display: flex;
  gap: 0.5rem;
}

.blog-empty {
  text-align: center;
  padding: 4rem 2rem;
}

.blog-empty-icon {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.blog-empty-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.blog-empty-text {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ========================================
   PREVIEW FEATURES SECTION
   ======================================== */

.preview-features-section {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border: 1px solid rgba(102, 126, 234, 0.3);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.preview-features-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.preview-features-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.preview-features-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.preview-features-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

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

.preview-feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.2s ease;
}

.preview-feature-card:hover {
  border-color: rgba(102, 126, 234, 0.5);
  transform: translateY(-2px);
}

.preview-feature-image {
  height: 140px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.2) 0%, rgba(118, 75, 162, 0.2) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.preview-feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-feature-image--empty {
  color: var(--text-secondary);
}

.preview-feature-content {
  padding: 1rem;
}

.preview-feature-pr-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  background: rgba(168, 85, 247, 0.2);
  color: #a855f7;
  margin-bottom: 0.75rem;
}

.preview-feature-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.preview-feature-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.preview-feature-stage {
  margin-bottom: 0.75rem;
}

.preview-feature-stage-badge {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
}

.preview-feature-stage-badge--backlog { background: rgba(107, 114, 128, 0.2); color: #6b7280; }
.preview-feature-stage-badge--todo { background: rgba(59, 130, 246, 0.2); color: #3b82f6; }
.preview-feature-stage-badge--in-progress { background: rgba(251, 191, 36, 0.2); color: #fbbf24; }
.preview-feature-stage-badge--review { background: rgba(168, 85, 247, 0.2); color: #a855f7; }
.preview-feature-stage-badge--done { background: rgba(34, 197, 94, 0.2); color: #22c55e; }

.preview-feature-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #667eea;
  text-decoration: none;
  transition: color 0.2s ease;
}

.preview-feature-link:hover {
  color: #764ba2;
}

.preview-features-footer {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.preview-features-view-all {
  font-size: 0.9rem;
  font-weight: 500;
  color: #667eea;
  text-decoration: none;
}

.preview-features-view-all:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .blog-page {
    padding: 1rem;
  }

  .blog-header {
    flex-direction: column;
    gap: 1rem;
  }

  .blog-title {
    font-size: 1.75rem;
  }

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

  .blog-card-featured {
    grid-template-columns: 1fr;
  }

  .blog-card-featured .blog-card-image {
    min-height: 200px;
  }

  .preview-features-grid {
    grid-template-columns: 1fr;
  }
}
/* ============================================ */
/* Section Toggle Buttons - Workflow Page      */
/* ============================================ */

.section-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 1rem;
  align-items: center;
}

.section-toggle-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.section-toggle-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.section-toggle-btn.active {
  background: rgba(99, 102, 241, 0.1);
  border-color: #6366f1;
  color: var(--text-primary);
  box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
}

.section-toggle-btn.inactive {
  opacity: 0.5;
  background: var(--bg-secondary);
}

.section-toggle-btn.inactive:hover {
  opacity: 0.8;
}

.section-toggle-icon {
  font-size: 1rem;
}

.section-toggle-name {
  font-weight: 500;
}

.section-toggle-count {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  min-width: 1.5rem;
  text-align: center;
}

.section-toggle-actions {
  display: flex;
  gap: 0.5rem;
  margin-left: auto;
  padding-left: 1rem;
  border-left: 1px solid var(--border-color);
}

.toggle-all-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.375rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.toggle-all-btn:hover {
  background: var(--bg-hover);
  color: #6366f1;
  border-color: #6366f1;
}

/* ============================================ */
/* Search Bar - Workflow Page                  */
/* ============================================ */

.search-bar-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-bottom: 1rem;
}

.search-bar {
  flex: 1 1;
  max-width: 500px;
  display: flex;
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  padding: 0 1rem;
  transition: all 0.2s ease;
}

.search-bar:focus-within {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.search-bar .search-icon {
  color: var(--text-secondary);
  margin-right: 0.75rem;
  flex-shrink: 0;
}

.search-bar .search-input {
  flex: 1 1;
  padding: 0.75rem 0;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.875rem;
  outline: none;
}

.search-bar .search-input::placeholder {
  color: var(--text-muted);
}

.search-clear-btn {
  background: var(--bg-secondary);
  border: none;
  color: var(--text-secondary);
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.search-clear-btn:hover {
  background: var(--bg-hover);
  color: #6366f1;
}

/* ============================================ */
/* Section Close Button                        */
/* ============================================ */
/* SNAKE PATTERN - Reversed Sections           */
/* ============================================ */

/* Reversed sections (odd rows in snake) - flow right to left */
.wf-section--reversed .wf-section-columns {
  flex-direction: row-reverse;
}

/* Arrow direction for reversed sections */
.wf-section--reversed .wf-column:not(:last-child)::after {
  content: '‹';
  left: -12px;
  right: auto;
}

@media (min-width: 640px) {
  /* Snake row connectors - horizontal dotted line between first and second in row */
  .wf-section[data-position="first"]::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -1.5rem;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 3px;
    background: repeating-linear-gradient(
      to right,
      rgba(99, 102, 241, 0.6) 0px,
      rgba(99, 102, 241, 0.6) 6px,
      transparent 6px,
      transparent 12px
    );
    z-index: 5;
  }

  /* Vertical connector going down after second section in row */
  .wf-section[data-position="second"]:not(:last-of-type)::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 1rem;
    background: repeating-linear-gradient(
      to bottom,
      rgba(99, 102, 241, 0.6) 0px,
      rgba(99, 102, 241, 0.6) 6px,
      transparent 6px,
      transparent 12px
    );
    z-index: 5;
  }

  /* For reversed rows, connector should go down from the LEFT section (which is now second visually) */
  .wf-section--reversed[data-position="second"]:not(:last-of-type)::after {
    left: auto;
    right: 50%;
    transform: translateX(50%);
  }

  /* Reversed arrow direction */
  .wf-section--reversed .wf-column:not(:last-child)::after {
    content: '‹';
    left: -14px;
    right: auto;
  }
}

@media (min-width: 1024px) {
  .wf-section[data-position="first"]::after {
    width: 2rem;
    right: -2rem;
  }

  .wf-section--reversed .wf-column:not(:last-child)::after {
    left: -16px;
  }
}

@media (min-width: 1440px) {
  .wf-section[data-position="first"]::after {
    width: 2.5rem;
    right: -2.5rem;
    height: 4px;
  }

  .wf-section[data-position="second"]:not(:last-of-type)::after {
    height: 2rem;
    width: 4px;
  }

  .wf-section--reversed .wf-column:not(:last-child)::after {
    left: -20px;
  }
}

@media (min-width: 1800px) {
  .wf-section[data-position="first"]::after {
    width: 3rem;
    right: -3rem;
    height: 5px;
  }

  .wf-section[data-position="second"]:not(:last-of-type)::after {
    height: 2rem;
    width: 5px;
  }

  .wf-section--reversed .wf-column:not(:last-child)::after {
    left: -24px;
  }
}

/* ============================================ */

.wf-section-close {
  margin-left: auto;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  opacity: 0;
}

.wf-section:hover .wf-section-close {
  opacity: 1;
}

.wf-section-close:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

/* ============================================ */
/* Single-Column Sections (like Orca, Product) */
/* ============================================ */

/* Hide dash line for sections with only one column */
.wf-section-columns:has(.wf-column:only-child)::before {
  display: none !important;
}

/* Single-column sections use natural height - don't stretch to match neighbors */
.wf-section:has(.wf-column:only-child) {
  align-self: start;
}

/* ============================================ */
/* Empty State - Workflow Page                 */
/* ============================================ */

.wf-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background: var(--card-bg);
  border: 1px dashed var(--border-color);
  border-radius: 1rem;
  width: 100%;
  text-align: center;
  gap: 1rem;
}

.wf-empty-state svg {
  color: var(--text-muted);
  opacity: 0.5;
}

.wf-empty-state p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 400px;
}

.wf-empty-state .toggle-all-btn {
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
}

/* ============================================ */
/* Responsive - Section Toggles                */
/* ============================================ */

@media (max-width: 1200px) {
  .section-toggles {
    gap: 0.375rem;
  }

  .section-toggle-btn {
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
  }

  .section-toggle-actions {
    width: 100%;
    margin-top: 0.5rem;
    padding-left: 0;
    border-left: none;
    padding-top: 0.5rem;
    border-top: 1px solid var(--border-color);
    justify-content: flex-end;
  }
}

@media (max-width: 768px) {
  .search-bar-container {
    flex-direction: column;
    align-items: stretch;
  }

  .search-bar {
    max-width: 100%;
  }

  .section-toggle-btn .section-toggle-name {
    display: none;
  }

  .section-toggle-btn .section-toggle-icon {
    font-size: 1.125rem;
  }

  .section-toggle-count {
    font-size: 0.6875rem;
    padding: 0.125rem 0.375rem;
  }
}

@media (max-width: 480px) {
  .section-toggles {
    gap: 0.25rem;
  }

  .section-toggle-btn {
    padding: 0.375rem 0.5rem;
  }

  .toggle-all-btn {
    padding: 0.375rem 0.5rem;
    font-size: 0.6875rem;
  }

  .toggle-all-btn span:not(:first-child) {
    display: none;
  }
}

/* ========================================
   WORKFLOW SPLIT LAYOUT
   ======================================== */

/* Workflow page fills the main-content area (which already has proper margin) */
.main-content:has(.workflow-page--split) {
  padding: 0 !important;
}

.workflow-page--split {
  display: flex !important;
  flex-direction: row !important;
  min-height: 100vh;
  padding: 0;
  width: 100%;
}

/* Left Sidebar - Modules */
.wf-modules-sidebar {
  width: 180px;
  min-width: 180px;
  max-width: 180px;
  background: var(--card-bg);
  border-right: 1px solid var(--border-color);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 10;
}

.wf-modules-sidebar.collapsed {
  width: 44px;
  min-width: 44px;
  max-width: 44px;
}

/* Sidebar collapse toggle */
.wf-sidebar-collapse-toggle {
  display: block;
  width: 100%;
  padding: 0.5rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.wf-sidebar-collapse-toggle:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.wf-sidebar-collapse-toggle .rotated {
  transform: rotate(180deg);
}

/* Collapsed modules nav */
.wf-modules-nav-collapsed {
  padding: 0.25rem;
}

.wf-module-item-collapsed {
  display: block;
  width: 100%;
  padding: 0.35rem;
  border: none;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 2px;
}

.wf-module-item-collapsed:hover {
  background: var(--bg-hover);
}

.wf-module-item-collapsed.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
}

/* Collapsible Section Header */
.wf-sidebar-section {
  border-bottom: 1px solid var(--border-color);
}

.wf-sidebar-section:last-child {
  border-bottom: none;
}

.wf-sidebar-section-header {
  display: block;
  padding: 0.5rem;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
}

.wf-sidebar-section-header:hover {
  background: var(--bg-hover);
}

.wf-sidebar-section-header h2 {
  display: inline;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.wf-sidebar-section-toggle {
  float: right;
  color: var(--text-muted);
}

.wf-sidebar-section.collapsed .wf-sidebar-section-toggle {
  transform: rotate(-90deg);
}

.wf-sidebar-section-content {
  overflow: hidden;
}

.wf-sidebar-section.collapsed .wf-sidebar-section-content {
  display: none;
}

.wf-modules-header {
  padding: 0.5rem;
  border-bottom: 1px solid var(--border-color);
}

.wf-modules-header h2 {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

/* Module items - BLOCK level, not flex */
.wf-modules-nav {
  padding: 0.25rem;
}

.wf-module-item {
  display: block;
  width: 100%;
  padding: 0.4rem 0.5rem;
  border: none;
  background: transparent;
  color: var(--text-primary);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.8rem;
  text-align: left;
  margin-bottom: 2px;
}

.wf-module-item:hover {
  background: var(--bg-hover);
}

.wf-module-item.active {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
  color: #667eea;
}

.wf-module-icon {
  display: inline;
  margin-right: 0.4rem;
}

.wf-module-name {
  display: inline;
}

.wf-module-count {
  float: right;
  background: var(--border-color);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-size: 0.65rem;
  color: var(--text-secondary);
}

.wf-module-item.active .wf-module-count {
  background: rgba(102, 126, 234, 0.2);
  color: #667eea;
}


/* Agent Thumbnails in Sidebar */
.wf-module-agents {
  padding: 0.25rem;
  background: var(--bg-secondary);
}

.wf-module-agents h3 {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 0.35rem 0;
  padding: 0 0.15rem;
}

.wf-agents-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 0.25rem;
  gap: 0.25rem;
}

.wf-agent-thumbnail {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 0.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wf-agent-thumbnail:hover {
  border-color: #667eea;
  transform: translateY(-2px);
}

.wf-agent-icon {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.wf-agent-name {
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.2;
}

/* Main Content Area */
.wf-main-content {
  flex: 1 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding-bottom: 80px; /* Space for floating toolbar */
}

.wf-content-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 5;
}

.wf-content-title {
  flex-shrink: 0;
}

.wf-content-title h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.wf-content-title .subtitle {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin: 0.125rem 0 0 0;
}

.wf-content-search {
  flex: 1 1;
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  transition: border-color 0.15s;
}

.wf-content-search:focus-within {
  border-color: #667eea;
}

.wf-content-search .search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.wf-content-search input {
  flex: 1 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.875rem;
  outline: none;
}

.wf-content-search input::placeholder {
  color: var(--text-muted);
}

.wf-content-search .search-clear-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
}

/* Quick-Add Input (floating above toolbar) */
.wf-quick-add {
  position: fixed;
  bottom: 6rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25), 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 101;
  min-width: 400px;
  max-width: 500px;
  animation: wf-quick-add-appear 0.15s ease-out;
}

@keyframes wf-quick-add-appear {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

html[data-theme='light'] .wf-quick-add {
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
}

.wf-quick-add-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}

.wf-quick-add-back:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.wf-quick-add-input {
  flex: 1 1;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 0.95rem;
  padding: 0.5rem 0;
  outline: none;
}

.wf-quick-add-input::placeholder {
  color: var(--text-muted);
}

.wf-quick-add-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 0.65rem;
  font-weight: 600;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  flex-shrink: 0;
}

.wf-quick-add-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s;
}

.wf-quick-add-submit:hover:not(:disabled) {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.wf-quick-add-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Floating Bottom Toolbar */
.wf-floating-toolbar {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 100;
}

html[data-theme='light'] .wf-floating-toolbar {
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wf-toolbar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wf-toolbar-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

.wf-toolbar-btn.active {
  background: rgba(102, 126, 234, 0.15);
  color: #667eea;
}

/* Primary Add Task button - prominent gradient square */
.wf-toolbar-btn--primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.wf-toolbar-btn--primary:hover {
  background: linear-gradient(135deg, #5a71d6 0%, #6a4292 100%);
  color: white;
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.wf-toolbar-btn--primary svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

.wf-toolbar-divider {
  width: 1px;
  height: 24px;
  background: var(--border-color);
  margin: 0 0.25rem;
}

/* Hide old FAB when using split layout */
.workflow-page--split .wf-fab {
  display: none;
}

/* Responsive: Adjust for smaller screens */
@media (max-width: 768px) {
  .wf-modules-sidebar {
    width: 140px;
    min-width: 140px;
    max-width: 140px;
  }

  .wf-modules-sidebar.collapsed {
    width: 44px;
    min-width: 44px;
    max-width: 44px;
  }
}

@media (max-width: 480px) {
  .workflow-page--split {
    flex-direction: column;
  }

  .wf-modules-sidebar {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .wf-floating-toolbar {
    bottom: 1rem;
    padding: 0.375rem;
    gap: 0.125rem;
  }
}

/* ==========================================
   PEOPLE PAGE STYLES
   ========================================== */

.people-page {
  min-height: 100vh;
  background: var(--bg-color);
}

.people-page__header {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 2rem;
}

.people-page__header-content {
  max-width: 1400px;
  margin: 0 auto;
}

.people-page__header-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.people-page__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.people-page__brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
}

.people-page__brand-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.people-page__search-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.people-page__search-input-wrapper {
  position: relative;
  flex: 1 1;
  max-width: 400px;
}

.people-page__search-icon {
  position: absolute;
  left: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
}

.people-page__search-input {
  width: 100%;
  padding-left: 2.5rem !important;
}

.people-page__count {
  color: var(--text-secondary);
  font-size: 0.875rem;
  white-space: nowrap;
}

.people-page__main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.people-page__intro {
  text-align: center;
  margin-bottom: 2.5rem;
}

.people-page__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.people-page__subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.people-page__sections {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.people-page__empty {
  text-align: center;
  padding: 4rem 2rem;
}

.people-page__empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.people-page__empty-title {
  font-size: 1.25rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.people-page__empty-text {
  color: var(--text-secondary);
}

/* ==========================================
   EXPERTISE SECTION STYLES
   ========================================== */

.expertise-section {
  margin-bottom: 1rem;
}

.expertise-section__header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-color);
}

.expertise-section__icon {
  font-size: 1.25rem;
}

.expertise-section__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.expertise-section__count {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.expertise-section__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  grid-gap: 1.25rem;
  gap: 1.25rem;
}

/* ==========================================
   PERSON CARD STYLES
   ========================================== */

.person-card {
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  transition: all 0.2s ease;
}

.person-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.person-card__gradient-corner {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, transparent 50%, rgba(102, 126, 234, 0.1) 100%);
  pointer-events: none;
}

.person-card__content {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.person-card__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.person-card__avatar {
  flex-shrink: 0;
}

.person-card__info {
  flex: 1 1;
  min-width: 0;
}

.person-card__name {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.person-card__role {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.person-card__social {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.person-card__social-link {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.person-card__social-link:hover {
  color: white;
}

.person-card__social-link--linkedin:hover {
  background: #0077b5;
}

.person-card__social-link--email:hover {
  background: #667eea;
}

.person-card__social-link--whatsapp:hover {
  background: #25d366;
}

.person-card__contribution-badge {
  display: inline-flex;
  font-size: 0.75rem;
}

.person-card__comments {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 0.5rem;
}

.person-card__comments::-webkit-scrollbar {
  width: 4px;
}

.person-card__comments::-webkit-scrollbar-track {
  background: transparent;
}

.person-card__comments::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 2px;
}

.person-card__comment-item {
  font-size: 0.8rem;
}

.person-card__suggestion {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.5rem;
  background: var(--bg-hover);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.person-card__suggestion:hover {
  background: var(--bg-secondary);
}

.person-card__suggestion--completed {
  opacity: 0.6;
}

.person-card__checkbox {
  flex-shrink: 0;
  margin-top: 2px;
}

.person-card__checkbox-icon {
  color: var(--text-secondary);
}

.person-card__checkbox-icon--checked {
  color: #22c55e;
}

.person-card__suggestion-content {
  flex: 1 1;
  min-width: 0;
}

.person-card__suggestion-text {
  color: var(--text-primary);
  line-height: 1.4;
}

.person-card__suggestion-text--completed {
  text-decoration: line-through;
  color: var(--text-secondary);
}

.person-card__suggestion-tags {
  display: flex;
  gap: 0.375rem;
  margin-top: 0.375rem;
  flex-wrap: wrap;
}

.person-card__tag {
  font-size: 0.65rem;
}

.person-card__tag--task {
  border-color: #667eea;
  color: #667eea;
}

.person-card__tag--pr {
  border-color: #22c55e;
  color: #22c55e;
}

.person-card__comment {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.375rem 0;
}

.person-card__comment-icon {
  flex-shrink: 0;
  font-size: 0.875rem;
}

.person-card__comment-text {
  color: var(--text-secondary);
  font-style: italic;
  line-height: 1.4;
}

.person-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-color);
}

.person-card__feedback-count {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.person-card__status-badge {
  font-size: 0.7rem;
}

.person-card__status-badge--purple {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
}

.person-card__status-badge--pink {
  background: rgba(236, 72, 153, 0.15);
  color: #f472b6;
}

.person-card__status-badge--orange {
  background: rgba(251, 146, 60, 0.15);
  color: #fb923c;
}

.person-card__status-badge--green {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.person-card__status-badge--blue {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.person-card__status-badge--red {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

/* Responsive adjustments for People page */
@media (max-width: 768px) {
  .people-page__header {
    padding: 1rem;
  }

  .people-page__header-top {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }

  .people-page__search-bar {
    flex-direction: column;
    width: 100%;
  }

  .people-page__search-input-wrapper {
    max-width: 100%;
    width: 100%;
  }

  .people-page__main {
    padding: 1rem;
  }

  .people-page__title {
    font-size: 1.5rem;
  }

  .expertise-section__grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   FEATURE BRANCH RIBBON
   ======================================== */

.feature-branch-ribbon {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  border-bottom-left-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  animation: ribbon-slide-in 0.3s ease-out;
}

@keyframes ribbon-slide-in {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.ribbon-content {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.ribbon-icon {
  opacity: 0.9;
}

.ribbon-branch {
  font-weight: 600;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ribbon-port {
  opacity: 0.8;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

.ribbon-pr-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.5rem;
  padding: 0.125rem 0.375rem;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  color: white;
  text-decoration: none;
  transition: background 0.15s ease;
}

.ribbon-pr-link:hover {
  background: rgba(255, 255, 255, 0.3);
}

.ribbon-pr-number {
  font-weight: 600;
}

.ribbon-dismiss {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem;
  margin-left: 0.25rem;
  background: transparent;
  border: none;
  border-radius: 4px;
  color: white;
  opacity: 0.7;
  cursor: pointer;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.ribbon-dismiss:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.15);
}

/* Light theme adjustments */
:root[data-theme='light'] .feature-branch-ribbon {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* =====================================================
   WORKERS DASHBOARD
   ===================================================== */

.workers-dashboard {
  padding: 0.5rem;
}

.workers-dashboard-collapsed {
  display: flex;
  justify-content: center;
  padding: 0.5rem 0;
}

.workers-collapsed-icon {
  position: relative;
  color: var(--text-secondary);
}

.workers-count-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  font-size: 0.6rem;
  font-weight: 600;
  padding: 1px 4px;
  border-radius: 8px;
  background: #10B981;
  color: white;
}

.workers-count-badge.busy {
  background: #3B82F6;
}

.workers-stats {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem;
  background: var(--bg-secondary);
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.workers-stat {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.workers-stat.busy {
  color: #3B82F6;
}

.workers-stat.completed {
  color: #10B981;
}

.workers-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.workers-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.worker-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  background: var(--bg-secondary);
  border-radius: 6px;
  border: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.worker-item:hover {
  border-color: var(--border-color);
}

.worker-item.busy {
  border-left: 2px solid #3B82F6;
}

.worker-item.idle {
  border-left: 2px solid #10B981;
}

.worker-item.draining {
  border-left: 2px solid #F59E0B;
}

.worker-item.stale {
  opacity: 0.6;
}

.worker-status-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.worker-info {
  flex: 1 1;
  min-width: 0;
}

.worker-name {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-primary);
}

.worker-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.worker-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.worker-type {
  background: var(--bg-hover);
  padding: 1px 4px;
  border-radius: 3px;
}

.worker-status-text {
  display: flex;
  align-items: center;
  gap: 2px;
}

.worker-task {
  font-size: 0.6rem;
  color: #3B82F6;
  margin-top: 2px;
  font-style: italic;
}

.worker-stats-mini {
  display: flex;
  gap: 0.25rem;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.worker-stats-mini .failed {
  color: #EF4444;
}

