:root {
  --bg: #0d1117;
  --panel: #151b23;
  --ink: #e6edf3;
  --muted: #9aa7b6;
  --line: #2b3643;
  --bar: #23889a;
  --bar-done: #68717a;
  --accent: #f0b45c;
  --row-height: 52px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 12%, #1c2530 0%, transparent 28%),
    radial-gradient(circle at 86% 22%, #18242b 0%, transparent 30%),
    var(--bg);
}

.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 16px 28px;
}

.chart {
  display: block;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.42);
}

.axis-lane {
  position: relative;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background-color: #111821;
  margin-bottom: 8px;
}

.axis-lane::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
  z-index: 4;
}

.rows {
  display: grid;
  gap: 6px;
}

.day-tick {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(230, 237, 243, 0.18);
  z-index: 1;
}

.weekend-band {
  position: absolute;
  top: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.07);
  z-index: 0;
}

.tick-label {
  position: absolute;
  top: 6px;
  transform: translateX(-50%);
  color: var(--muted);
  font-size: 0.72rem;
  background: rgba(21, 27, 35, 0.92);
  padding: 0 4px;
  border-radius: 6px;
  white-space: nowrap;
  z-index: 3;
}

.row-lane {
  min-height: var(--row-height);
  border: 1px solid #2e3a47;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  background: #111821;
}

.row-lane::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--accent);
  z-index: 4;
}

.lane-decoration {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.bar {
  position: absolute;
  top: 3px;
  bottom: 3px;
  display: flex;
  align-items: center;
  border-radius: 6px;
  background: var(--bar-color, var(--bar));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
  min-width: 10px;
  border: none;
  color: #f5f8fb;
  font-size: 0.86rem;
  font-weight: 600;
  padding: 0 10px;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  z-index: 2;
}

.bar:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.bar-label {
  display: block;
  width: 100%;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bar-link {
  color: inherit;
  display: inline;
  width: auto;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.bar-link:hover {
  text-decoration-thickness: 2px;
}

.bar.done {
  background: var(--bar-done);
}

.status {
  min-height: 22px;
  margin: 8px 4px 0;
  color: #f3b266;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .layout {
    padding: 10px 8px 16px;
  }
}
