.full-gantt { min-width: 0; }

.full-gantt-toolbar,
.full-gantt-controls,
.full-gantt-legend { display: flex; align-items: center; }

.full-gantt-toolbar {
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 7px 12px;
  margin-bottom: 9px;
}

.full-gantt-legend { gap: 12px; color: var(--muted, #9bb0ba); font-size: 11px; }

.full-gantt-key {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.full-gantt-key::before { content: ""; width: 12px; height: 7px; border-radius: 2px; }
.full-gantt-key-window::before { background: #254a57; border: 1px dashed #83aeba; }
.full-gantt-key-observation::before { background: #76e8d2; }

.full-gantt-controls {
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--line, #23353f);
  border-radius: 5px;
  background: #0a161e;
}

.full-gantt-control {
  min-width: 29px;
  min-height: 25px;
  padding: 3px 8px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: var(--muted, #9bb0ba);
  font-size: 11px;
  white-space: nowrap;
}

.full-gantt-control[aria-pressed="true"] { background: #243e49; color: #e0f2f4; }
.full-gantt-control:hover:enabled { background: #1b303b; color: var(--text, #e7f1f3); }

.full-gantt-viewport {
  max-height: min(355px, 44vh);
  min-height: 116px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #375461 #0b171f;
  border: 1px solid var(--line, #23353f);
  border-radius: 7px;
  background: #0a1720;
}

.full-gantt-viewport[data-satellite-scope] { min-height: 0; }

.full-gantt-grid {
  --gantt-label-width: 176px;
  position: relative;
  display: grid;
  grid-template-columns: var(--gantt-label-width) minmax(662px, 1fr);
  grid-template-rows: 28px;
  grid-auto-rows: 29px;
  min-width: 838px;
  font: 11px var(--mono, ui-monospace, monospace);
}

.full-gantt-header {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #12232d;
  border-bottom: 1px solid #304752;
  color: #aac0c9;
}

.full-gantt-column {
  left: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  padding: 0 11px;
  border-right: 1px solid #304752;
  font-family: var(--sans, system-ui, sans-serif);
}

.full-gantt-tick {
  position: absolute;
  top: 50%;
  left: var(--gantt-tick);
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.full-gantt-tick:first-child { left: 8px; transform: translateY(-50%); }
.full-gantt-tick:last-child { right: 8px; left: auto; transform: translateY(-50%); }

.full-gantt-label {
  position: sticky;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid #2b414c;
  border-bottom: 1px solid #1d313c;
  background: #10202a;
  color: #cde2e6;
  font: inherit;
  text-align: start;
}

.full-gantt-label:nth-child(4n + 3) { background: #0e1c25; }
.full-gantt-label:hover { background: #192e3a; }
.full-gantt-label[aria-pressed="true"] { background: #193941; color: #aaf3e5; }
.full-gantt-label:focus-visible { z-index: 4; outline-offset: -2px; }
.full-gantt-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.full-gantt-count { color: #8ea8b4; font-size: 10px; }

.full-gantt-lane {
  position: relative;
  border-bottom: 1px solid #1d313c;
  background-color: #0c1922;
  background-image: linear-gradient(to right, #263c47 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  cursor: crosshair;
}

.full-gantt-lane:nth-child(4n) { background-color: #0a1720; }
.full-gantt-lane[data-selected="true"] { background-color: #102831; }

.full-gantt-window-layer,
.full-gantt-event-layer { position: absolute; inset: 0; }
.full-gantt-window-layer { pointer-events: none; }

.full-gantt-window {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: var(--gantt-left);
  width: var(--gantt-width);
  border: 1px dashed #719cae;
  border-radius: 3px;
  background: #274c5d8c;
}

.full-gantt-interval { position: absolute; inset: 0; pointer-events: none; }

.full-gantt-duration {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: var(--gantt-left);
  width: var(--gantt-width);
  border-radius: 1px;
  background: #50b9aa;
}

.full-gantt-duration::before {
  content: "";
  position: absolute;
  top: -2px;
  bottom: -2px;
  left: 0;
  border-left: 1px solid #67d6c7;
}

.full-gantt-hit {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: var(--gantt-center);
  width: var(--gantt-width);
  min-width: 17px;
  padding: 0;
  transform: translateX(-50%);
  border: 0;
  border-radius: 3px;
  background: transparent;
  pointer-events: auto;
}

.full-gantt-hit:focus-visible { z-index: 2; outline-offset: -1px; }
.full-gantt-interval:hover .full-gantt-duration,
.full-gantt-interval[data-selected="true"] .full-gantt-duration { background: #a1eddc; }
.full-gantt-interval[data-selected="true"] .full-gantt-duration::before { border-color: #b5f8e7; }
.full-gantt-interval[data-active="true"] .full-gantt-duration {
  background: #8dfbe7;
  box-shadow: 0 0 7px #79fae1ba;
}

.full-gantt-interval[data-active="true"] .full-gantt-duration::before { border-color: #a1fff1; }

.full-gantt-cursor-layer {
  position: absolute;
  inset: 28px 0 0 var(--gantt-label-width);
  pointer-events: none;
  z-index: 2;
}

.full-gantt-cursor {
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  background: #b0f3ed;
  box-shadow: 0 0 6px #a6f7f088;
}

@media (max-width: 700px) {
  .full-gantt-grid {
    --gantt-label-width: 128px;
    grid-template-columns: var(--gantt-label-width) minmax(620px, 1fr);
    min-width: 748px;
  }
  .full-gantt-label { padding: 0 6px; font-size: 10px; }
  .full-gantt-viewport { max-height: min(305px, 52vh); }
}
