/* --------------------------------------------------------------------------
   12. SECONDARY PRODUCTIVITY RAIL (LARGE DESKTOP)
   -------------------------------------------------------------------------- */
.rail-card {
  padding: 1.2rem 1.35rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rail-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rail-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.rail-badge {
  font-size: 0.76rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  color: var(--accent);
}

.rail-date-hint {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 600;
}

.progress-bar-wrap {
  height: 7px;
  background: var(--panel-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-radius: var(--radius-pill);
  transition: width 350ms var(--ease-smooth);
}

.rail-subtext {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin: 0;
}

/* Mini Calendar Grid */
.mini-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
  font-size: 0.78rem;
}

.mini-cal-day-header {
  font-weight: 700;
  color: var(--muted);
  padding: 0.2rem 0;
  font-size: 0.72rem;
}

.mini-cal-day {
  padding: 0.35rem 0;
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 140ms ease;
  position: relative;
}

.mini-cal-day:hover {
  background: var(--panel-subtle);
  color: var(--text);
}

.rail-date-hint {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 600;
  cursor: pointer;
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  transition: all 140ms ease;
}

.rail-date-hint:hover {
  background: var(--panel-subtle);
  color: var(--accent);
}

.mini-cal-day.today {
  background: var(--accent);
  color: white;
  font-weight: 700;
  box-shadow: 0 0 10px var(--accent-glow);
}

.mini-cal-day.active-date:not(.today) {
  background: var(--panel-strong);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
}

.mini-cal-day.has-tasks::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--warning);
}

.mini-cal-day.today.has-tasks::after {
  background: white;
}

/* Up Next List */
.rail-task-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.rail-task-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  background: var(--panel-subtle);
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 150ms ease;
}

.rail-task-item:hover {
  background: var(--panel-strong);
  transform: translateX(2px);
}

.rail-task-title {
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rail-task-date {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
}

/* Projects Snapshot */
.projects-snapshot-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.proj-snapshot-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.82rem;
}

.proj-snapshot-header {
  display: flex;
  justify-content: space-between;
  color: var(--text-secondary);
  font-weight: 500;
}

.proj-snapshot-bar {
  height: 5px;
  background: var(--panel-subtle);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.proj-snapshot-fill {
  height: 100%;
  border-radius: var(--radius-pill);
  transition: width 300ms ease;
}

/* --------------------------------------------------------------------------
   Getting started checklist (rail on wide screens, top of the list elsewhere)
   -------------------------------------------------------------------------- */
.gs-slot[hidden] {
  display: none;
}

/* The rail version takes over from 1350px, where the rail is shown. */
@media (min-width: 1350px) {
  .gs-slot-list {
    display: none;
  }
}

.gs-slot-list {
  margin-bottom: 1.1rem;
}

/* Inside the list panel: no card-in-a-card, just a section above the tasks. */
.gs-slot-list .gs-card {
  padding: 0 0 1.1rem;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border-light);
  border-radius: 0;
  box-shadow: none;
  backdrop-filter: none;
}

.gs-more {
  display: none;
}

/* Phones: only the next step shows, so tasks stay near the top. */
@media (max-width: 767px) {
  .gs-slot-list .gs-card:not(.is-expanded) .gs-item.is-done,
  .gs-slot-list .gs-card:not(.is-expanded) .gs-item:not(.is-done) ~ .gs-item:not(.is-done) {
    display: none;
  }

  .gs-slot-list .gs-more {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.3rem 0.4rem;
    min-height: var(--tap-min);
    align-items: center;
    border: 0;
    background: none;
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.82rem;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
  }
}

.gs-header-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.gs-close {
  width: 1.9rem;
  height: 1.9rem;
  margin-right: -0.4rem;
}

.gs-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.gs-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.88rem;
  color: var(--text);
}

.gs-item.is-done {
  padding: 0.5rem 0.4rem;
  color: var(--muted);
}

.gs-item.is-done .gs-label {
  text-decoration: line-through;
  text-decoration-color: var(--subtle);
}

.gs-action {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 2.4rem;
  padding: 0.45rem 0.4rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 0.88rem;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--dur-fast) ease;
}

.gs-action:hover {
  background: var(--accent-soft);
}

.gs-action .gs-label {
  text-decoration: underline;
  text-decoration-color: var(--border-focus);
  text-underline-offset: 3px;
}

.gs-check {
  display: grid;
  place-items: center;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1.5px solid var(--subtle);
}

.gs-item.is-done .gs-check {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

@media (pointer: coarse) {
  .gs-action {
    min-height: var(--tap-min);
  }
}

/* --------------------------------------------------------------------------
   First run: example tasks or a clean list
   -------------------------------------------------------------------------- */
.first-run-card {
  list-style: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-focus);
  background: var(--accent-soft);
}

.first-run-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--text);
}

.first-run-text {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.5;
}

.first-run-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.4rem;
}

.first-run-primary {
  padding: 0.75rem 1.3rem;
}
