/* ==========================================================================
   COMPTECH CREATIVE STUDIO HUB - COMPONENTS CSS
   Kanban Board, Task Cards, Modals, Brand Vault & Analytics
   ========================================================================== */

/* ==========================================================================
   KANBAN BOARD LAYOUT
   ========================================================================== */
.kanban-board {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 1.5rem;
  min-height: calc(100vh - 180px);
  align-items: flex-start;
}

.kanban-board::-webkit-scrollbar {
  height: 8px;
}

.kanban-board::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
}

.kanban-column {
  flex: 0 0 320px;
  background: rgba(35, 38, 43, 0.7);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-radius: 0;
  border: 1px solid var(--glass-border);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 190px);
  box-shadow: var(--glass-specular), 0 8px 24px rgba(0, 0, 0, 0.4);
}

.column-header {
  padding: 0.85rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--glass-border);
  background: rgba(17, 17, 17, 0.35);
}

.column-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.column-indicator {
  width: 6px;
  height: 6px;
  border-radius: 0;
}

.column-title {
  font-family: var(--font-heading);
  font-stretch: 110%;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.column-count {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(17, 17, 17, 0.6);
  padding: 2px 7px;
  border-radius: 0;
  border: 1px solid var(--glass-border);
}

.column-droppable {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  flex: 1;
  min-height: 120px;
  transition: var(--transition);
}

.column-droppable.drag-over {
  background: rgba(255, 90, 31, 0.06);
  outline: 1px dashed var(--ct-orange);
}

.empty-column-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-align: center;
}

.placeholder-icon {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
  opacity: 0.5;
}

/* ==========================================================================
   TASK CARDS (Chamfer Cut & Specular Borders)
   ========================================================================== */
.task-card {
  background: rgba(35, 38, 43, 0.8);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 0;
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 4px 14px rgba(0, 0, 0, 0.35);
  cursor: grab;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
  overflow: hidden;
  position: relative;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.task-card:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 28px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(45, 49, 57, 0.95);
}

.task-card.is-dragging {
  opacity: 0.4;
  cursor: grabbing;
}

.card-proof-preview {
  position: relative;
  width: 100%;
  height: 140px;
  background: #0D0E10;
  overflow: hidden;
}

.card-proof-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.task-card:hover .card-proof-preview img {
  transform: scale(1.04);
}

.proof-version-tag {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: rgba(17, 17, 17, 0.85);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.675rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.proof-approved-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #22C55E;
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 0;
  letter-spacing: 0.04em;
}

.card-body {
  padding: 0.85rem;
}

