/* style.gantt.css
   =========================================
   GANTT COMMAND MATRIX & TIMELINE
   ✨ LITE-FIRST PARITY: Strips container glows, solidifies runtime scheduling keylines.
   ========================================= */

.gantt-draft-window { 
  flex-grow: 1; background: rgba(0,0,0,0.3); border-radius: 12px; 
  border: 1px solid rgba(255,255,255,0.05); display: flex; flex-direction: column; 
  overflow: hidden; min-height: 200px; width: 100%;
}

.gantt-timeline-header {
  height: 36px; border-bottom: 1px solid rgba(255,255,255,0.12); 
  background: rgba(255,255,255,0.03); position: relative; flex-shrink: 0;
  display: flex; align-items: center;
}

.gantt-today-line {
  position: absolute; top: 0; bottom: -2000px; width: 2px; 
  background: var(--capsuleAccent); opacity: 0.8; z-index: 0; 
  pointer-events: none; box-shadow: 0 0 10px var(--capsuleAccent);
}

.gantt-today-label {
  position: absolute; top: 10px; color: #fff; font-weight: 900; 
  text-shadow: 0 0 10px var(--capsuleAccent); font-size: 10px;
  font-family: 'Noto Sans JP'; letter-spacing: 2px; z-index: 1;
}

.gantt-marker-line {
  position: absolute; top: 18px; bottom: -2000px; width: 1px;
  background: rgba(255,255,255,0.05); z-index: 0; pointer-events: none;
}

.gantt-marker-label {
  position: absolute; top: -16px; left: 4px; font-size: 9px; 
  color: rgba(255,255,255,0.5); font-family: monospace; font-weight: bold;
}

.gantt-edge-label {
  position: absolute; top: 10px; color: rgba(255,255,255,0.4); 
  font-family: 'Noto Sans JP'; font-size: 9px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
}
.gantt-edge-label.left { left: 15px; }
.gantt-edge-label.right { right: 15px; }

.gantt-tasks-area { 
  flex-grow: 1; overflow-y: auto; overflow-x: hidden; padding: 0 80px 20px 0; position: relative; z-index: 1;
}
.gantt-tasks-area::-webkit-scrollbar { width: 6px; }
.gantt-tasks-area::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 6px; }

.gantt-group-label {
  font-family: 'Noto Sans JP'; font-size: 9px; letter-spacing: 3px; font-weight: 900;
  color: rgba(255,255,255,0.3); padding: 15px 15px 8px 15px;
}

.gantt-group-divider { height: 16px; }

.gantt-draft-task-row {
  display: flex; min-height: 38px; align-items: center; position: relative;
  padding: 0; border-bottom: 1px solid rgba(255,255,255,0.03); width: 100%; box-sizing: border-box;
  transition: opacity 0.3s ease, filter 0.3s ease;
}
.gantt-draft-task-row:hover { background: rgba(255,255,255,0.03); }

.gantt-draft-task-row.is-done {
  opacity: 0.3; filter: grayscale(1);
}

.gantt-draft-task-name-wrapper {
  width: 240px; flex-shrink: 0; padding: 0 15px; 
  border-right: 1px solid rgba(255,255,255,0.08); 
  display: flex; align-items: center; height: 100%;
}

.gantt-draft-task-name {
  font-family: 'Noto Sans JP'; font-size: 11px; font-weight: 600;
  color: rgba(255,255,255,0.85); line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; text-overflow: ellipsis;
}

.gantt-draft-task-track {
  flex-grow: 1; height: 100%; position: relative; display: flex; align-items: center; width: 100%; overflow: visible;
}

.gantt-connector-line {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%); height: 1px;
  border-top: 1px dashed rgba(255,255,255,0.15); z-index: 1; pointer-events: none;
}

.gantt-node-pill {
  position: absolute; height: 20px; border-radius: 4px; 
  display: block; z-index: 5; box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}

.gantt-inline-scrubber {
  position: absolute; top: 50%; transform: translateY(-50%); margin: 0 !important; font-size: 11px !important; font-weight: 800 !important;
  color: #fff !important; background: rgba(255,255,255,0.15) !important; 
  border: 1px solid rgba(255,255,255,0.4) !important; padding: 4px 10px !important; 
  border-radius: 50px !important; z-index: 6; white-space: nowrap; cursor: ew-resize;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5); backdrop-filter: blur(4px);
}
.gantt-inline-scrubber:hover { 
  color: #fff !important; background: rgba(255,255,255,0.25) !important; 
  border-color: #fff !important; box-shadow: 0 0 15px rgba(255,255,255,0.4);
}

.gantt-unscheduled-row-content { display: flex; align-items: center; gap: 12px; width: 100%; padding-left: 15px; height: 100%; }


/* =========================================================
   ✨ LITE MODE OVERRIDES: GANTT COMMAND INTERFACE
   ========================================================= */

body.lite-mode .gantt-draft-window {
    background: var(--lite-fill) !important;
    border: 1.5px solid var(--lite-line) !important;
    box-shadow: none !important;
}

body.lite-mode .gantt-timeline-header {
    background: var(--lite-fill) !important;
    border-bottom: 1.5px solid var(--lite-line) !important;
}

body.lite-mode .gantt-today-line {
    background: var(--capsuleAccent) !important;
    box-shadow: none !important;
    width: 1.5px !important;
}

body.lite-mode .gantt-today-label {
    color: var(--lite-text) !important;
    text-shadow: none !important;
}

body.lite-mode .gantt-marker-line {
    background: var(--lite-line) !important;
    opacity: 0.15 !important;
}

body.lite-mode .gantt-marker-label,
body.lite-mode .gantt-edge-label,
body.lite-mode .gantt-group-label {
    color: var(--lite-muted-text) !important;
    text-shadow: none !important;
}

body.lite-mode .gantt-draft-task-row {
    border-bottom: 1px solid color-mix(in srgb, var(--lite-line) 15%, transparent) !important;
}

body.lite-mode .gantt-draft-task-row:hover {
    background: var(--lite-input-bg) !important;
}

body.lite-mode .gantt-draft-task-name-wrapper {
    border-right: 1px solid color-mix(in srgb, var(--lite-line) 20%, transparent) !important;
}

body.lite-mode .gantt-draft-task-name {
    color: var(--lite-text) !important;
}

body.lite-mode .gantt-connector-line {
    border-top: 1px dashed color-mix(in srgb, var(--lite-line) 30%, transparent) !important;
}

body.lite-mode .gantt-node-pill {
    box-shadow: none !important;
    border: 1px solid var(--lite-line) !important;
}

body.lite-mode .gantt-inline-scrubber {
    background: var(--lite-shell-bg) !important;
    border: 1.5px solid var(--lite-line) !important;
    color: var(--lite-text) !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
}

body.lite-mode .gantt-inline-scrubber:hover {
    background: var(--lite-text) !important;
    color: var(--lite-shell-bg) !important;
    border-color: var(--lite-text) !important;
    box-shadow: none !important;
}