
/* Vital SEO Project Timeline Planner — initial visual foundation */

#tool-project-timeline-planner {
  position: relative;
  min-width: 0;
}

#projectTimelineStatus {
  margin: 1rem 0;
  font-weight: 600;
}

#projectTimelineStatus[data-state="error"] {
  color: #b42318;
}

#projectTimelineStatus[data-state="success"] {
  color: #087443;
}

.project-timeline-hero-visual {
  width: min(100%, 480px);
  padding: 2rem;
  margin: auto;
  border-radius: 1.5rem;
  background: linear-gradient(135deg, #eaf4ff, #f8fbff);
  box-shadow: 0 18px 55px rgba(15, 46, 86, .12);
}

.project-timeline-hero-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 2.8rem;
  border-bottom: 1px solid #dce8f5;
}

.project-timeline-hero-row span {
  width: 23%;
  height: .55rem;
  border-radius: 1rem;
  background: #adc5dc;
}

.project-timeline-hero-row i {
  display: block;
  height: 1.15rem;
  border-radius: .4rem;
  background: #1774c8;
}

.project-timeline-hero-row:nth-child(1) i {
  width: 38%;
  margin-left: 5%;
}

.project-timeline-hero-row:nth-child(2) i {
  width: 55%;
  margin-left: 18%;
  background: #13a38b;
}

.project-timeline-hero-row:nth-child(3) i {
  width: 30%;
  margin-left: 35%;
  background: #e5a52b;
}

.project-timeline-hero-row:nth-child(4) i {
  width: 43%;
  margin-left: 12%;
  background: #8b69cb;
}

