/* Project "Таймлайн" in the approved board concept: one card, task column on the left, purple bars. */
.workspace > .timeline-view { margin: 0 24px 32px !important; padding: 0 !important; display: grid !important; gap: 12px !important; background: #fff !important; }
.timeline-view > .task-visibility-bar { display: flex !important; gap: 16px !important; margin: 0 !important; padding: 0 2px !important; }
.timeline-view > .task-visibility-bar > div { display: flex !important; gap: 16px !important; }
.timeline-view > .task-visibility-bar span { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; color: #898397 !important; font-size: 13px !important; }

.timeline-view .timeline-shell { display: grid !important; grid-template-rows: none !important; grid-auto-rows: auto !important; align-content: start !important; height: auto !important; min-height: 0 !important; gap: 0 !important; margin: 0 !important; padding: 0 !important; border: 1px solid #eae5f3 !important; border-radius: 8px !important; background: #fff !important; box-shadow: none !important; }
.timeline-view .timeline-scale { grid-template-columns: 280px minmax(0,1fr) !important; margin: 0 !important; border-bottom: 1px solid #ece8f2 !important; background: #fbfaff !important; z-index: 2 !important; }
.timeline-view .timeline-left-heading { padding: 12px 16px !important; color: #898397 !important; font-size: 12px !important; font-weight: 500 !important; text-transform: uppercase !important; }
.timeline-view .timeline-grid span { padding: 12px 8px !important; border-left: 1px solid #ece8f2 !important; color: #898397 !important; font-size: 12px !important; font-weight: 500 !important; }

.timeline-view .timeline-row { grid-template-columns: 280px minmax(0,1fr) !important; height: auto !important; min-height: 64px !important; margin: 0 !important; padding: 0 !important; border: 0 !important; border-bottom: 1px solid #f0edf5 !important; border-radius: 0 !important; background: #fff !important; box-shadow: none !important; text-align: left !important; transform: none !important; position: relative !important; }
.timeline-view .timeline-row:last-child { border-bottom: 0 !important; }
.timeline-view .timeline-row:hover,.timeline-view .timeline-row.active { background: #faf8fe !important; }
.timeline-view .timeline-task-meta { display: grid !important; grid-template-columns: minmax(0,1fr) auto !important; align-content: center !important; gap: 4px 8px !important; height: auto !important; padding: 10px 16px !important; border-right: 1px solid #ece8f2 !important; overflow: hidden !important; }
.timeline-view .timeline-task-meta strong { grid-column: 1 !important; color: #24202c !important; font-size: 14px !important; font-weight: 500 !important; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }
.timeline-view .timeline-task-meta small { grid-column: 1 !important; display: flex !important; gap: 6px !important; color: #898397 !important; font-size: 12px !important; }
.timeline-view .timeline-task-meta .avatar-stack { grid-column: 2 !important; grid-row: 1 / span 2 !important; align-self: center !important; }
.timeline-view .avatar-stack .avatar { width: 24px !important; height: 24px !important; font-size: 10px !important; border: 2px solid #fff !important; }
.timeline-view .due-badge { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; color: #857b95 !important; font-size: 12px !important; }
.timeline-view .due-badge::before { display: none !important; }
.timeline-view .due-badge.overdue { color: #d74d61 !important; }
.timeline-view .due-badge.done { color: #63ac45 !important; }

.timeline-view .timeline-track { height: auto !important; min-height: 64px !important; background: transparent !important; }
.timeline-view .timeline-bar { top: 50% !important; height: 20px !important; min-width: 12px !important; margin-top: -10px !important; border: 0 !important; border-radius: 5px !important; background: #8b60e7 !important; box-shadow: none !important; }
.timeline-view .timeline-row.done .timeline-bar { background: #a8d596 !important; }
.timeline-view .timeline-row.overdue .timeline-bar { background: #e98a97 !important; }
.timeline-view .timeline-row.blocked .timeline-bar { background: repeating-linear-gradient(45deg,#e98a97 0 6px,#f3b5bd 6px 12px) !important; }

@media (max-width: 760px) {
  .workspace > .timeline-view { margin: 0 14px 14px !important; }
  .timeline-view .timeline-shell { overflow-x: auto !important; }
  .timeline-view :is(.timeline-scale,.timeline-row) { grid-template-columns: 180px 520px !important; min-width: 700px !important; }
  .timeline-view .timeline-task-meta { padding: 8px 10px !important; }
}
.workspace > .timeline-view { grid-template-columns: minmax(0, 1fr) !important; }
.timeline-view > .empty { margin: 0 !important; padding: 28px 20px !important; border: 1px dashed #d9d0e5 !important; border-radius: 8px !important; background: #fbfaff !important; color: #746c84 !important; text-align: center !important; }
html[data-theme="dark"] .timeline-view > .empty { background: #1c1924 !important; border-color: #463e57 !important; color: #938ca5 !important; }
.workspace > .timeline-view { overflow: visible !important; min-width: 0 !important; }
.timeline-view > .task-visibility-bar { width: auto !important; min-width: 0 !important; max-width: 100% !important; flex-wrap: wrap !important; }

/* «Сегодня» across the scale and every row */
.timeline-view .timeline-shell.has-today .timeline-track, .timeline-view .timeline-shell.has-today .timeline-grid { position: relative; }
.timeline-view .timeline-shell.has-today .timeline-track::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--today); width: 2px; margin-left: -1px; background: #7954d6; opacity: .55; pointer-events: none; }
.timeline-view .timeline-today-label { position: absolute; top: 50%; left: var(--today); transform: translate(-50%, -50%); padding: 2px 6px; border-radius: 4px; background: #7954d6; color: #fff; font-size: 11px; font-style: normal; font-weight: 600; white-space: nowrap; pointer-events: none; }