.card-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.brand-pill {
  font-family: var(--font-mono);
  font-size: 0.675rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-brand-equipments {
  background: rgba(245, 158, 11, 0.12);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-brand-motocorp {
  background: rgba(255, 90, 31, 0.12);
  color: var(--ct-orange);
  border: 1px solid rgba(255, 90, 31, 0.35);
}

.priority-pill {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 0;
  text-transform: uppercase;
}

.badge-urgent {
  background: rgba(255, 90, 31, 0.15);
  color: var(--ct-orange);
  border: 1px solid var(--ct-orange);
}

.badge-high {
  background: rgba(249, 115, 22, 0.15);
  color: #FB923C;
  border: 1px solid rgba(249, 115, 22, 0.3);
}

.badge-normal {
  background: rgba(56, 189, 248, 0.1);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.25);
}

.badge-low {
  background: rgba(156, 163, 175, 0.1);
  color: #9CA3AF;
  border: 1px solid rgba(156, 163, 175, 0.2);
}

.card-title {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: 0.45rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-category-dim {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.45rem;
  flex-wrap: wrap;
}

.category-tag {
  font-size: 0.725rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

.dim-tag {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: monospace;
}

.card-copy-snippet {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.due-date-pill {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.725rem;
  color: var(--text-muted);
}

.due-date-pill.pill-overdue {
  color: #EF4444;
  font-weight: 600;
}

.card-quick-actions {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.btn-wa-share {
  color: #25D366;
}

.btn-wa-share:hover {
  background: rgba(37, 211, 102, 0.15);
}

/* ==========================================================================
   LIST VIEW TABLE
   ========================================================================== */
.list-view-container {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.tasks-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.tasks-table th {
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-secondary);
  font-weight: 600;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.tasks-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.table-task-row {
  cursor: pointer;
  transition: var(--transition);
}

.table-task-row:hover {
  background: var(--bg-card);
}

.table-task-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.table-task-title {
  color: var(--text-primary);
  font-weight: 600;
}

.table-dim-sub {
  font-size: 0.725rem;
  color: var(--text-muted);
  font-family: monospace;
}

.stage-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
}

.stage-select-dropdown {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.8rem;
  padding: 0.35rem 0.6rem;
  border-radius: var(--radius-sm);
  outline: none;
}

.proof-count-badge {
  font-size: 0.775rem;
  color: var(--text-secondary);
}

.text-overdue {
  color: #EF4444;
  font-weight: 600;
}

.table-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.empty-table-cell {
  text-align: center;
  padding: 3rem 1rem !important;
  color: var(--text-muted);
}

/* ==========================================================================
   MODALS & DRAWERS
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  z-index: 50;
  animation: fadeIn 0.2s ease forwards;
}

.modal-dialog {
  position: fixed;
  z-index: 51;
  background: rgba(35, 38, 43, 0.92);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-specular);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 24px 60px rgba(0, 0, 0, 0.7);
  overflow-y: auto;
}

/* Task Detail Drawer (Right slide-over) */
.modal-task-drawer {
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 820px;
  animation: slideInRight 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--glass-border-specular);
}

/* Centered modals (Intake, WhatsApp, Edit) */
.modal-intake, .modal-whatsapp, .modal-edit-task {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 720px;
  max-height: 90vh;
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  animation: scaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

.modal-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.stage-picker-inline, .priority-picker-inline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.form-select-sm {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  outline: none;
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-close-modal {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.06);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-close-modal:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--text-primary);
}

.modal-title-bar {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.drawer-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  outline: none;
  border-radius: var(--radius-sm);
  padding: 2px 6px;
  margin-left: -6px;
}

.drawer-title:focus {
  background: var(--bg-card);
  box-shadow: 0 0 0 2px var(--accent-blue);
}

/* Tabs */
.drawer-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
  padding: 0 1.5rem;
}

.tab-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.85rem 1.15rem;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--accent-blue);
  border-bottom-color: var(--accent-blue);
}

.drawer-content {
  padding: 1.5rem;
  flex: 1;
  overflow-y: auto;
}

/* Brief layout */
.brief-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
}

.brief-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-block label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.spec-value {
  font-size: 0.875rem;
  color: var(--text-primary);
}

.contact-link {
  display: inline-block;
  margin-top: 0.35rem;
  color: #25D366;
  font-size: 0.8rem;
  text-decoration: none;
}

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

