/* ── Completed sessions list ─────────────────── */
.completed-list {
  background: rgba(255,255,255,0.85);
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.completed-list[hidden] { display: none; }

.completed-list__empty {
  padding: 16px 14px;
  font-size: 14px;
  font-weight: var(--font-extrabold);
  color: #fff;
  text-align: left;
}

.completed-list__header {
  color: var(--text-primary);
  font-size: var(--text-md);
  text-transform: none;
  letter-spacing: 0;
  padding: 14px;
  background: #fff;
  border-bottom: 1.5px solid var(--border);
}

.completed-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 14px;
  border-bottom: 1.5px solid var(--border);
}

.completed-list__row:last-child {
  border-bottom: none;
}

.completed-list__check {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}

.completed-list__check svg {
  width: 10px;
  height: 10px;
  stroke: transparent;
}

.completed-list__check.is-done {
  background: var(--green);
  border-color: var(--green);
}

.completed-list__check.is-done svg {
  stroke: var(--neutral-0);
}

.completed-list__text {
  font-size: var(--text-md);
  font-weight: var(--font-bold);
  color: var(--text);
  min-width: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.completed-list__dur {
  font-size: var(--text-md);
  font-weight: var(--font-extrabold);
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.completed-list__remove {
  flex-shrink: 0;
  width: 0;
  height: 20px;
  border: none;
  background: none;
  color: var(--text-muted);
  font-size: var(--text-lg);
  line-height: var(--leading-tight);
  cursor: pointer;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.1s, width 0.12s, color 0.1s, background 0.1s;
  padding: 0;
}
.completed-list__row:hover .completed-list__remove {
  opacity: 1;
  width: 20px;
}
.completed-list__remove:hover {
  color: var(--red, var(--red-dark));
  background: rgba(224, 85, 85, 0.1);
}

.completed-list__session {
  background: transparent;
  border-bottom: 1.5px solid var(--border);
}

.completed-list__session--alt {
  background: transparent;
}

.completed-list__row:not(.completed-list__row--session-header) {
  background: transparent;
}

.completed-list__row.completed-list__row--alt {
  background: transparent;
}

.completed-list__session .completed-list__row:not(.completed-list__row--session-header) {
  background: transparent;
}

.completed-list__session:last-child {
  border-bottom: none;
}


.completed-list__row--session-header {
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--border);
}

.completed-list__leading-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
}

.completed-list__leading-icon svg {
  width: 16px;
  height: 16px;
}

.completed-list__row-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.completed-list__row-icon svg {
  width: 14px;
  height: 14px;
}


.completed-list__row--session-header .completed-list__remove {
  opacity: 0;
}
.completed-list__row--session-header:hover .completed-list__remove {
  opacity: 1;
}

.completed-list__session .completed-list__row:not(.completed-list__row--session-header) {
  background: transparent;
  padding: 8px 12px 8px 28px;
  border-bottom: 1.5px solid var(--border);
}

.completed-list__row:not(.completed-list__row--session-header) .completed-list__dur {
  order: 1;
}

.completed-list__row:not(.completed-list__row--session-header) .completed-list__check {
  order: 2;
}

.completed-list__row:not(.completed-list__row--session-header) .completed-list__remove {
  order: 3;
}

.completed-list__session .completed-list__row:last-child {
  border-bottom: none;
  padding-bottom: 10px;
}

.completed-list__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 12px;
  background: transparent;
  border-top: 1.5px solid var(--border);
  color: var(--text-secondary);
}

.completed-list__total span:last-child {
  color: var(--text-primary);
}
