/* Greedy page */

.greedy-stage {
  padding: 24px 28px 32px;
  display: flex; flex-direction: column; gap: 18px;
}

/* Coin row */
.coin-row {
  display: flex; gap: 6px; flex-wrap: wrap; align-items: flex-start;
}
.coin-tile {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid var(--ink-soft);
  background: oklch(0.92 0.08 80);
  display: flex; align-items: center; justify-content: center;
  font-family: 'system-ui', monospace;
  font-size: 18px; font-weight: 600;
  color: oklch(0.32 0.08 80);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.coin-tile.considered {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 14px -6px oklch(0.4 0.1 50 / 0.4);
}
.coin-tile.taken-this-step {
  background: var(--good);
  border-color: var(--good);
  color: white;
}

.picks-display {
  display: flex; gap: 4px; flex-wrap: wrap;
  font-family: 'system-ui', monospace;
  align-items: center;
}
.pick-chip {
  background: var(--good-soft);
  border: 1px solid var(--good);
  color: oklch(0.32 0.1 145);
  border-radius: 18px;
  padding: 4px 10px;
  font-weight: 500;
  font-size: 12px;
}

.remaining-display {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-family: 'system-ui', monospace;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
}
.remaining-display .label {
  font-family: 'system-ui', sans-serif;
  font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--muted); font-weight: 600;
}
.remaining-display .val { font-size: 22px; font-weight: 600; }
.remaining-display .val.zero { color: var(--good); }

/* Task timeline */
.task-timeline {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  overflow-x: auto;
}
.task-row {
  display: flex; align-items: center; gap: 8px;
  height: 32px;
  font-family: 'system-ui', monospace;
  font-size: 12px;
  margin-bottom: 4px;
}
.task-row .id-label {
  width: 28px; text-align: right; color: var(--ink-soft);
  font-weight: 600;
}
.task-row .bar-area {
  position: relative;
  height: 22px;
  flex: 1;
  border-bottom: 1px dashed var(--line);
}
.task-bar {
  position: absolute;
  height: 22px;
  border: 1.5px solid var(--ink-soft);
  background: var(--surface-2);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'system-ui', monospace;
  font-size: 11px;
  color: var(--ink);
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.task-bar.considered { box-shadow: 0 0 0 2px var(--accent); }
.task-bar.selected {
  background: var(--good); border-color: var(--good); color: white; font-weight: 600;
}
.task-bar.skipped { background: var(--surface-2); opacity: 0.5; }

.time-axis {
  display: flex; height: 16px; margin-left: 36px;
  border-top: 1px solid var(--line-strong);
  font-family: 'system-ui', monospace;
  font-size: 10px; color: var(--muted);
}
.time-axis .tick {
  flex: 1;
  position: relative;
}
.time-axis .tick::before {
  content: ''; position: absolute; left: 0; top: -1px; height: 4px;
  border-left: 1px solid var(--line-strong);
}
.time-axis .tick-label { padding-top: 4px; padding-left: 2px; }

.last-finish-line {
  position: absolute; top: -4px; bottom: -4px;
  width: 0;
  border-left: 2px dashed var(--accent);
  z-index: 2;
  pointer-events: none;
}
.last-finish-label {
  position: absolute; top: -12px;
  font-family: 'system-ui', monospace;
  font-size: 10px;
  color: var(--accent-deep);
  background: var(--surface);
  padding: 0 4px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.task-edit-row {
  display: flex; gap: 4px; align-items: center;
  font-family: 'system-ui', monospace;
  font-size: 12px;
}
.task-edit-row input { width: 50px; padding: 3px 6px; }