.brief-main {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.brief-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.brief-card-header {
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brief-card-header h3 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-copy-action {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-copy-action:hover {
  background: rgba(255, 255, 255, 0.16);
}

.brief-card-body {
  padding: 1rem;
}

.copy-text-box {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.875rem;
  line-height: 1.6;
  color: #E2E8F0;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.notes-text {
  font-size: 0.875rem;
  color: #CBD5E1;
  line-height: 1.55;
}

/* Proofs tab */
.proof-upload-box {
  border: 2px dashed rgba(59, 130, 246, 0.4);
  background: rgba(59, 130, 246, 0.04);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.proof-upload-box:hover {
  border-color: var(--accent-blue);
  background: rgba(59, 130, 246, 0.08);
}

.upload-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.upload-inner h4 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.upload-inner p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.upload-version-inputs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 500px;
  margin: 0 auto;
}

.input-sm {
  width: 110px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
}

.input-md {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.825rem;
}

.proofs-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.section-subtitle {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.proof-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
}

.proof-card.proof-is-final {
  border-color: rgba(16, 185, 129, 0.5);
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.15);
}

.proof-header {
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.proof-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.version-tag {
  font-size: 0.8rem;
  font-weight: 700;
  background: var(--accent-blue);
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
}

.proof-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.proof-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-toggle-approve {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
}

.btn-toggle-approve:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.4);
}

.proof-preview-container {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.proof-full-img {
  max-width: 100%;
  max-height: 480px;
  object-fit: contain;
}

.proof-footer-notes {
  padding: 0.75rem 1rem;
  font-size: 0.825rem;
  background: rgba(0, 0, 0, 0.15);
  border-top: 1px solid var(--border-color);
}

.designer-label {
  font-weight: 700;
  color: var(--accent-blue);
}

/* Revisions tab */
.new-revision-box {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.new-revision-box h4 {
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.revision-form {
  margin-top: 0.85rem;
}

.revisions-history {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.revision-item {
  background: var(--bg-card);
  border-left: 3px solid #F97316;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.revision-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.revision-text {
  font-size: 0.85rem;
  color: #F1F5F9;
  line-height: 1.45;
}

/* ==========================================================================
   INTAKE & CREATIVE BRIEF MODAL
   ========================================================================== */
.intake-form {
  padding: 1.5rem;
}

.brand-radio-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.brand-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
}

.brand-radio-card.selected {
  background: rgba(59, 130, 246, 0.1);
  border-color: var(--accent-blue);
}

.brand-radio-content strong {
  display: block;
  font-size: 0.875rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.brand-radio-content span {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.presets-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.preset-pill-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.725rem;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.preset-pill-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

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

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

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.image-preview-slot {
  margin-top: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.img-thumb-preview {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-color);
}

.btn-remove-thumb {
  background: transparent;
  border: none;
  color: #EF4444;
  font-size: 0.8rem;
  cursor: pointer;
}

/* ==========================================================================
   WHATSAPP BRIDGE MODAL
   ========================================================================== */
.wa-modal-body {
  padding: 1.5rem;
}

.wa-icon-badge {
  width: 36px;
  height: 36px;
  background: #25D366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.template-selector {
  margin-bottom: 1.25rem;
}

.template-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.template-pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.template-pill:hover {
  color: var(--text-primary);
}

.template-pill.active {
  background: #25D366;
  color: #FFFFFF;
  border-color: #25D366;
}

.wa-chat-bubble {
  background: #0B1E19 !important;
  border: 1px solid rgba(37, 211, 102, 0.3) !important;
  color: #D1FAE5 !important;
  font-family: monospace;
  font-size: 0.85rem !important;
  line-height: 1.5;
  border-radius: var(--radius-md) var(--radius-md) var(--radius-md) 0;
}

.wa-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* ==========================================================================
   BRAND VAULT LAYOUT
   ========================================================================== */
.brand-vault-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.vault-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.vault-brand-tabs {
  display: flex;
  background: var(--bg-surface);
  padding: 3px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
}

.vault-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.vault-tab-btn.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.vault-hero-banner {
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.vault-hero-banner.theme-equipments {
  background: linear-gradient(135deg, #0F2B48 0%, #081626 100%);
  border-color: rgba(245, 158, 11, 0.3);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.12);
}

.vault-hero-banner.theme-motocorp {
  background: linear-gradient(135deg, #2B0808 0%, #0F172A 100%);
  border-color: rgba(220, 38, 38, 0.35);
  box-shadow: 0 0 35px rgba(220, 38, 38, 0.15);
}

.vault-industry-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.vault-brand-title {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.vault-tagline {
  font-size: 1.1rem;
  color: #CBD5E1;
  font-style: italic;
}

.vault-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 1.25rem;
}

.vault-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
}

.vault-card {
  background: rgba(35, 38, 43, 0.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  padding: 1.5rem;
  box-shadow: var(--glass-specular);
}

.vault-card.full-width {
  grid-column: 1 / -1;
}

.vault-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--glass-border);
}

.vault-card-header h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.palette-swatch-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
}

.swatch-card {
  background: rgba(17, 17, 17, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 0 100%);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
}

.swatch-card:hover {
  transform: translateY(-2px);
  border-color: var(--ct-orange);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.swatch-color {
  height: 60px;
  width: 100%;
}

.swatch-info {
  padding: 0.65rem;
  display: flex;
  flex-direction: column;
}

.swatch-name {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}

.swatch-hex {
  font-size: 0.775rem;
  font-family: var(--font-mono);
  color: var(--ct-orange);
  font-weight: 700;
  margin-top: 2px;
}

.swatch-role {
  font-size: 0.675rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.preset-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.preset-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(17, 17, 17, 0.5);
  padding: 0.7rem 0.95rem;
  border-radius: 0;
  border: 1px solid var(--glass-border);
  transition: var(--transition);
}

.preset-item:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(17, 17, 17, 0.75);
}

.preset-main {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.825rem;
}

.preset-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: rgba(255, 90, 31, 0.1);
  color: var(--ct-orange);
  border: 1px solid rgba(255, 90, 31, 0.25);
  padding: 1px 6px;
  border-radius: 0;
  text-transform: uppercase;
}

.preset-specs code {
  font-size: 0.775rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.typography-details {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.typo-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.typo-preview {
  background: rgba(17, 17, 17, 0.6);
  padding: 0.85rem 1rem;
  border-radius: 0;
  border: 1px solid var(--glass-border);
  font-size: 0.875rem;
  color: var(--text-primary);
}

.heading-sample {
  font-family: var(--font-heading);
  font-stretch: 115%;
  font-weight: 700;
  font-size: 1.25rem;
}

.body-sample {
  font-family: var(--font-body);
  line-height: 1.6;
}

.guidelines-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.guidelines-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.rule-bullet {
  color: var(--ct-orange);
  font-family: var(--font-mono);
  font-weight: 700;
}

/* ==========================================================================
   ANALYTICS & KPI DASHBOARD (Glassmorphic Chamfer Panels)
   ========================================================================== */
.analytics-container {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.kpi-card {
  background: rgba(35, 38, 43, 0.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  padding: 1.25rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1.15rem;
  box-shadow: var(--glass-specular);
  transition: var(--transition);
}

.kpi-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.kpi-card.kpi-urgent {
  border-color: var(--ct-orange);
  background: rgba(255, 90, 31, 0.08);
}

.kpi-icon {
  font-size: 1.6rem;
}

.kpi-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  line-height: 1.1;
  color: var(--text-primary);
}

.kpi-label {
  font-family: var(--font-mono);
  font-size: 0.725rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-top: 3px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.analytics-card {
  background: rgba(35, 38, 43, 0.75);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: 0;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  padding: 1.4rem;
  box-shadow: var(--glass-specular);
}

.analytics-card.full-width {
  grid-column: 1 / -1;
}

.card-header-clean h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}

.split-bar-wrapper {
  height: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  display: flex;
  overflow: hidden;
  margin-bottom: 1rem;
}

.bar-eq {
  background: #F59E0B;
  transition: width 0.5s ease;
}

.bar-mo {
  background: #DC2626;
  transition: width 0.5s ease;
}

.split-legend {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
}

.dot-eq { background: #F59E0B; }
.dot-mo { background: #DC2626; }

.stage-meter-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.stage-meter-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stage-label-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
}

.stage-name {
  color: var(--text-primary);
  font-weight: 600;
}

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

.meter-bar-track {
  height: 8px;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.meter-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.category-pill-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cat-stat-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.chip-name {
  color: var(--text-secondary);
}

.chip-val {
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 7px;
  border-radius: var(--radius-full);
  font-weight: 700;
  color: var(--text-primary);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes scaleIn {
  from { transform: translate(-50%, -46%) scale(0.96); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .header-container {
    flex-wrap: wrap;
  }
  .brief-grid {
    grid-template-columns: 1fr;
  }
  .analytics-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .brand-switcher-nav {
    overflow-x: auto;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .brand-radio-group {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   AUTHENTICATION & USER PROFILE STYLES
   ========================================================================== */
.user-profile-widget {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  padding: 0.35rem 0.85rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.user-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  background: var(--ct-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #FFFFFF;
}

.user-meta-info {
  display: flex;
  flex-direction: column;
}

.user-name-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
}

.user-role-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.role-admin { color: var(--ct-orange); }
.role-manager { color: #38BDF8; }
.role-designer { color: #22C55E; }

.btn-logout {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.65rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-logout:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border-color: rgba(239, 68, 68, 0.4);
}

/* ==========================================================================
   MINIMALIST AUTH SCREEN (Header Logo strictly on top, nothing else)
   ========================================================================== */
.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: 
    radial-gradient(1000px 600px at 50% 35%, rgba(35, 38, 43, 0.96) 0%, rgba(17, 17, 17, 0.98) 75%),
    #111111;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.25s ease forwards;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  background: rgba(35, 38, 43, 0.82);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border-specular);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.15), 0 24px 64px rgba(0, 0, 0, 0.75);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
  overflow: hidden;
  position: relative;
}

/* Top: Strictly the official Comptech logo, nothing else */
.auth-header {
  padding: 2.75rem 2.5rem 1.85rem 2.5rem;
  text-align: center;
  border-bottom: 1px solid rgba(236, 236, 236, 0.08);
  background: rgba(17, 17, 17, 0.35);
}

.auth-logo-img {
  max-width: 270px;
  width: 82%;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

.auth-tabs {
  display: flex;
  background: rgba(17, 17, 17, 0.6);
  border-bottom: 1px solid var(--glass-border);
}

.auth-tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.auth-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
}

.auth-tab-btn.active {
  color: #FFFFFF;
  border-bottom-color: var(--ct-orange);
  background: rgba(35, 38, 43, 0.6);
}

.auth-body {
  padding: 2rem 2.25rem;
}

.auth-body .form-input,
.auth-body .form-select {
  background: var(--bg-input);
  border: 1px solid var(--glass-border);
  color: #FFFFFF;
  font-family: var(--font-body);
  padding: 0.65rem 0.9rem;
  border-radius: 0;
  width: 100%;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.auth-body .form-input:focus,
.auth-body .form-select:focus {
  border-color: var(--ct-orange);
  box-shadow: 0 0 0 1px var(--ct-orange);
  background: rgba(23, 25, 29, 0.95);
}

.auth-body .form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.auth-quick-access {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(236, 236, 236, 0.08);
}

.quick-access-label {
  font-family: var(--font-mono);
  font-size: 0.675rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.quick-access-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--ct-orange);
}

.quick-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.quick-chip {
  background: rgba(17, 17, 17, 0.7);
  border: 1px solid rgba(236, 236, 236, 0.12);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.725rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 0;
  cursor: pointer;
  transition: var(--transition);
}

.quick-chip:hover {
  background: rgba(255, 90, 31, 0.12);
  color: #FFFFFF;
  border-color: var(--ct-orange);
  transform: translateY(-1px);
}

/* ==========================================================================
   TASK EDITING & PERMISSION BANNERS
   ========================================================================== */
.permission-banner {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.permission-banner.allowed {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34D399;
}

.permission-banner.restricted {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #FBBF24;
}

.btn-edit-task-action {
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60A5FA;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-edit-task-action:hover {
  background: rgba(59, 130, 246, 0.25);
  color: #93C5FD;
}

/* ==========================================================================
   COLLABORATION & STAKEHOLDERS
   ========================================================================== */
.collaborator-section {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 1rem;
  margin-top: 1.25rem;
}

.collaborators-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.6rem;
  align-items: center;
}

.collaborator-tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 0.775rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-remove-collab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
}

.btn-remove-collab:hover {
  color: #EF4444;
}

.add-collab-dropdown {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.75rem;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  outline: none;
  cursor: pointer;
}

.card-assignee-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.725rem;
  color: #38BDF8;
  background: rgba(56, 189, 248, 0.1);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(56, 189, 248, 0.2);
  margin-bottom: 0.4rem;
}

.card-assigner-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

/* ==========================================================================
   TEAM PROGRESS & ASSIGNEE DASHBOARD
   ========================================================================== */
.team-progress-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.team-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.editor-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 1.25rem;
}

.editor-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

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

.editor-info-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.editor-avatar-lg {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--accent-blue) 0%, #06B6D4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #FFF;
}

.editor-name {
  font-size: 1.05rem;
  font-weight: 700;
}

.editor-role {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.editor-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.stat-box {
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.65rem;
  text-align: center;
  border: 1px solid var(--border-color);
}

.stat-box-val {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--text-primary);
}

.stat-box-lbl {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.editor-task-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 280px;
  overflow-y: auto;
}

.editor-task-item {
  background: var(--bg-card);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.editor-task-item:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.editor-task-name {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.editor-task-meta {
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* Edit Modal */
.modal-edit-task {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 740px;
  max-height: 90vh;
  border-radius: var(--radius-xl);
  animation: scaleIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@media (max-width: 768px) {
  .editor-stats-row {
    grid-template-columns: repeat(2, 1fr);
  }
}
