.live-gantt-split {
  --gantt-grid-line: #d6dee8;
  --gantt-heading: #edf2f6;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  align-content: start;
  width: 100%;
  max-height: 65vh;
  margin: 12px 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--gantt-grid-line);
}
.gantt-pane { min-width: 0; container-type: inline-size; }
.gantt-pane-records { grid-column: 1; }
.gantt-pane-chart { grid-column: 2; border-left: 1px solid var(--gantt-grid-line); }
.gantt-pane-top {
  grid-row: 1;
  position: sticky;
  top: 0;
  z-index: 6;
  overflow: hidden;
  background: var(--gantt-heading);
}
.gantt-pane-body {
  grid-row: 2;
  overflow-x: auto;
  scrollbar-width: none;
}
.gantt-pane-scrollbar {
  grid-row: 3;
  position: sticky;
  bottom: 0;
  z-index: 6;
  min-height: 14px;
  overflow: auto hidden;
  scrollbar-width: thin;
  scrollbar-color: #8797a9 var(--gantt-heading);
  border-top: 1px solid var(--gantt-grid-line);
  background: var(--gantt-heading);
}
.gantt-pane-scrollbar .gantt-pane-content { height: 3px; }
.gantt-pane-records .gantt-pane-content {
  --gantt-frozen-width: min(var(--gantt-concept-width), 55cqw, max(35cqw, 100cqw - 420px));
  width: max(100%, calc(var(--gantt-frozen-width) + var(--gantt-other-width)));
}
.gantt-pane-chart .gantt-pane-content { width: var(--gantt-axis-width); min-width: 100%; }
.gantt-pane-records :is(.live-gantt-header, .live-gantt-row) {
  grid-template-columns: var(--gantt-frozen-width) var(--gantt-other-columns);
}
.gantt-pane-records .live-gantt-row { grid-template-rows: minmax(0, 1fr); }
.gantt-pane .live-gantt-row {
  box-sizing: border-box;
  height: 64px;
  background: #fff;
}
.gantt-pane .live-gantt-row:hover { background: #f7f9fc; }
.gantt-pane .live-gantt-group { background: #fff8d9; }
.gantt-pane .live-gantt-row[aria-selected=true] { background: #fff5c1; }
.gantt-pane-records :is(.live-gantt-header, .live-gantt-row) > :first-child {
  position: sticky;
  left: 0;
  align-self: stretch;
  z-index: 4;
  background: inherit;
  box-shadow: 1px 0 0 var(--gantt-grid-line);
}
.gantt-pane-records .live-gantt-row > :first-child {
  display: flex;
  align-items: center;
  max-height: none;
  padding-block: 4px;
}
.gantt-pane-records .live-gantt-row > :first-child span {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.gantt-pane-records .live-gantt-header > span { font-size: 13px; }
.gantt-pane-records .live-gantt-header > span:first-child .gantt-column-resizer { right: 0; }
.gantt-pane-chart .live-gantt-row { display: block; }
.gantt-pane-chart .live-gantt-track:first-child {
  height: 64px;
  max-height: none;
  overflow: visible;
  border: 0;
}
.gantt-pane-chart .live-gantt-axis { display: flex; gap: 3px; }
.gantt-pane-chart .live-gantt-axis > span { padding: 0; border: 0; }
.gantt-pane-chart .live-gantt-links { left: 12px; width: calc(100% - 24px); }
.gantt-relation-cell {
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 4px;
}
.live-gantt .gantt-relation-cell button {
  display: grid;
  gap: 2px;
  width: 100%;
  min-width: 0;
  padding: 4px 6px;
  border-color: transparent;
  background: transparent;
  text-align: left;
  font-size: 12px;
}
.gantt-relation-cell button:is(:hover, :focus-visible) { border-color: #849dbb; }
.gantt-relation-cell span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gantt-relation-dialog {
  width: min(620px, calc(100vw - 28px));
  max-height: min(76vh, 740px);
  margin: auto;
  padding: 0 16px 16px;
  border: 1px solid var(--gantt-grid-line, #d6dee8);
  border-radius: 10px;
  background: #fff;
  color: inherit;
  overflow: auto;
}
.gantt-relation-dialog::backdrop { background: rgb(18 37 62 / 20%); }
.gantt-relation-dialog > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 1;
  padding: 10px 0;
  background: #fff;
}
.gantt-relation-dialog h3 { margin: 0; }
.gantt-relation-dialog fieldset { min-width: 0; margin: 8px 0; padding: 8px; border: 1px solid #d6dee8; }
.gantt-relation-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin-bottom: 8px; }
.gantt-relation-fields > label { display: grid; gap: 3px; min-width: 0; }
.gantt-relation-fields :is(input,select) { box-sizing: border-box; width: 100%; min-width: 0; }
.gantt-related-activity { grid-column: 1 / -1; }