.project-timeline-project-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.project-timeline-project-card {
  padding: 1.25rem;
  border: 1px solid var(--line, #d9e2eb);
  border-radius: 1rem;
  background: var(--surface, #fff);
  color: inherit;
}

.project-timeline-project-card[data-active="true"] {
  border-color: #2379c5;
  box-shadow: 0 0 0 2px rgba(35, 121, 197, .12);
}

.project-timeline-project-card h4 {
  margin: 0 0 .5rem;
  overflow-wrap: anywhere;
}

.project-timeline-project-actions,
.project-timeline-toolbar,
.project-timeline-view-controls,
.project-timeline-task-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}

.project-timeline-project-actions button,
.project-timeline-toolbar button,
.project-timeline-view-controls button,
.project-timeline-task-actions button {
  padding: .55rem .8rem;
  border: 1px solid var(--line, #cbd5e1);
  border-radius: .5rem;
  background: var(--surface, #fff);
  color: inherit;
  cursor: pointer;
}

.project-timeline-project-actions button:hover,
.project-timeline-toolbar button:hover,
.project-timeline-view-controls button:hover {
  border-color: #2379c5;
}

.project-timeline-project-actions button:focus-visible,
.project-timeline-toolbar button:focus-visible,
.project-timeline-view-controls button:focus-visible {
  outline: 3px solid #2379c5;
  outline-offset: 2px;
}

.project-timeline-project-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 1.25rem;
}

.project-timeline-import-label {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin: 0;
  max-width: 28rem;
}

/* JSON backup import: accessible, theme-aware file picker. */
.project-timeline-import-picker {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  padding: 7px;
  border: 1px solid var(--line, #cbd5e1);
  border-radius: 9px;
  background: var(--surface, #fff);
  color: var(--text, #40536b);
  cursor: pointer;
}

.project-timeline-import-picker:focus-within {
  outline: 3px solid var(--blue, #2379c5);
  outline-offset: 2px;
}

.project-timeline-import-button {
  flex: 0 0 auto;
  padding: 9px 13px;
  border-radius: 7px;
  background: #2379c5;
  color: #fff;
  font-weight: 600;
}

.project-timeline-import-filename {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted, #64748b);
  font-size: .9rem;
  font-weight: 400;
}

.project-timeline-import-picker:hover .project-timeline-import-button {
  background: #165d9b;
}

.project-timeline-import-picker input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}

@media (max-width: 700px) {
  .project-timeline-project-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .project-timeline-import-label {
    max-width: 100%;
  }
}

.project-timeline-workspace {
  position: relative;
  min-width: 0;
  margin-top: 1.5rem;
  padding: 1rem;
  border: 1px solid var(--line, #d9e2eb);
  border-radius: 1rem;
}

.project-timeline-workspace[hidden] {
  display: none !important;
}

.project-timeline-workspace h3 {
  margin-top: 0;
}

.project-timeline-toolbar {
  justify-content: space-between;
  margin: 1rem 0;
}

.project-timeline-gantt {
  position: relative;
  overflow: auto;
  max-width: 100%;
  border: 1px solid var(--line, #d9e2eb);
  border-radius: .75rem;
  background: var(--surface, #fff);
}

.project-timeline-gantt-header,
.project-timeline-gantt-row {
  display: grid;
  grid-template-columns: 260px var(--timeline-track-width, 600px);
  width: max-content;
  min-width: 100%;
}

.project-timeline-gantt-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--surface, #fff);
  font-weight: 700;
}

.project-timeline-gantt-row {
  min-height: 54px;
  border-top: 1px solid var(--line, #e2e8f0);
}

.project-timeline-task-label {
  position: sticky;
  left: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  padding: .6rem .75rem;
  background: var(--surface, #fff);
  border-right: 1px solid var(--line, #e2e8f0);
}

.project-timeline-track {
  position: relative;
  min-height: 54px;
  background-image: repeating-linear-gradient(
    to right,
    transparent 0,
    transparent calc(var(--timeline-cell-width, 48px) - 1px),
    rgba(120, 145, 170, .16) calc(var(--timeline-cell-width, 48px) - 1px),
    rgba(120, 145, 170, .16) var(--timeline-cell-width, 48px)
  );
}

.project-timeline-bar {
  position: absolute;
  top: 12px;
  height: 30px;
  min-width: 8px;
  border-radius: .4rem;
  background: var(--task-colour, #2379c5);
  color: #fff;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.project-timeline-bar:active {
  cursor: grabbing;
}

.project-timeline-bar-progress {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--task-progress, 0%);
  border-radius: inherit;
  background: rgba(0, 0, 0, .2);
  pointer-events: none;
}

.project-timeline-milestone {
  position: absolute;
  top: 17px;
  width: 20px;
  height: 20px;
  transform: rotate(45deg);
  border-radius: 2px;
  background: var(--task-colour, #e5a52b);
}



.project-timeline-workspace:fullscreen {
  overflow: auto;
  padding: 2rem;
  background: var(--surface, #fff);
  color: var(--text, #172b4d);
}

.project-timeline-task-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}

.project-timeline-task-form label {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.project-timeline-task-form input,
.project-timeline-task-form select,
.project-timeline-task-form textarea {
  width: 100%;
  min-width: 0;
  padding: .65rem;
  border: 1px solid var(--line, #cbd5e1);
  border-radius: .5rem;
  background: var(--surface, #fff);
  color: inherit;
}

@media (max-width: 700px) {
  .project-timeline-hero-visual {
    padding: 1rem;
  }

  .project-timeline-workspace {
    padding: .75rem;
  }

  .project-timeline-gantt-header,
  .project-timeline-gantt-row {
    grid-template-columns: 160px var(--timeline-track-width, 600px);
    min-width: 100%;
  }

  .project-timeline-task-label {
    padding: .5rem;
  }

  .project-timeline-gantt-row .project-timeline-task-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    box-sizing: border-box;
  }

  .project-timeline-gantt-row .project-timeline-task-label > span {
    display: block;
    width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .project-timeline-gantt-row .project-timeline-task-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 5px;
    margin-left: 0;
    max-width: 100%;
  }

  .project-timeline-gantt-row .project-timeline-task-actions button {
    padding: 5px 7px;
    min-height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-timeline-bar {
    scroll-behavior: auto;
  }
}


/* Dedicated timeline editor, following the Marketing Journey Planner pattern. */
.project-timeline-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: contain;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  box-sizing: border-box;
  background: rgba(9, 31, 55, .66);
}

.project-timeline-overlay .project-timeline-workspace {
  display: flex;
  flex-direction: column;
  width: min(1480px, 100%);
  height: min(880px, calc(100dvh - 36px));
  min-height: 0;
  min-width: 0;
  margin: 0;
  padding: 20px;
  box-sizing: border-box;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background: var(--surface, #fff);
  color: var(--text, #173452);
  box-shadow: 0 24px 80px rgba(5, 23, 45, .3);
}

.project-timeline-overlay .project-timeline-workspace.is-fullscreen {
  width: 100%;
  height: 100%;
  max-height: 100%;
  border-radius: 0;
}

.project-timeline-overlay .project-timeline-toolbar {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin: 12px 0 16px;
}

.project-timeline-overlay .project-timeline-toolbar select {
  width: auto;
  min-width: 130px;
  max-width: 100%;
}

.project-timeline-overlay .project-timeline-toolbar
.project-timeline-theme-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.project-timeline-overlay .project-timeline-toolbar button:last-child {
  margin-left: 0;
}

.project-timeline-overlay .project-timeline-gantt {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
}

.project-timeline-overlay .project-timeline-task-form {
  flex: 0 0 auto;
  max-height: 45%;
  overflow: auto;
}

@media (max-width: 700px) {
  .project-timeline-overlay {
    padding: 0;
  }

  .project-timeline-overlay .project-timeline-workspace {
    width: 100vw;
    height: 100dvh;
    padding: 12px;
    border-radius: 0;
  }

  .project-timeline-overlay .project-timeline-toolbar {
    gap: 8px;
  }

  .project-timeline-overlay .project-timeline-toolbar button:last-child {
    margin-left: 0;
  }
}

.project-timeline-overlay:has(.project-timeline-workspace.is-fullscreen) {
  padding: 0;
}


/* Readable, horizontally navigable Gantt timeline. */
.project-timeline-gantt {
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.project-timeline-gantt-header .project-timeline-task-label,
.project-timeline-gantt-row .project-timeline-task-label {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--surface, #fff);
}

.project-timeline-gantt-header .project-timeline-task-label {
  z-index: 3;
}

.project-timeline-range-warning {
  padding: 1rem;
  line-height: 1.5;
  color: var(--text, #173452);
}


/* Saved-project cards: compact actions and responsive layout. */
.project-timeline-project-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  min-width: 0;
  transition: border-color .18s ease, box-shadow .18s ease;
}

.project-timeline-project-card:hover {
  border-color: #9fc5e8;
  box-shadow: 0 8px 24px rgba(23, 52, 82, .07);
}

.project-timeline-project-card h4 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.4;
}

.project-timeline-project-card > p {
  margin: 0;
  color: var(--text, #40536b);
}

.project-timeline-project-card .project-timeline-project-actions {
  margin-top: auto;
  padding-top: .5rem;
}

.project-timeline-project-actions .project-timeline-open-project {
  background: #2d7df0;
  border-color: #2d7df0;
  color: #fff;
  font-weight: 650;
}

.project-timeline-project-actions .project-timeline-open-project:hover {
  background: #1769d5;
  border-color: #1769d5;
  color: #fff;
}

.project-timeline-card-menu {
  position: relative;
  min-width: 0;
}

.project-timeline-card-menu summary {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: .55rem .85rem;
  border: 1px solid var(--line, #cbd5e1);
  border-radius: .5rem;
  background: var(--surface, #fff);
  cursor: pointer;
  list-style: none;
}

.project-timeline-card-menu summary::-webkit-details-marker {
  display: none;
}

.project-timeline-card-menu summary::after {
  content: '⌄';
  margin-left: .65rem;
  font-size: 1rem;
}

.project-timeline-card-menu[open] summary {
  border-color: #2379c5;
}

.project-timeline-card-menu summary:focus-visible {
  outline: 3px solid #2379c5;
  outline-offset: 2px;
}

.project-timeline-card-menu-items {
  position: absolute;
  z-index: 20;
  top: calc(100% + 5px);
  left: 0;
  display: grid;
  gap: 3px;
  width: max-content;
  min-width: 155px;
  padding: 6px;
  border: 1px solid var(--line, #d9e2eb);
  border-radius: .65rem;
  background: var(--surface, #fff);
  box-shadow: 0 12px 30px rgba(23, 52, 82, .15);
}

.project-timeline-card-menu-items button {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
}

.project-timeline-card-menu-items button:hover {
  background: rgba(35, 121, 197, .08);
}

.project-timeline-card-menu-items .project-timeline-danger-action {
  color: #b42332;
}

@media (max-width: 600px) {
  .project-timeline-project-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-timeline-project-card {
    padding: 1rem;
  }

  .project-timeline-project-actions {
    align-items: stretch;
  }

  .project-timeline-card-menu-items {
    left: auto;
    right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-timeline-project-card {
    transition: none;
  }
}


/* Project timeline calendar headings and shared watermark. */
.project-timeline-period-header {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 36px;
  background: #eaf3ff;
}

.project-timeline-period-axis {
  position: relative;
  min-height: 36px;
  background: #eaf3ff;
}

.project-timeline-period-label {
  position: absolute;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding: 0 12px;
  box-sizing: border-box;
  overflow: hidden;
  white-space: nowrap;
  border-right: 1px solid #c9dcf1;
  color: #164a7d;
  font-size: .82rem;
  font-weight: 750;
}

.project-timeline-period-header .project-timeline-task-label {
  background: #eaf3ff;
  color: #164a7d;
  font-size: .82rem;
}

.project-timeline-gantt-viewport {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
}

.project-timeline-gantt-viewport > .project-timeline-gantt {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
}

.project-timeline-watermark-viewport {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 260px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
}

@media (max-width: 700px) {
  .project-timeline-watermark-viewport {
    left: 160px;
  }
}

.project-timeline-watermark-viewport .project-timeline-watermark {
  display: block;
  max-width: 90%;
  opacity: .12;
  color: #2379c5;
  pointer-events: none;
  user-select: none;
  font-size: clamp(18px, 3vw, 38px);
  font-weight: 800;
  transform: rotate(-15deg);
}

.project-timeline-last-saved {
  display: inline-block;
  margin-left: 14px;
  color: var(--muted, #64748b);
  font-size: .8rem;
  font-weight: 400;
  vertical-align: middle;
}

.project-timeline-card-saved {
  font-size: .8rem;
  color: var(--muted, #64748b);
}

.project-timeline-bar:focus-visible,
.project-timeline-milestone:focus-visible {
  outline: 3px solid #2379c5;
  outline-offset: 3px;
}


/* Project Timeline Planner — task editor and control refinement. */
.project-timeline-task-dialog {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(9, 31, 55, .58);
}

.project-timeline-task-dialog-panel {
  width: min(680px, 100%);
  max-height: min(720px, calc(100dvh - 64px));
  overflow: auto;
  padding: clamp(20px, 3vw, 32px);
  border-radius: 16px;
  background: var(--surface, #fff);
  box-shadow: 0 22px 70px rgba(5, 23, 45, .25);
}

.project-timeline-task-dialog-panel h4 {
  margin: 0 0 22px;
  color: var(--ink, #173452);
  font-size: 1.35rem;
}

.project-timeline-task-dialog .project-timeline-task-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  max-height: none;
  overflow: visible;
}

.project-timeline-task-dialog .project-timeline-task-form label {
  font-weight: 600;
  color: var(--text, #173452);
}

.project-timeline-task-dialog .project-timeline-task-form input {
  min-height: 44px;
  font-weight: 400;
}

.project-timeline-task-dialog .project-timeline-milestone-field {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.project-timeline-task-dialog .project-timeline-milestone-field input {
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  accent-color: #2379c5;
}

.project-timeline-form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.project-timeline-form-actions button,
.project-timeline-toolbar button,
.project-timeline-view-select {
  min-height: 42px;
  padding: 9px 15px;
  border-radius: 9px;
  font: inherit;
}

.project-timeline-toolbar .project-timeline-add-button,
.project-timeline-form-actions .button-primary {
  background: #2379c5;
  border: 1px solid #2379c5;
  color: #fff;
  font-weight: 650;
}

.project-timeline-toolbar .project-timeline-add-button:hover,
.project-timeline-form-actions .button-primary:hover {
  background: #165d9b;
  border-color: #165d9b;
}

.project-timeline-secondary-button,
.project-timeline-view-select {
  border: 1px solid var(--line, #c9d8e9);
  background: var(--surface, #fff);
  color: var(--text, #173452);
}

.project-timeline-secondary-button:hover {
  background: #edf5ff;
  border-color: #2379c5;
}

.project-timeline-overlay .project-timeline-toolbar
.project-timeline-close-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid #c9d8e9;
  border-radius: 9px;
  background: #fff;
  color: #173452;
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}

.project-timeline-overlay .project-timeline-toolbar
.project-timeline-close-button:hover {
  background: #edf5ff;
  border-color: #2379c5;
}

.project-timeline-overlay .project-timeline-toolbar
.project-timeline-close-button:focus-visible {
  outline: 3px solid #2379c5;
  outline-offset: 2px;
}

@media (max-width: 700px) {
  .project-timeline-overlay .project-timeline-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .project-timeline-overlay .project-timeline-toolbar
  .project-timeline-add-button,
  .project-timeline-overlay .project-timeline-toolbar
  .project-timeline-view-select,
  .project-timeline-overlay .project-timeline-toolbar
  .project-timeline-secondary-button {
    width: 100%;
    min-width: 0;
  }

  .project-timeline-overlay .project-timeline-toolbar
  .project-timeline-theme-toggle {
    grid-column: 1;
    justify-self: end;
    width: auto;
    margin-left: 0;
  }

  .project-timeline-overlay .project-timeline-toolbar
  .project-timeline-close-button {
    grid-column: 2;
    justify-self: start;
    margin-left: 0;
  }
}

.project-timeline-view-select {
  min-width: 130px;
  cursor: pointer;
}

.project-timeline-task-actions {
  flex-wrap: nowrap;
  gap: 5px;
  margin-left: auto;
}

.project-timeline-task-actions button {
  padding: 5px 8px;
  min-height: 32px;
  border-radius: 6px;
  font-size: .8rem;
}

.project-timeline-task-actions .project-timeline-row-delete {
  color: #a62935;
}

.project-timeline-task-actions .project-timeline-row-delete:hover {
  background: #fff1f2;
  border-color: #e9a5ab;
}

/* Follow Vital SEO's existing dark-mode theme. */
html[data-theme="dark"] .project-timeline-project-card h4,
html[data-theme="dark"] .project-timeline-workspace h3 {
  color: var(--ink);
}

html[data-theme="dark"] .project-timeline-period-header,
html[data-theme="dark"] .project-timeline-period-axis,
html[data-theme="dark"] .project-timeline-period-header .project-timeline-task-label {
  background: #20384e;
  color: #d5eaff;
}

html[data-theme="dark"] .project-timeline-period-label {
  color: #d5eaff;
  border-color: #40556c;
}

html[data-theme="dark"] .project-timeline-secondary-button:hover,
html[data-theme="dark"] .project-timeline-close-button:hover {
  background: #213448;
}

html[data-theme="dark"] .project-timeline-task-actions .project-timeline-row-delete:hover {
  background: #382426;
  border-color: #6b4145;
}

@media (max-width: 600px) {
  .project-timeline-task-dialog {
    padding: 10px;
  }

  .project-timeline-task-dialog .project-timeline-task-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .project-timeline-task-dialog-panel {
    padding: 20px;
  }

  .project-timeline-form-actions {
    flex-wrap: wrap;
  }
}

/* Task order controls: arrows left, name centre, actions right. */
.project-timeline-gantt-row .project-timeline-task-label {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 6px;
  box-sizing: border-box;
}

.project-timeline-gantt-row .project-timeline-task-label > span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.project-timeline-move-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.project-timeline-move-controls .project-timeline-row-move {
  width: 24px;
  min-width: 24px;
  height: 23px;
  min-height: 23px;
  padding: 0;
  border: 1px solid var(--line, #cbd5e1);
  border-radius: 5px;
  background: var(--surface, #fff);
  color: inherit;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.project-timeline-move-controls .project-timeline-row-move:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.project-timeline-move-controls .project-timeline-row-move:not(:disabled):hover {
  border-color: #2379c5;
  color: #2379c5;
}

.project-timeline-move-controls .project-timeline-row-move:focus-visible {
  outline: 2px solid #2379c5;
  outline-offset: 2px;
}

.project-timeline-gantt-row .project-timeline-task-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 4px;
  margin-left: 0;
}

.project-timeline-gantt-row .project-timeline-task-actions button {
  padding: 4px 6px;
  min-height: 27px;
}

@media (max-width: 700px) {
  .project-timeline-gantt-row .project-timeline-task-label {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    column-gap: 6px;
  }

  .project-timeline-gantt-row .project-timeline-task-actions {
    grid-column: 2;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}
